changeset 19564:adada70846e8

Minor cleanup
author alanb
date Tue, 25 Apr 2017 15:23:04 +0100
parents 32367b88f515
children 153f6f683816
files src/java.base/share/classes/sun/launcher/LauncherHelper.java src/jdk.attach/share/classes/sun/tools/attach/HotSpotVirtualMachine.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/sun/launcher/LauncherHelper.java	Tue Apr 25 15:22:19 2017 +0100
+++ b/src/java.base/share/classes/sun/launcher/LauncherHelper.java	Tue Apr 25 15:23:04 2017 +0100
@@ -1124,7 +1124,7 @@
     }
 
     /**
-     * A simple validator to checks for conflicts between modules.
+     * A simple validator to check for conflicts between modules.
      */
     static class ModuleValidator {
         private static final String MODULE_INFO = "module-info.class";
--- a/src/jdk.attach/share/classes/sun/tools/attach/HotSpotVirtualMachine.java	Tue Apr 25 15:22:19 2017 +0100
+++ b/src/jdk.attach/share/classes/sun/tools/attach/HotSpotVirtualMachine.java	Tue Apr 25 15:23:04 2017 +0100
@@ -54,7 +54,7 @@
         CURRENT_PID = AccessController.doPrivileged(pa).pid();
 
         String s = VM.getSavedProperty("jdk.attach.allowAttachSelf");
-        ALLOW_ATTACH_SELF = (s != null) && !"false".equals(s);
+        ALLOW_ATTACH_SELF = "".equals(s) || Boolean.parseBoolean(s);
     }
 
     HotSpotVirtualMachine(AttachProvider provider, String id)