-
Notifications
You must be signed in to change notification settings - Fork 2.8k
add test assertion to resolve @SuppressWarnings("checkstyle:UnusedLocalVariable")
#2365
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
add test assertion to resolve @SuppressWarnings("checkstyle:UnusedLocalVariable")
#2365
Conversation
@SuppressWarnings("checkstyle:UnusedLocalVariable")
51f7046 to
f541e7e
Compare
| if (line.startsWith("||")) { | ||
| String[] cols = line.split("\\|\\|"); | ||
| String[] expected = new String[] { | ||
| "", |
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.
this is required
| "language", | ||
| "added to classpath", | ||
| "includesDependencies", | ||
| "" |
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.
this is not required. "foo", works as well.
f541e7e to
adb73ac
Compare
| // Packaging/Directory is Maven1 remnant!!! | ||
| // assertEquals(handler.getPackaging(), packaging, type + " packaging"); | ||
| assertThat(handler.getPackaging()).isNotEmpty(); | ||
| assertThat(VALID_PACKAGING_TYPES).contains(packaging); |
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.
resolve UnusedLocalVariable
adb73ac to
9f1e7cf
Compare
9f1e7cf to
1fb36a4
Compare
|
whats the issue here? is testing not valued? |
|
its the same topic like done in: |
add test assertion to resolve
@SuppressWarnings("checkstyle:UnusedLocalVariable")ref: