Merge pull request #1622 from cal101/erefactor/v5-dev-project/1/jdt/jdt-UseAutoboxingCleanUp

[cleanup] erefactor/EclipseJdt - Use Autoboxing
This commit is contained in:
Golden Looly 2021-06-06 07:59:19 +08:00 committed by GitHub
commit c402d7cbc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 11 additions and 11 deletions

View File

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

View File

@ -27,8 +27,8 @@ public class Morse {
* @param dict 二进制
*/
private static void registerMorse(Character abc, String dict) {
ALPHABETS.put(Integer.valueOf(abc), dict);
DICTIONARIES.put(dict, Integer.valueOf(abc));
ALPHABETS.put((int) abc, dict);
DICTIONARIES.put(dict, (int) abc);
}
static {

View File

@ -113,7 +113,7 @@ abstract class FormatCache<F extends Format> {
*/
// 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) {
return getDateTimeInstance(Integer.valueOf(dateStyle), Integer.valueOf(timeStyle), timeZone, locale);
return getDateTimeInstance(dateStyle, timeStyle, timeZone, locale);
}
/**

View File

@ -38,7 +38,7 @@ public class MutableBool implements Comparable<MutableBool>, Mutable<Boolean>, S
@Override
public Boolean get() {
return Boolean.valueOf(this.value);
return this.value;
}
/**

View File

@ -46,7 +46,7 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta
@Override
public Byte get() {
return Byte.valueOf(this.value);
return this.value;
}
/**

View File

@ -46,7 +46,7 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>,
@Override
public Double get() {
return Double.valueOf(this.value);
return this.value;
}
/**

View File

@ -46,7 +46,7 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu
@Override
public Float get() {
return Float.valueOf(this.value);
return this.value;
}
/**

View File

@ -46,7 +46,7 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl
@Override
public Integer get() {
return Integer.valueOf(this.value);
return this.value;
}
/**

View File

@ -46,7 +46,7 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta
@Override
public Long get() {
return Long.valueOf(this.value);
return this.value;
}
/**

View File

@ -46,7 +46,7 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu
@Override
public Short get() {
return Short.valueOf(this.value);
return this.value;
}
/**