diff options
author | mihaylov <mihaylov@epfl.ch> | 2004-03-17 13:15:55 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2004-03-17 13:15:55 +0000 |
commit | a231200e62b4c6e41965e291456fc5772f59ff00 (patch) | |
tree | 755af5369ac6d507c65cb4d0025ddf463a8f5bb7 /sources/scalac/Global.java | |
parent | 647a8836c5c40e57c09e67bd70b70d1b24639f98 (diff) | |
download | scala-a231200e62b4c6e41965e291456fc5772f59ff00.tar.gz scala-a231200e62b4c6e41965e291456fc5772f59ff00.tar.bz2 scala-a231200e62b4c6e41965e291456fc5772f59ff00.zip |
- Made the 'fail' family of methods static to a...
- Made the 'fail' family of methods static to avoid the dependancy on a
Global instance.
Diffstat (limited to 'sources/scalac/Global.java')
-rw-r--r-- | sources/scalac/Global.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index bf95540e99..43c540013f 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -521,37 +521,37 @@ public abstract class Global { /** stop the compilation process immediately */ - public Error fail() { + public static Error fail() { throw new ApplicationError(); } /** stop the compilation process immediately */ - public Error fail(String message) { + public static Error fail(String message) { throw new ApplicationError(message); } /** stop the compilation process immediately */ - public Error fail(String message, Object object) { + public static Error fail(String message, Object object) { throw new ApplicationError(message, object); } /** stop the compilation process immediately */ - public Error fail(Object value) { + public static Error fail(Object value) { throw new ApplicationError(value); } /** stop the compilation process immediately */ - public Error fail(String message, Throwable cause) { + public static Error fail(String message, Throwable cause) { throw new ApplicationError(message, cause); } /** stop the compilation process immediately */ - public Error fail(Throwable cause) { + public static Error fail(Throwable cause) { throw new ApplicationError(cause); } |