Skip to content

Commit

Permalink
Fix UnnecessaryFullyQualifiedName
Browse files Browse the repository at this point in the history
Signed-off-by: Piotrek Zygielo <piotr@zygielo.pl>
  • Loading branch information
pzygielo authored and markt-asf committed Jul 1, 2020
1 parent 5501a2e commit 10469f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/el/ELProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private static Class<?> toClass(String type, ClassLoader loader) throws ClassNot
}

if (dims == 1) {
return java.lang.reflect.Array.newInstance(c, 1).getClass();
return Array.newInstance(c, 1).getClass();
}

// Array of more than i dimension
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/el/StaticFieldELResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public Object getValue(ELContext context, Object base, Object property) {
Field field = klass.getField(fieldName);

int mod = field.getModifiers();
if (Modifier.isPublic(mod) && Modifier.isStatic(mod)) {
if (isPublic(mod) && isStatic(mod)) {
return field.get(null);
}
} catch (NoSuchFieldException ex) {
Expand Down

0 comments on commit 10469f1

Please sign in to comment.