-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I4681 intellij inspections #4698
Conversation
…CssValidation and UnusedCatchParameter
…CssValidation and UnusedCatchParameter
@@ -575,7 +575,7 @@ public void testLoadConfigurationFromClassPath() { | |||
final Configuration[] children = config.getChildren(); | |||
assertEquals(0, children[0].getChildren().length); | |||
} | |||
catch (CheckstyleException ex) { | |||
catch (CheckstyleException ignored) { | |||
fail("unexpected exception"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should remove try-catch-fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -547,7 +547,7 @@ public void testLoadConfigurationDeprecated() { | |||
final Configuration[] children = config.getChildren(); | |||
assertEquals(0, children[0].getChildren().length); | |||
} | |||
catch (CheckstyleException | FileNotFoundException ex) { | |||
catch (CheckstyleException | FileNotFoundException ignored) { | |||
fail("unexpected exception"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -137,7 +137,7 @@ public void testTokenValueIncorrect2() throws Exception { | |||
assertEquals("given id " + id, expected.getMessage()); | |||
|
|||
} | |||
catch (IllegalAccessException | NoSuchFieldException ex) { | |||
catch (IllegalAccessException | NoSuchFieldException ignored) { | |||
fail("Exception is expected"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
…s, fix for code review
Codecov Report
@@ Coverage Diff @@
## master #4698 +/- ##
======================================
Coverage 100% 100%
======================================
Files 287 287
Lines 15395 15395
Branches 3502 3502
======================================
Hits 15395 15395 Continue to review full report at Codecov.
|
manually squashed and rebase and merged |
#4681