mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
[cleanup] erefactor/EclipseJdt - Use Unboxing
EclipseJdt cleanup 'UseUnboxing' applied by erefactor. For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php For erefactor see https://github.com/cal101/erefactor
This commit is contained in:
parent
7693bc131e
commit
469d62d679
@ -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