Skip to content

SONARJAVA-5772 Switch from testing object sizes to counting instance fields#5356

Merged
leonardo-pilastri-sonarsource merged 1 commit intobranch-8.9from
lp/remove-gpl2-dep
Nov 14, 2025
Merged

SONARJAVA-5772 Switch from testing object sizes to counting instance fields#5356
leonardo-pilastri-sonarsource merged 1 commit intobranch-8.9from
lp/remove-gpl2-dep

Conversation

@leonardo-pilastri-sonarsource
Copy link
Copy Markdown
Contributor

@leonardo-pilastri-sonarsource leonardo-pilastri-sonarsource commented Nov 14, 2025

Comment on lines +110 to +127
static class C {
private int x;
public long y;
HashSet<Object> hashSet;

C(int x) {
this.x = x;
}
}

static class D extends C {
char z;
static String staticField;

D(int x) {
super(x);
}
}
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.

Is this supposed to be in the test code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It was in the PR that was merged on master originally,https://github.com/SonarSource/sonar-java/pull/5305/files
I would keep it as it was for consistency

@sonarqube-next
Copy link
Copy Markdown

sonarqube-next bot commented Nov 14, 2025

@leonardo-pilastri-sonarsource leonardo-pilastri-sonarsource merged commit 8fb7056 into branch-8.9 Nov 14, 2025
18 of 19 checks passed
@leonardo-pilastri-sonarsource leonardo-pilastri-sonarsource deleted the lp/remove-gpl2-dep branch November 14, 2025 14:06
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