Skip to content

Commit

Permalink
RemoveUnnecessaryFinal
Browse files Browse the repository at this point in the history
Based on developer comments, removed 'final' where not necessary.
  • Loading branch information
tgallagher2017 authored Dec 8, 2021
1 parent f77fdd8 commit 2c0ddfd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ public List<Parameterized> parseArg(Object arg) {
/**
* Basic check for primitive or Java class that should be used directly.
*
* @param field
* @param field non-null java Field
* @return true if Java primitive or part of the Java or Sun package.
*/
public boolean isPrimitiveOrString(Field field) {
final Class type = field.getType();
final String name = type.getName();
Class type = field.getType();
String name = type.getName();

return type.isPrimitive() || name.startsWith("java") || name.startsWith("sun");
}
Expand Down

0 comments on commit 2c0ddfd

Please sign in to comment.