Skip to content

nit: spotbugs spotbugs#186

Open
jasonk000 wants to merge 1 commit into
masterfrom
jkoch/spotbugs-4
Open

nit: spotbugs spotbugs#186
jasonk000 wants to merge 1 commit into
masterfrom
jkoch/spotbugs-4

Conversation

@jasonk000
Copy link
Copy Markdown
Contributor

No description provided.

@jasonk000 jasonk000 requested review from kgibm and krumts as code owners May 16, 2026 07:11
Copy link
Copy Markdown
Contributor

@krumts krumts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to tackle the spotbugs warinings!
LGTM overall, I just have one question (inline).

public final class SpecFactory extends RegistryReader<SpecFactory.Report>
{
public class Report
public static class Report
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this is a breaking API change, WDYT?
org.eclipse.mat.report is one of the exported packages.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good observation. I think if one sets the API Baseline in Eclipse and then loads up the new code, it should show if there's an API breakage or not due to this.

Copy link
Copy Markdown
Member

@kgibm kgibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. There was one case where the increment of i++ was moved into the if which changed the calculation slightly (equivalent functionality would be ++i) but it was just a cancel progress check so the exact value doesn't really matter, but it's just a mental note that there are risks of functional changes to this cleanup, so worth keeping that in the front of mind, but overall this is great that you're doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants