diff --git a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/primitives/PrimitiveNodeFactory.java b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/primitives/PrimitiveNodeFactory.java index df02df67e..4891a0c07 100644 --- a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/primitives/PrimitiveNodeFactory.java +++ b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/primitives/PrimitiveNodeFactory.java @@ -194,7 +194,7 @@ public static AbstractPrimitiveNode getOrCreateNamed(final CompiledCodeObject me final String functionName = ((NativeObject) values[NAMED_PRIMITIVE_FUNCTION_NAME_INDEX]).asStringUnsafe(); final PrimExternalCallNode externalCallNode = PrimExternalCallNode.load(moduleName, functionName, numReceiverAndArguments); - if ( externalCallNode != null) { + if (externalCallNode != null) { return externalCallNode; } diff --git a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/util/NFIUtils.java b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/util/NFIUtils.java index 137390fda..847359b3c 100644 --- a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/util/NFIUtils.java +++ b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/util/NFIUtils.java @@ -165,7 +165,8 @@ public static Object loadLibrary(final SqueakImageContext context, final String final String libName = System.mapLibraryName(moduleName); TruffleFile libPath = context.getHomePath().resolve("lib" + File.separatorChar + libName); if (!libPath.exists()) { - // to preserve compatibility with plugins from opensmalltalk, also check without 'lib' prefix + // to preserve compatibility with plugins from opensmalltalk, also check without 'lib' + // prefix if (libName.startsWith("lib")) { libPath = context.getHomePath().resolve("lib" + File.separatorChar + libName.replace("lib", "")); if (!libPath.exists()) {