8144210: Runtime.currentRuntime should be final
authoralanb
Sun, 29 Nov 2015 20:27:38 +0000
changeset 34350 6beb09485bdd
parent 34349 eddd54f8891e
child 34351 f30070a16a4b
8144210: Runtime.currentRuntime should be final Reviewed-by: dl, dholmes
jdk/src/java.base/share/classes/java/lang/Runtime.java
--- a/jdk/src/java.base/share/classes/java/lang/Runtime.java	Fri Nov 27 11:30:46 2015 +0100
+++ b/jdk/src/java.base/share/classes/java/lang/Runtime.java	Sun Nov 29 20:27:38 2015 +0000
@@ -44,7 +44,7 @@
  */
 
 public class Runtime {
-    private static Runtime currentRuntime = new Runtime();
+    private static final Runtime currentRuntime = new Runtime();
 
     /**
      * Returns the runtime object associated with the current Java application.