Skip to content

Commit ee309f9

Browse files
committed
restrict access, code tidy, java-lang 6.3
1 parent 233e4d8 commit ee309f9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

compiler/src/main/java/net/openhft/compiler/CompilerUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public enum CompilerUtils {
3939
;
4040
private static final Logger LOGGER = Logger.getLogger(CompilerUtils.class.getName());
4141
public static final boolean DEBUGGING = ManagementFactory.getRuntimeMXBean().getInputArguments().contains("-Xdebug");
42-
@Nullable
4342
public static final CachedCompiler CACHED_COMPILER = new CachedCompiler(null, null);
4443
private static final Method DEFINE_CLASS_METHOD;
4544
private static final Charset UTF_8 = Charset.forName("UTF-8");
@@ -92,7 +91,7 @@ public static Class loadFromResource(@NotNull String className, @NotNull String
9291
* @return the outer class loaded.
9392
* @throws ClassNotFoundException the class name didn't match or failed to initialise.
9493
*/
95-
public static Class loadFromJava(@NotNull String className, @NotNull String javaCode) throws ClassNotFoundException {
94+
private static Class loadFromJava(@NotNull String className, @NotNull String javaCode) throws ClassNotFoundException {
9695
return CACHED_COMPILER.loadFromJava(Thread.currentThread().getContextClassLoader(), className, javaCode);
9796
}
9897

0 commit comments

Comments
 (0)