Adapt to enabling error level for the UnnecessaryParentheses bug pattern Fix the current issues so that the build continues to work. Bug: Issue 15082 Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: I8613c39127f74e82e12e4ee93a4f400038356eed
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java b/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java index 00a46de..d1302a5 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java
@@ -634,7 +634,7 @@ return true; } - boolean matches = (new ReplicationFilter(projects)).matches(project); + boolean matches = new ReplicationFilter(projects).matches(project); if (!matches) { repLog.atFine().log( "Skipping replication of project %s; does not match filter", project.get());