fix errors found by errorprone

This commit is contained in:
Christopher Lambert
2021-06-17 15:03:16 +02:00
parent dc1c6c5e82
commit 950b31fbae
61 changed files with 94 additions and 201 deletions

View File

@@ -180,12 +180,6 @@ public class DocsysMarkdownEndpoint implements WebServiceObject {
}
private void enable(Set<String> enabled) {
Set<String> toEnable = new HashSet<>();
if (this.enables !=null) {
toEnable.addAll(this.enables);
}
for (DocsNameSpace nsinfo : docsinfo) {
// add namespaces which are neither enabled nor disabled to the default group
if (nsinfo.isEnabledByDefault()) {
@@ -204,6 +198,4 @@ public class DocsysMarkdownEndpoint implements WebServiceObject {
this.enabled = disabled.remove(enabled);
}
}
}