mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +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
|
||||
*/
|
||||
@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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user