Destination: skip unnecessary String.format()
Later versions of Gerrit/Flogger/ErrorProne complain about this pattern
and fail the build.
Change-Id: I60d6f07af75bd9b011d225fddeb8be6af343adde
Release-Notes: skip
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 a9ff233..9cd0526 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java
@@ -686,8 +686,7 @@
}
} catch (URISyntaxException e) {
repLog.atSevere().withCause(e).log(
- String.format(
- "remote config uri %s has invalid syntax with project %s", configUri, project));
+ "remote config uri %s has invalid syntax with project %s", configUri, project);
}
}
return false;
@@ -703,8 +702,7 @@
}
} catch (URISyntaxException e) {
repLog.atSevere().withCause(e).log(
- String.format(
- "remote config uri %s has invalid syntax with project %s", configUri, project));
+ "remote config uri %s has invalid syntax with project %s", configUri, project);
}
}
return r;