fix comment

This commit is contained in:
Looly
2022-06-07 15:38:36 +08:00
parent 9b9b35ffc2
commit f33783ac1d
9 changed files with 35 additions and 24 deletions

View File

@@ -181,6 +181,7 @@ public class ClassLoaderUtil {
* 3、内部类例如java.lang.Thread.State会被转为java.lang.Thread$State加载 * 3、内部类例如java.lang.Thread.State会被转为java.lang.Thread$State加载
* </pre> * </pre>
* *
* @param <T> 加载的类的类型
* @param name 类名 * @param name 类名
* @param classLoader {@link ClassLoader}{@code null} 则使用{@link #getClassLoader()}获取 * @param classLoader {@link ClassLoader}{@code null} 则使用{@link #getClassLoader()}获取
* @param isInitialized 是否初始化类调用static模块内容和初始化static属性 * @param isInitialized 是否初始化类调用static模块内容和初始化static属性
@@ -284,8 +285,10 @@ public class ClassLoaderUtil {
} }
// ----------------------------------------------------------------------------------- Private method start // ----------------------------------------------------------------------------------- Private method start
/** /**
* 加载非原始类类,无缓存 * 加载非原始类类,无缓存
*
* @param name 类名 * @param name 类名
* @param classLoader {@link ClassLoader} * @param classLoader {@link ClassLoader}
* @param isInitialized 是否初始化 * @param isInitialized 是否初始化

View File

@@ -753,6 +753,7 @@ public class CollUtil {
* @param <T> 集合元素类型 * @param <T> 集合元素类型
* @param <K> 唯一键类型 * @param <K> 唯一键类型
* @param collection 集合 * @param collection 集合
* @param uniqueGenerator 唯一键生成器
* @param override 是否覆盖模式,如果为{@code true}加入的新值会覆盖相同key的旧值否则会忽略新加值 * @param override 是否覆盖模式,如果为{@code true}加入的新值会覆盖相同key的旧值否则会忽略新加值
* @return {@link ArrayList} * @return {@link ArrayList}
* @since 5.8.0 * @since 5.8.0

View File

@@ -28,6 +28,8 @@ public interface Converter {
* 转换值为指定类型,可选是否不抛异常转换<br> * 转换值为指定类型,可选是否不抛异常转换<br>
* 当转换失败时返回默认值 * 当转换失败时返回默认值
* *
* @param <T> 目标类型
* @param targetType 目标类型
* @param value 值 * @param value 值
* @param defaultValue 默认值 * @param defaultValue 默认值
* @return 转换后的值 * @return 转换后的值

View File

@@ -100,6 +100,7 @@ public class DateUtil extends CalendarUtil {
* 根据已有{@link Date} 产生新的{@link DateTime}对象,并根据指定时区转换 * 根据已有{@link Date} 产生新的{@link DateTime}对象,并根据指定时区转换
* *
* @param date Date对象 * @param date Date对象
* @param timeZone 时区
* @return {@link DateTime}对象 * @return {@link DateTime}对象
*/ */
public static DateTime date(final Date date, final TimeZone timeZone) { public static DateTime date(final Date date, final TimeZone timeZone) {

View File

@@ -565,7 +565,7 @@ public class MethodUtil {
* @param method 方法对象方法或static方法都可 * @param method 方法对象方法或static方法都可
* @param args 参数对象 * @param args 参数对象
* @return 结果 * @return 结果
* @throws InvocationTargetRuntimeException 目标方法执行异常 * @throws InvocationTargetException 目标方法执行异常
* @throws IllegalAccessException 访问权限异常 * @throws IllegalAccessException 访问权限异常
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")

View File

@@ -33,7 +33,7 @@ public class ReflectUtil {
* *
* @param executable 可执行的反射对象 * @param executable 可执行的反射对象
* @return 描述符 * @return 描述符
* @apiNote 参考:<a href="https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html">jvm定义的Field Descriptors字段描述</a> * 参考:<a href="https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html">jvm定义的Field Descriptors字段描述</a>
* <p>例:</p> * <p>例:</p>
* <ul> * <ul>
* <li>{@code ReflectUtil.getDescriptor(Object.class.getMethod("hashCode")) // "()I"}</li> * <li>{@code ReflectUtil.getDescriptor(Object.class.getMethod("hashCode")) // "()I"}</li>

View File

@@ -16,7 +16,7 @@ public class FuncFilter extends AbstractFilter {
* *
* @param size 最大值 * @param size 最大值
* @param hashFunc Hash函数 * @param hashFunc Hash函数
* @return * @return FuncFilter
*/ */
public static FuncFilter of(final int size, final Function<String, Number> hashFunc) { public static FuncFilter of(final int size, final Function<String, Number> hashFunc) {
return new FuncFilter(size, hashFunc); return new FuncFilter(size, hashFunc);

View File

@@ -1647,6 +1647,7 @@ public class ArrayUtil extends PrimitiveArrayUtil {
* @param <T> 数组元素类型 * @param <T> 数组元素类型
* @param <K> 唯一键类型 * @param <K> 唯一键类型
* @param array 数组 * @param array 数组
* @param uniqueGenerator 唯一键生成器
* @param override 是否覆盖模式,如果为{@code true}加入的新值会覆盖相同key的旧值否则会忽略新加值 * @param override 是否覆盖模式,如果为{@code true}加入的新值会覆盖相同key的旧值否则会忽略新加值
* @return 去重后的数组 * @return 去重后的数组
* @since 5.8.0 * @since 5.8.0

View File

@@ -638,6 +638,9 @@ public class IdcardUtil {
* 参考文档《港澳居民来往内地通行证号码规则》: * 参考文档《港澳居民来往内地通行证号码规则》:
* <a href="https://www.hmo.gov.cn/fwga_new/wldjnd/201711/t20171120_1333.html">https://www.hmo.gov.cn/fwga_new/wldjnd/201711/t20171120_1333.html</a> * <a href="https://www.hmo.gov.cn/fwga_new/wldjnd/201711/t20171120_1333.html">https://www.hmo.gov.cn/fwga_new/wldjnd/201711/t20171120_1333.html</a>
* </p> * </p>
*
* @param idCard 身份证号码
* @return 是否有效
*/ */
public static boolean isValidHkMoHomeReturn(final String idCard) { public static boolean isValidHkMoHomeReturn(final String idCard) {
if (StrUtil.isEmpty(idCard)) { if (StrUtil.isEmpty(idCard)) {