mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
add @Serial
This commit is contained in:
@@ -29,6 +29,7 @@ import cn.hutool.v7.core.text.StrUtil;
|
||||
import cn.hutool.v7.core.text.split.SplitUtil;
|
||||
import cn.hutool.v7.core.util.ObjUtil;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
@@ -39,6 +40,7 @@ import java.lang.reflect.Type;
|
||||
*/
|
||||
public abstract class AbsSetting implements TypeGetter<CharSequence>,
|
||||
GroupedTypeGetter<CharSequence, CharSequence>, Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 6200156302595905863L;
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,6 +19,7 @@ package cn.hutool.v7.setting;
|
||||
import cn.hutool.v7.core.map.MapUtil;
|
||||
import cn.hutool.v7.core.text.StrUtil;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
@@ -37,6 +38,7 @@ import java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock;
|
||||
* @since 4.0.11
|
||||
*/
|
||||
public class GroupedMap extends LinkedHashMap<String, LinkedHashMap<String, String>> {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -7777365130776081931L;
|
||||
|
||||
private final ReentrantReadWriteLock cacheLock = new ReentrantReadWriteLock();
|
||||
|
||||
@@ -23,10 +23,7 @@ import cn.hutool.v7.core.text.StrUtil;
|
||||
import cn.hutool.v7.core.array.ArrayUtil;
|
||||
import cn.hutool.v7.core.util.CharsetUtil;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.*;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.*;
|
||||
@@ -53,6 +50,7 @@ import java.util.*;
|
||||
* @since 3.1.0
|
||||
*/
|
||||
public class GroupedSet extends HashMap<String, LinkedHashSet<String>> {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -8430706353275835496L;
|
||||
// private final static Log log = StaticLog.get();
|
||||
|
||||
|
||||
@@ -18,12 +18,15 @@ package cn.hutool.v7.setting;
|
||||
|
||||
import cn.hutool.v7.core.exception.HutoolException;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 设置异常
|
||||
*
|
||||
* @author Looly
|
||||
*/
|
||||
public class SettingException extends HutoolException {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 7941096116780378387L;
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,6 +40,7 @@ import cn.hutool.v7.log.LogUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.Serial;
|
||||
import java.io.Writer;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.Charset;
|
||||
@@ -54,6 +55,7 @@ import java.util.Properties;
|
||||
* @author loolly
|
||||
*/
|
||||
public final class Props extends Properties implements TypeGetter<CharSequence> {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1935981579709590740L;
|
||||
|
||||
/**
|
||||
@@ -235,6 +237,7 @@ public final class Props extends Properties implements TypeGetter<CharSequence>
|
||||
// 先关闭之前的监听
|
||||
IoUtil.closeQuietly(this.watchMonitor);
|
||||
this.watchMonitor = WatchUtil.ofModify(this.resource.getUrl(), new SimpleWatcher() {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user