Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed Aug 13, 2023
1 parent 2ecedd4 commit 4535778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ && exemptedFieldBySuperType(getType(variableTree), state)) {
// to contain usage in that case, but parameter is always used implicitly
// For compact canonical constructor parameters don't have record flag so need to
// check constructor flags (`symbol.owner`) instead
if (hasRecordFlag(symbol) || hasRecordFlag(symbol.owner)) {
if (hasRecordFlag(symbol.owner)) {
return null;
}
unusedElements.put(symbol, getCurrentPath());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ public void simpleRecord() {
assumeTrue(RuntimeVersion.isAtLeast16());
helper
.addSourceLines(
"SimpleRecord.java",
"SimpleRecord.java", //
"public record SimpleRecord (Integer foo, Long bar) {}")
.expectNoDiagnostics()
.doTest();
Expand Down

0 comments on commit 4535778

Please sign in to comment.