mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
Merge pull request #1631 from cal101/erefactor/v5-dev-project/6/jdt-UseUnboxingCleanUp
[cleanup] erefactor/EclipseJdt - Use Unboxing
This commit is contained in:
commit
597f8f2236
@ -299,7 +299,7 @@ public class FastDatePrinter extends AbstractDateBasic implements DatePrinter {
|
|||||||
} else if (obj instanceof Calendar) {
|
} else if (obj instanceof Calendar) {
|
||||||
return format((Calendar) obj);
|
return format((Calendar) obj);
|
||||||
} else if (obj instanceof Long) {
|
} else if (obj instanceof Long) {
|
||||||
return format(((Long) obj).longValue());
|
return format(((Long) obj));
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unknown class: " + (obj == null ? "<null>" : obj.getClass().getName()));
|
throw new IllegalArgumentException("Unknown class: " + (obj == null ? "<null>" : obj.getClass().getName()));
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ public class MutableBool implements Comparable<MutableBool>, Mutable<Boolean>, S
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void set(final Boolean value) {
|
public void set(final Boolean value) {
|
||||||
this.value = value.booleanValue();
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user