Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse2020-02-27 06:27:31 -0500
committerDavid Pursehouse2020-02-27 06:27:31 -0500
commit5a6b6eee35f07615f5d496781ee37f8ffe56b7d3 (patch)
treeb45fc5270a414f8096d974c6cd15f48304fa97fa /org.eclipse.jgit.http.server/src/org
parentabb461533fccfd59117c3415cf9c0ed06e460473 (diff)
downloadjgit-5a6b6eee35f07615f5d496781ee37f8ffe56b7d3.tar.gz
jgit-5a6b6eee35f07615f5d496781ee37f8ffe56b7d3.tar.xz
jgit-5a6b6eee35f07615f5d496781ee37f8ffe56b7d3.zip
Move array designators from the variable to the type
As reported by Sonar Lint: Array designators should always be located on the type for better code readability. Otherwise, developers must look both at the type and the variable name to know whether or not a variable is an array. Change-Id: If6b41fed3483d0992d402d8680552ab4bef89ffb Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.http.server/src/org')
-rw-r--r--org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexPipeline.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexPipeline.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexPipeline.java
index 010810508a..06b31a547d 100644
--- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexPipeline.java
+++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/RegexPipeline.java
@@ -138,7 +138,7 @@ class RegexPipeline extends UrlPipeline {
// build a request for them so RegexGroupFilter can pick
// a different capture group later. Continue using the
// first capture group as the path info.
- WrappedRequest groups[] = new WrappedRequest[cur.groupCount()];
+ WrappedRequest[] groups = new WrappedRequest[cur.groupCount()];
for (int groupId = 1; groupId <= cur.groupCount(); groupId++) {
final int s = cur.start(groupId);
final String path, info;

Back to the top