mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
b82496befd
commit
69fed967e5
@ -135,7 +135,7 @@ public class Opt<T> {
|
|||||||
* @since 6.0.0
|
* @since 6.0.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
|
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
|
||||||
public static <T> Opt<T> of(Optional<T> optional) {
|
public static <T> Opt<T> of(final Optional<T> optional) {
|
||||||
return ofNullable(optional.orElse(null));
|
return ofNullable(optional.orElse(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user