Style and formatting fixes for Java interface samples.

samples/java_interface/java_calls_mercury/mercury_main.m:
samples/java_interface/mercury_calls_java/java_main_int.m:
samples/java_interface/standalone_java/JavaMain.java:
samples/java_interface/standalone_java/Makefile:
samples/java_interface/standalone_java/mercury_lib.m:
    As above.
This commit is contained in:
Julien Fischer
2022-01-15 17:04:29 +11:00
parent 243491523d
commit 1702444cb1
5 changed files with 39 additions and 39 deletions

View File

@@ -36,7 +36,7 @@ public class JavaMain {
runProgram(args);
} finally {
// When we have finished calling Mercury procedures then we need
// to tell the Mercury Runtime that we've finished using it.
// to tell the Mercury Runtime that we have finished using it.
// The static method finalise() in the MercuryRuntime class does
// this. This call is (currently) mandatory otherwise the JVM
// may not exit cleanly, therefore it should be called in a
@@ -63,8 +63,8 @@ public class JavaMain {
System.exit(MercuryRuntime.getExitStatus());
}
public static void runProgram(String[] args) {
public static void runProgram(String[] args)
{
// This is a call to an exported Mercury procedure that does some I/O.
// The mercury_lib class contains a static method for each procedure
// that is foreign exported to Java.