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:
Sebastian Bazley 2011-03-08 16:38:09 +00:00
parent 703db76ef4
commit 6a7a1ed476
4 changed files with 4 additions and 4 deletions

View File

@ -1053,7 +1053,7 @@ public class CompareToBuilder implements Builder<Integer> {
* @since 3.0
*/
public Integer build() {
return toComparison();
return Integer.valueOf(toComparison());
}
}

View File

@ -999,7 +999,7 @@ public class HashCodeBuilder implements Builder<Integer> {
* @since 3.0
*/
public Integer build() {
return toHashCode();
return Integer.valueOf(toHashCode());
}
/**

View File

@ -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));
}

View File

@ -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()));
}
}