Skip to content

Commit

Permalink
Fix prev checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehutch committed Dec 11, 2021
1 parent c0ea4f1 commit 0ee47aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/github/classgraph/ClassInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@ public FieldInfoList getEnumConstants() {
public boolean accept(FieldInfo fieldInfo) {
return fieldInfo.isEnum();
}
})
});
}

/**
Expand Down
5 changes: 1 addition & 4 deletions src/test/java/io/github/classgraph/features/EnumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import io.github.classgraph.ClassGraph;
import io.github.classgraph.ClassInfo;
import io.github.classgraph.FieldInfo;
import io.github.classgraph.ScanResult;

/**
Expand All @@ -31,9 +30,7 @@ public void recordJar() throws Exception {
assertThat(scanResult.getAllEnums().size() == 1);
final ClassInfo myEnum = scanResult.getAllEnums().get(0);
assertThat(myEnum.getName().equals(MyEnum.class.getName()));
for (FieldInfo fi : myEnum.getFieldInfo()) {
System.out.println(fi);
}
assertThat(myEnum.getEnumConstants().getNames()).containsExactly("A", "B", "C");
}
}
}

0 comments on commit 0ee47aa

Please sign in to comment.