removes redundant '+' sign
Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/4aa4291f Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/4aa4291f Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/4aa4291f Branch: refs/heads/master Commit: 4aa4291ffc143486757617b743c9670001f8a7cd Parents: 77febcf Author: Igor Curdvanovschi <ingvar....@gmail.com> Authored: Mon Jun 25 21:30:13 2018 +0200 Committer: Igor Curdvanovschi <ingvar....@gmail.com> Committed: Mon Jun 25 22:05:44 2018 +0200 ---------------------------------------------------------------------- .../commons/lang3/builder/CompareToBuilder.java | 40 ++++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/4aa4291f/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java b/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java index f4082a9..688e951 100644 --- a/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java @@ -414,7 +414,7 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.getClass().isArray()) { @@ -601,7 +601,7 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (lhs) { - comparison = +1; + comparison = 1; } else { comparison = -1; } @@ -668,11 +668,11 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.length != rhs.length) { - comparison = lhs.length < rhs.length ? -1 : +1; + comparison = lhs.length < rhs.length ? -1 : 1; return this; } for (int i = 0; i < lhs.length && comparison == 0; i++) { @@ -708,11 +708,11 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.length != rhs.length) { - comparison = lhs.length < rhs.length ? -1 : +1; + comparison = lhs.length < rhs.length ? -1 : 1; return this; } for (int i = 0; i < lhs.length && comparison == 0; i++) { @@ -748,11 +748,11 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.length != rhs.length) { - comparison = lhs.length < rhs.length ? -1 : +1; + comparison = lhs.length < rhs.length ? -1 : 1; return this; } for (int i = 0; i < lhs.length && comparison == 0; i++) { @@ -788,11 +788,11 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.length != rhs.length) { - comparison = lhs.length < rhs.length ? -1 : +1; + comparison = lhs.length < rhs.length ? -1 : 1; return this; } for (int i = 0; i < lhs.length && comparison == 0; i++) { @@ -828,11 +828,11 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.length != rhs.length) { - comparison = lhs.length < rhs.length ? -1 : +1; + comparison = lhs.length < rhs.length ? -1 : 1; return this; } for (int i = 0; i < lhs.length && comparison == 0; i++) { @@ -868,11 +868,11 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.length != rhs.length) { - comparison = lhs.length < rhs.length ? -1 : +1; + comparison = lhs.length < rhs.length ? -1 : 1; return this; } for (int i = 0; i < lhs.length && comparison == 0; i++) { @@ -908,11 +908,11 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.length != rhs.length) { - comparison = lhs.length < rhs.length ? -1 : +1; + comparison = lhs.length < rhs.length ? -1 : 1; return this; } for (int i = 0; i < lhs.length && comparison == 0; i++) { @@ -948,11 +948,11 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.length != rhs.length) { - comparison = lhs.length < rhs.length ? -1 : +1; + comparison = lhs.length < rhs.length ? -1 : 1; return this; } for (int i = 0; i < lhs.length && comparison == 0; i++) { @@ -988,11 +988,11 @@ public class CompareToBuilder implements Builder<Integer> { return this; } if (rhs == null) { - comparison = +1; + comparison = 1; return this; } if (lhs.length != rhs.length) { - comparison = lhs.length < rhs.length ? -1 : +1; + comparison = lhs.length < rhs.length ? -1 : 1; return this; } for (int i = 0; i < lhs.length && comparison == 0; i++) {