diff --git a/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java b/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java index e09178320ae..975c56c758f 100644 --- a/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java +++ b/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java @@ -180,8 +180,8 @@ public class TestRandomChains extends BaseTokenStreamTestCase { /** Hack to work around the stupidness of Oracle's strict Java backwards compatibility. * {@code Class#getConstructors()} should return unmodifiable {@code List>} not array! */ @SuppressWarnings("unchecked") - private static Constructor castConstructor(Class instanceClazz, Constructor ctor) { - return (Constructor) ctor; + private static Constructor castConstructor(Class instanceClazz, Constructor ctor) { + return (Constructor) ctor; } private static void getClassesForPackage(String pckgname, List> classes) throws Exception { @@ -556,7 +556,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase { return sb.toString(); } - private T createComponent(Constructor ctor, Object[] args, StringBuilder descr) { + private T createComponent(Constructor ctor, Object[] args, StringBuilder descr) { try { final T instance = ctor.newInstance(args); if (descr.length() > 0) {