aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.server/src/org/eclipse/jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-22 01:30:04 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-25 22:06:13 +0200
commitd56ae55c836968e09d1ad887d4180ff6bccc5be7 (patch)
tree1a52e1e59f0b10cc5311485a56e56158abe07db5 /org.eclipse.jgit.http.server/src/org/eclipse/jgit
parenta7edc7889c6f0a6441bdd5e030125dd795abfd2c (diff)
downloadjgit-d56ae55c836968e09d1ad887d4180ff6bccc5be7.tar.gz
jgit-d56ae55c836968e09d1ad887d4180ff6bccc5be7.zip
[errorprone] Fix BadImport
See https://errorprone.info/bugpattern/BadImport Change-Id: Iea98b15862ed0bc4bcad759a7240133769680808
Diffstat (limited to 'org.eclipse.jgit.http.server/src/org/eclipse/jgit')
-rw-r--r--org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexGroupFilter.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexGroupFilter.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexGroupFilter.java
index c8ff6a3308..68adc2d663 100644
--- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexGroupFilter.java
+++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexGroupFilter.java
@@ -10,8 +10,6 @@
package org.eclipse.jgit.http.server.glue;
-import static java.lang.Integer.valueOf;
-
import java.io.IOException;
import java.text.MessageFormat;
@@ -45,7 +43,8 @@ public class RegexGroupFilter implements Filter {
public RegexGroupFilter(int groupIdx) {
if (groupIdx < 1)
throw new IllegalArgumentException(MessageFormat.format(
- HttpServerText.get().invalidIndex, valueOf(groupIdx)));
+ HttpServerText.get().invalidIndex,
+ Integer.valueOf(groupIdx)));
this.groupIdx = groupIdx - 1;
}
@@ -69,7 +68,7 @@ public class RegexGroupFilter implements Filter {
else
throw new ServletException(MessageFormat.format(
HttpServerText.get().invalidRegexGroup,
- valueOf(groupIdx + 1)));
+ Integer.valueOf(groupIdx + 1)));
}
private static WrappedRequest[] groupsFor(ServletRequest r) {