Skip to content

Commit 84f6e50

Browse files
committed
fix javaparser glue folder name
1 parent 87e2d24 commit 84f6e50

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/src/javaParser/java/com/diffplug/spotless/glue/javaParser/ExpandWildcardsFormatterFunc.java renamed to lib/src/javaParser/java/com/diffplug/spotless/glue/javaparser/ExpandWildcardsFormatterFunc.java

File renamed without changes.

lib/src/main/java/com/diffplug/spotless/java/ExpandWildcardImportsStep.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import java.io.File;
1919
import java.io.Serial;
2020
import java.io.Serializable;
21-
import java.lang.reflect.Constructor;
2221
import java.lang.reflect.InvocationTargetException;
2322
import java.util.Collection;
2423
import java.util.Objects;
@@ -72,10 +71,11 @@ public State(Collection<File> typeSolverClasspath, JarState jarState) {
7271

7372
FormatterFunc toFormatter() {
7473
try {
75-
Class<?> formatterFunc = jarState.getClassLoader()
76-
.loadClass("com.diffplug.spotless.glue.javaparser.ExpandWildcardsFormatterFunc");
77-
Constructor<?> constructor = formatterFunc.getConstructor(Collection.class);
78-
return (FormatterFunc) constructor.newInstance(typeSolverClasspath);
74+
return (FormatterFunc) jarState
75+
.getClassLoader()
76+
.loadClass("com.diffplug.spotless.glue.javaparser.ExpandWildcardsFormatterFunc")
77+
.getConstructor(Collection.class)
78+
.newInstance(typeSolverClasspath);
7979
} catch (ClassNotFoundException | NoSuchMethodException | InvocationTargetException
8080
| InstantiationException | IllegalAccessException | NoClassDefFoundError cause) {
8181
throw new IllegalStateException(INCOMPATIBLE_ERROR_MESSAGE, cause);

0 commit comments

Comments
 (0)