src/share/classes/sun/tools/jinfo/JInfo.java

Print this page

        

@@ -39,10 +39,11 @@
  * and decides if the command should be satisfied using the VM attach mechanism
  * or an SA tool.
  */
 public class JInfo {
 
+    @SuppressWarnings("fallthrough")
     public static void main(String[] args) throws Exception {
         if (args.length == 0) {
             usage(1); // no arguments
         }
 

@@ -116,10 +117,11 @@
                 sysprops(pid);
                 break;
             case "-help":
             case "-h":
                 usage(0);
+                // Fall through
             default:
                if (args.length == 1) {
                    // no flags specified, we do -sysprops and -flags
                    pid = args[0];
                    sysprops(pid);