Skip to content

Commit

Permalink
Combine nested statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tonihele committed Dec 22, 2024
1 parent 39f65d3 commit cf7f9f0
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,8 @@ public void run(CompilationController control)
}
//Check if it is an AbstractControl
String className = elem.toString();
if ("com.jme3.scene.control.AbstractControl".equals(className)) {
if (!list.contains(elementName)) {
list.add(elementName);
}
if ("com.jme3.scene.control.AbstractControl".equals(className) && !list.contains(elementName)) {
list.add(elementName);
}

TypeMirror superClass = elem.getSuperclass();
Expand Down

0 comments on commit cf7f9f0

Please sign in to comment.