diff options
author | Nasser Grainawi <nasser.grainawi@linaro.org> | 2022-11-07 17:48:06 -0700 |
---|---|---|
committer | Nasser Grainawi <nasser.grainawi@linaro.org> | 2022-11-07 17:48:06 -0700 |
commit | 590f9bac1b8f9add33b6a98fa22f7ef1e1d4cf6a (patch) | |
tree | 66ed42ba1e544565d183a62b31269c2102e32fd3 | |
parent | 419845f085c8991a8f324165788b2e4721501edc (diff) |
Destination: skip unnecessary String.format()v3.5.4
Later versions of Gerrit/Flogger/ErrorProne complain about this pattern
and fail the build.
Change-Id: I60d6f07af75bd9b011d225fddeb8be6af343adde
Release-Notes: skip
-rw-r--r-- | src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java | 6 |
1 files changed, 2 insertions, 4 deletions
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 @@ public class Destination { } } 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 @@ public class Destination { } } 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; |