Skip to content

Commit

Permalink
Javassist for Classes.sortDeclarativeOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Sep 16, 2023
1 parent 4b6789b commit 932cf8e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@
<version>32.1.2-jre</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.29.2-GA</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.libj</groupId>
Expand Down
8 changes: 7 additions & 1 deletion src/test/java/org/libj/math/survey/AuditRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,13 @@ protected void scanAnnotatedMembers(final Map<Class<? extends Annotation>,List<F
methodsForAnnotations.clear();

final Method[] methods = Classes.getDeclaredMethodsDeep(getJavaClass());
Classes.sortDeclarativeOrder(methods);
try {
Classes.sortDeclarativeOrder(methods, true);
}
catch (final ClassNotFoundException e) {
throw new RuntimeException(e);
}

for (final Method method : methods) { // [A]
addToAnnotationLists(new FrameworkMethod(method) {
@Override
Expand Down

0 comments on commit 932cf8e

Please sign in to comment.