Skip to content

Commit

Permalink
Minor code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed Nov 19, 2023
1 parent 7660e74 commit 915ce56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ public T read(JsonReader in) throws IOException {
public void write(JsonWriter out, T value) throws IOException {
out.nullValue();
}

@Override
public String toString() {
return "AnonymousOrNonStaticLocalClassAdapter";
}
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private static void appendExecutableParameters(
}

public static boolean isStatic(Class<?> clazz) {
return (clazz.getModifiers() & Modifier.STATIC) != 0;
return Modifier.isStatic(clazz.getModifiers());
}

/** Returns whether the class is anonymous or a non-static local class. */
Expand Down

0 comments on commit 915ce56

Please sign in to comment.