aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2020-02-27 20:27:31 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2020-02-27 20:27:31 +0900
commit5a6b6eee35f07615f5d496781ee37f8ffe56b7d3 (patch)
treeb45fc5270a414f8096d974c6cd15f48304fa97fa /org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server
parentabb461533fccfd59117c3415cf9c0ed06e460473 (diff)
downloadjgit-5a6b6eee35f07615f5d496781ee37f8ffe56b7d3.tar.gz
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/eclipse/jgit/http/server')
-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;