You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by su...@apache.org on 2016/10/03 22:14:08 UTC
[09/50] [abbrv] hadoop git commit: HADOOP-13640. Fix findbugs warning
in VersionInfoMojo.java. Contributed by Yuanbo Liu.
HADOOP-13640. Fix findbugs warning in VersionInfoMojo.java. Contributed by Yuanbo Liu.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/82c55dcb
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/82c55dcb
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/82c55dcb
Branch: refs/heads/YARN-2915
Commit: 82c55dcbc8e3d5314aae9f8f600c660759213e45
Parents: 10be459
Author: Akira Ajisaka <aa...@apache.org>
Authored: Fri Sep 30 18:17:30 2016 +0900
Committer: Akira Ajisaka <aa...@apache.org>
Committed: Fri Sep 30 18:17:30 2016 +0900
----------------------------------------------------------------------
.../apache/hadoop/maven/plugin/versioninfo/VersionInfoMojo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/82c55dcb/hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/versioninfo/VersionInfoMojo.java
----------------------------------------------------------------------
diff --git a/hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/versioninfo/VersionInfoMojo.java b/hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/versioninfo/VersionInfoMojo.java
index cd2651b..f6faea0 100644
--- a/hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/versioninfo/VersionInfoMojo.java
+++ b/hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/versioninfo/VersionInfoMojo.java
@@ -160,7 +160,7 @@ public class VersionInfoMojo extends AbstractMojo {
if (index > -1) {
res[0] = path.substring(0, index - 1);
int branchIndex = index + "branches".length() + 1;
- index = path.indexOf("/", branchIndex);
+ index = path.indexOf('/', branchIndex);
if (index > -1) {
res[1] = path.substring(branchIndex, index);
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org