mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Modify condition of checking static modifier
This commit is contained in:
parent
55c1322356
commit
da66c27827
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ public class StaticRepl {
|
|||
|
||||
for (int j = 0; j < classes.get(i).getMethods().size(); j++) {
|
||||
if (classes.get(i).getMethods().get(j).getName().equals("main") && classes.get(i)
|
||||
.getMethods().get(j).getModifiers().toString().contains("static")) {
|
||||
.getMethods().get(j).isStatic()) {
|
||||
mainClassName = classes.get(i).getName();
|
||||
hasMain = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue