changeset 13138:59fce7947e90

8144210: Runtime.currentRuntime should be final Reviewed-by: dl, dholmes
author alanb
date Sun, 29 Nov 2015 20:27:38 +0000
parents ced6e999c11b
children 88e2545d5e6d
files src/java.base/share/classes/java/lang/Runtime.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Runtime.java	Fri Nov 27 11:30:46 2015 +0100
+++ b/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.