Skip to content

Commit 6158acb

Browse files
committed
[#1161] Add a test for hidden parameter
1 parent e80cae8 commit 6158acb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

qulice-checkstyle/src/test/java/com/qulice/checkstyle/CheckstyleValidatorTest.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -693,21 +693,20 @@ void rejectsUppercaseAbbreviations() throws Exception {
693693
}
694694

695695
@Test
696-
@SuppressWarnings("unchecked")
697696
void rejectsHiddenParameters() throws Exception {
698697
final String file = "HiddenParameter.java";
699698
final Collection<Violation> results = this.runValidation(
700-
file, false
699+
file, false
701700
);
702701
final String name = "HiddenFieldCheck";
703702
final String message = "'test' hides a field.";
704703
MatcherAssert.assertThat(
705-
results,
706-
Matchers.hasItems(
707-
new ViolationMatcher(
708-
message, file, "17", name
709-
)
704+
results,
705+
Matchers.hasItems(
706+
new ViolationMatcher(
707+
message, file, "17", name
710708
)
709+
)
711710
);
712711
}
713712

0 commit comments

Comments
 (0)