mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
Merge pull request #1622 from cal101/erefactor/v5-dev-project/1/jdt/jdt-UseAutoboxingCleanUp
[cleanup] erefactor/EclipseJdt - Use Autoboxing
This commit is contained in:
commit
c402d7cbc2
@ -938,7 +938,7 @@ public class HashCodeBuilder implements Builder<Integer> {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Integer build() {
|
public Integer build() {
|
||||||
return Integer.valueOf(toHashCode());
|
return toHashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,8 +27,8 @@ public class Morse {
|
|||||||
* @param dict 二进制
|
* @param dict 二进制
|
||||||
*/
|
*/
|
||||||
private static void registerMorse(Character abc, String dict) {
|
private static void registerMorse(Character abc, String dict) {
|
||||||
ALPHABETS.put(Integer.valueOf(abc), dict);
|
ALPHABETS.put((int) abc, dict);
|
||||||
DICTIONARIES.put(dict, Integer.valueOf(abc));
|
DICTIONARIES.put(dict, (int) abc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
@ -113,7 +113,7 @@ abstract class FormatCache<F extends Format> {
|
|||||||
*/
|
*/
|
||||||
// package protected, for access from FastDateFormat; do not make public or protected
|
// package protected, for access from FastDateFormat; do not make public or protected
|
||||||
F getDateTimeInstance(final int dateStyle, final int timeStyle, final TimeZone timeZone, final Locale locale) {
|
F getDateTimeInstance(final int dateStyle, final int timeStyle, final TimeZone timeZone, final Locale locale) {
|
||||||
return getDateTimeInstance(Integer.valueOf(dateStyle), Integer.valueOf(timeStyle), timeZone, locale);
|
return getDateTimeInstance(dateStyle, timeStyle, timeZone, locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,7 +38,7 @@ public class MutableBool implements Comparable<MutableBool>, Mutable<Boolean>, S
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean get() {
|
public Boolean get() {
|
||||||
return Boolean.valueOf(this.value);
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,7 +46,7 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Byte get() {
|
public Byte get() {
|
||||||
return Byte.valueOf(this.value);
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,7 +46,7 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Double get() {
|
public Double get() {
|
||||||
return Double.valueOf(this.value);
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,7 +46,7 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Float get() {
|
public Float get() {
|
||||||
return Float.valueOf(this.value);
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,7 +46,7 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer get() {
|
public Integer get() {
|
||||||
return Integer.valueOf(this.value);
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,7 +46,7 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Long get() {
|
public Long get() {
|
||||||
return Long.valueOf(this.value);
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,7 +46,7 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Short get() {
|
public Short get() {
|
||||||
return Short.valueOf(this.value);
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user