mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
Fix whatespace
java/runtime/JavaInternal.java:
Use tabs/spaces consistently (four spaces)
Remove trailing whitespace
library/exception.m?
Remove trailing whitespace
This commit is contained in:
@@ -3,34 +3,32 @@
|
||||
// This file may only be copied under the terms of the GNU Library General
|
||||
// Public License - see the file COPYING.LIB in the Mercury distribution.
|
||||
//
|
||||
//
|
||||
// All modifications to this file will require changes to:
|
||||
// compiler/mlds_to_java.m
|
||||
//
|
||||
//
|
||||
// At the moment this class is used to store the main module's name (progname),
|
||||
// command line arguments and the exit status. We can't put them in one of the
|
||||
// library modules because we need to hold them in a class variable in a top
|
||||
// level class.
|
||||
// level class.
|
||||
//
|
||||
|
||||
package jmercury.runtime;
|
||||
|
||||
public class JavaInternal {
|
||||
public static java.lang.String progname;
|
||||
public static java.lang.String[] args;
|
||||
public static int exit_status;
|
||||
public static java.lang.String progname;
|
||||
public static java.lang.String[] args;
|
||||
public static int exit_status;
|
||||
|
||||
private static java.util.List<Runnable> finalisers
|
||||
= new java.util.ArrayList<Runnable>();
|
||||
private static java.util.List<Runnable> finalisers
|
||||
= new java.util.ArrayList<Runnable>();
|
||||
|
||||
public static void register_finaliser(Runnable hook) {
|
||||
finalisers.add(hook);
|
||||
}
|
||||
public static void register_finaliser(Runnable hook) {
|
||||
finalisers.add(hook);
|
||||
}
|
||||
|
||||
public static void run_finalisers() {
|
||||
for (Runnable r : finalisers) {
|
||||
r.run();
|
||||
}
|
||||
}
|
||||
public static void run_finalisers() {
|
||||
for (Runnable r : finalisers) {
|
||||
r.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user