mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix readme
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<p align="center">
|
||||
<a href="https://hutool.cn/"><img src="https://cdn.jsdelivr.net/gh/looly/hutool-site/images/logo.jpg" width="45%"></a>
|
||||
<a href="https://hutool.cn/"><img src="https://plus.hutool.cn/images/hutool.svg" width="45%"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<strong>🍬A set of tools that keep Java sweet.</strong>
|
||||
|
@@ -17,21 +17,21 @@ import java.util.stream.Stream;
|
||||
*/
|
||||
public class GenericAnnotationMapping implements AnnotationMapping<Annotation> {
|
||||
|
||||
private final Annotation annotation;
|
||||
private final boolean isRoot;
|
||||
private final Method[] attributes;
|
||||
|
||||
/**
|
||||
* 创建一个通用注解包装类
|
||||
*
|
||||
* @param annotation 注解对象
|
||||
* @param isRoot 是否根注解
|
||||
* @return {@link GenericAnnotationMapping}实例
|
||||
* @return {@code GenericAnnotationMapping}实例
|
||||
*/
|
||||
public static GenericAnnotationMapping create(final Annotation annotation, final boolean isRoot) {
|
||||
return new GenericAnnotationMapping(annotation, isRoot);
|
||||
}
|
||||
|
||||
private final Annotation annotation;
|
||||
private final boolean isRoot;
|
||||
private final Method[] attributes;
|
||||
|
||||
/**
|
||||
* 创建一个通用注解包装类
|
||||
*
|
||||
@@ -133,14 +133,14 @@ public class GenericAnnotationMapping implements AnnotationMapping<Annotation> {
|
||||
* @return 是否
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
public boolean equals(final Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GenericAnnotationMapping that = (GenericAnnotationMapping)o;
|
||||
final GenericAnnotationMapping that = (GenericAnnotationMapping)o;
|
||||
return isRoot == that.isRoot && annotation.equals(that.annotation);
|
||||
}
|
||||
|
||||
|
@@ -254,6 +254,7 @@ public class CharUtil implements CharPool {
|
||||
* @see Character#isSpaceChar(int)
|
||||
* @since 4.0.10
|
||||
*/
|
||||
@SuppressWarnings("UnnecessaryUnicodeEscape")
|
||||
public static boolean isBlankChar(final int c) {
|
||||
return Character.isWhitespace(c)
|
||||
|| Character.isSpaceChar(c)
|
||||
|
Reference in New Issue
Block a user