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 9f5acc0c0..437d53d90 100644 --- a/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java @@ -1053,7 +1053,7 @@ public class CompareToBuilder implements Builder { * @since 3.0 */ public Integer build() { - return toComparison(); + return Integer.valueOf(toComparison()); } } diff --git a/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java b/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java index 6bdc9e2a4..23e35d465 100644 --- a/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java @@ -999,7 +999,7 @@ public class HashCodeBuilder implements Builder { * @since 3.0 */ public Integer build() { - return toHashCode(); + return Integer.valueOf(toHashCode()); } /** diff --git a/src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java b/src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java index 7301095a6..56e50cfa6 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java @@ -216,9 +216,9 @@ public class BasicThreadFactory implements ThreadFactory { * @param t the thread to be initialized */ private void initializeThread(Thread t) { - long count = threadCounter.incrementAndGet(); if (getNamingPattern() != null) { + Long count = Long.valueOf(threadCounter.incrementAndGet()); t.setName(String.format(getNamingPattern(), count)); } diff --git a/src/main/java/org/apache/commons/lang3/concurrent/ConstantInitializer.java b/src/main/java/org/apache/commons/lang3/concurrent/ConstantInitializer.java index afd38ae1a..480a42cb5 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/ConstantInitializer.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/ConstantInitializer.java @@ -122,7 +122,7 @@ public class ConstantInitializer implements ConcurrentInitializer { */ @Override public String toString() { - return String.format(FMT_TO_STRING, System.identityHashCode(this), + return String.format(FMT_TO_STRING, Integer.valueOf(System.identityHashCode(this)), String.valueOf(getObject())); } }