Skip to content

Commit

Permalink
Issue #160: fix teamcity violations
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach committed Sep 26, 2018
1 parent 010d408 commit 1daf188
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private URLClassLoader createClassloader() {
for (File file : classpathElements) {
urls.add(getUrl(file.toURI()));
}
return new URLClassLoader(urls.toArray(new URL[urls.size()]), null);
return new URLClassLoader(urls.toArray(new URL[0]), null);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private static RuleFinder newRuleFinder() {

private static class RuleAnswer implements Answer<Rule> {
@Override
public Rule answer(InvocationOnMock iom) throws Throwable {
public Rule answer(InvocationOnMock iom) {
final RuleQuery query = (RuleQuery) iom.getArguments()[0];
Rule rule = null;
if (StringUtils.equals(query.getConfigKey(), "Checker/JavadocPackage")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,11 @@ else if (AbstractFileSetCheck.class.isAssignableFrom(clss)) {
}

// remove undocumented properties
new HashSet<>(properties).stream()
.filter(property -> {
return UNDOCUMENTED_PROPERTIES.contains(clss.getSimpleName() + "." + property);
})
.forEach(properties::remove);
new HashSet<>(properties)
.stream()
.filter(property -> UNDOCUMENTED_PROPERTIES.contains(clss
.getSimpleName() + "." + property))
.forEach(properties::remove);

if (AbstractCheck.class.isAssignableFrom(clss)) {
final AbstractCheck check;
Expand Down

0 comments on commit 1daf188

Please sign in to comment.