Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1079423 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
703db76ef4
commit
6a7a1ed476
|
@ -1053,7 +1053,7 @@ public class CompareToBuilder implements Builder<Integer> {
|
|||
* @since 3.0
|
||||
*/
|
||||
public Integer build() {
|
||||
return toComparison();
|
||||
return Integer.valueOf(toComparison());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -999,7 +999,7 @@ public class HashCodeBuilder implements Builder<Integer> {
|
|||
* @since 3.0
|
||||
*/
|
||||
public Integer build() {
|
||||
return toHashCode();
|
||||
return Integer.valueOf(toHashCode());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ public class ConstantInitializer<T> implements ConcurrentInitializer<T> {
|
|||
*/
|
||||
@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()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue