Skip to content

Commit

Permalink
Fixing javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Jul 18, 2023
1 parent 65b4758 commit ebb430b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* class via {@link java.lang.reflect.Proxy}. The annotation literal gets filled
* with the default values.
* </p>
* <p/>
* <p>
* This class can be used to dynamically create Annotations which can be used in
* AnnotatedTyp. This is e.g. the case if you configure an annotation via
Expand Down Expand Up @@ -103,7 +102,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Exceptio
}
if ("equals".equals(method.getName())) {
if (Proxy.isProxyClass(args[0].getClass())
&& Proxy.getInvocationHandler(args[0]) instanceof AnnotationInstanceProvider) {
&& (Proxy.getInvocationHandler(args[0]) instanceof AnnotationInstanceProvider)) {
return equals(Proxy.getInvocationHandler(args[0]));

}
Expand Down Expand Up @@ -155,7 +154,7 @@ public String toString() {
}
sb.append(memberValue);

if (i < length - 1) {
if (i < (length - 1)) {
sb.append(",");
}
}
Expand All @@ -176,7 +175,7 @@ public boolean equals(Object o) {
try {
var oValue = annotationClass.getMethod(entry.getKey(), EMPTY_CLASS_ARRAY).invoke(o,
EMPTY_OBJECT_ARRAY);
if (oValue == null || entry.getValue() == null || !oValue.equals(entry.getValue())) {
if ((oValue == null) || (entry.getValue() == null) || !oValue.equals(entry.getValue())) {
return false;
}
} catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
Expand Down

0 comments on commit ebb430b

Please sign in to comment.