HADOOP-13640. Fix findbugs warning in VersionInfoMojo.java. Contributed by Yuanbo Liu.

This commit is contained in:
Akira Ajisaka 2016-09-30 18:17:30 +09:00
parent 10be45986c
commit 82c55dcbc8

View File

@ -160,7 +160,7 @@ private String[] getSvnUriInfo(String str) {
if (index > -1) { if (index > -1) {
res[0] = path.substring(0, index - 1); res[0] = path.substring(0, index - 1);
int branchIndex = index + "branches".length() + 1; int branchIndex = index + "branches".length() + 1;
index = path.indexOf("/", branchIndex); index = path.indexOf('/', branchIndex);
if (index > -1) { if (index > -1) {
res[1] = path.substring(branchIndex, index); res[1] = path.substring(branchIndex, index);
} else { } else {