Add final modifier to method parameters.
This commit is contained in:
parent
f015fb2b31
commit
0f87dceb80
|
@ -7432,7 +7432,7 @@ public static String abbreviate(final String str, final int maxWidth) {
|
||||||
* @throws IllegalArgumentException if the width is too small
|
* @throws IllegalArgumentException if the width is too small
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
public static String abbreviate(final String str, int offset, final int maxWidth) {
|
public static String abbreviate(final String str, final int offset, final int maxWidth) {
|
||||||
final String defaultAbbrevMarker = "...";
|
final String defaultAbbrevMarker = "...";
|
||||||
return abbreviate(str, defaultAbbrevMarker, offset, maxWidth);
|
return abbreviate(str, defaultAbbrevMarker, offset, maxWidth);
|
||||||
}
|
}
|
||||||
|
|
|
@ -234,7 +234,7 @@ public EqualsBuilder() {
|
||||||
* @return EqualsBuilder - used to chain calls.
|
* @return EqualsBuilder - used to chain calls.
|
||||||
* @since 3.6
|
* @since 3.6
|
||||||
*/
|
*/
|
||||||
public EqualsBuilder setTestTransients(boolean testTransients) {
|
public EqualsBuilder setTestTransients(final boolean testTransients) {
|
||||||
this.testTransients = testTransients;
|
this.testTransients = testTransients;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -245,7 +245,7 @@ public EqualsBuilder setTestTransients(boolean testTransients) {
|
||||||
* @return EqualsBuilder - used to chain calls.
|
* @return EqualsBuilder - used to chain calls.
|
||||||
* @since 3.6
|
* @since 3.6
|
||||||
*/
|
*/
|
||||||
public EqualsBuilder setTestRecursive(boolean testRecursive) {
|
public EqualsBuilder setTestRecursive(final boolean testRecursive) {
|
||||||
this.testRecursive = testRecursive;
|
this.testRecursive = testRecursive;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@ public EqualsBuilder setTestRecursive(boolean testRecursive) {
|
||||||
* @return EqualsBuilder - used to chain calls.
|
* @return EqualsBuilder - used to chain calls.
|
||||||
* @since 3.6
|
* @since 3.6
|
||||||
*/
|
*/
|
||||||
public EqualsBuilder setReflectUpToClass(Class<?> reflectUpToClass) {
|
public EqualsBuilder setReflectUpToClass(final Class<?> reflectUpToClass) {
|
||||||
this.reflectUpToClass = reflectUpToClass;
|
this.reflectUpToClass = reflectUpToClass;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -267,7 +267,7 @@ public EqualsBuilder setReflectUpToClass(Class<?> reflectUpToClass) {
|
||||||
* @return EqualsBuilder - used to chain calls.
|
* @return EqualsBuilder - used to chain calls.
|
||||||
* @since 3.6
|
* @since 3.6
|
||||||
*/
|
*/
|
||||||
public EqualsBuilder setExcludeFields(String... excludeFields) {
|
public EqualsBuilder setExcludeFields(final String... excludeFields) {
|
||||||
this.excludeFields = excludeFields;
|
this.excludeFields = excludeFields;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -423,7 +423,7 @@ public static boolean reflectionEquals(final Object lhs, final Object rhs, final
|
||||||
* @since 3.6
|
* @since 3.6
|
||||||
*/
|
*/
|
||||||
public static boolean reflectionEquals(final Object lhs, final Object rhs, final boolean testTransients, final Class<?> reflectUpToClass,
|
public static boolean reflectionEquals(final Object lhs, final Object rhs, final boolean testTransients, final Class<?> reflectUpToClass,
|
||||||
boolean testRecursive, final String... excludeFields) {
|
final boolean testRecursive, final String... excludeFields) {
|
||||||
if (lhs == rhs) {
|
if (lhs == rhs) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,8 +151,8 @@ static class TestRecursiveObject {
|
||||||
private final TestRecursiveInnerObject b;
|
private final TestRecursiveInnerObject b;
|
||||||
private int z;
|
private int z;
|
||||||
|
|
||||||
public TestRecursiveObject(TestRecursiveInnerObject a,
|
public TestRecursiveObject(final TestRecursiveInnerObject a,
|
||||||
TestRecursiveInnerObject b, int z) {
|
final TestRecursiveInnerObject b, final int z) {
|
||||||
this.a = a;
|
this.a = a;
|
||||||
this.b = b;
|
this.b = b;
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ public int getZ() {
|
||||||
|
|
||||||
static class TestRecursiveInnerObject {
|
static class TestRecursiveInnerObject {
|
||||||
private final int n;
|
private final int n;
|
||||||
public TestRecursiveInnerObject(int n) {
|
public TestRecursiveInnerObject(final int n) {
|
||||||
this.n = n;
|
this.n = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,12 +185,12 @@ public int getN() {
|
||||||
static class TestRecursiveCycleObject {
|
static class TestRecursiveCycleObject {
|
||||||
private TestRecursiveCycleObject cycle;
|
private TestRecursiveCycleObject cycle;
|
||||||
private final int n;
|
private final int n;
|
||||||
public TestRecursiveCycleObject(int n) {
|
public TestRecursiveCycleObject(final int n) {
|
||||||
this.n = n;
|
this.n = n;
|
||||||
this.cycle = this;
|
this.cycle = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TestRecursiveCycleObject(TestRecursiveCycleObject cycle, int n) {
|
public TestRecursiveCycleObject(final TestRecursiveCycleObject cycle, final int n) {
|
||||||
this.n = n;
|
this.n = n;
|
||||||
this.cycle = cycle;
|
this.cycle = cycle;
|
||||||
}
|
}
|
||||||
|
@ -203,7 +203,7 @@ public TestRecursiveCycleObject getCycle() {
|
||||||
return cycle;
|
return cycle;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCycle(TestRecursiveCycleObject cycle) {
|
public void setCycle(final TestRecursiveCycleObject cycle) {
|
||||||
this.cycle = cycle;
|
this.cycle = cycle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue