src/java.desktop/share/classes/java/awt/AWTKeyStroke.java

Print this page

        

@@ -81,11 +81,11 @@
     private static AWTKeyStroke APP_CONTEXT_KEYSTROKE_KEY = new AWTKeyStroke();
 
     /*
      * Reads keystroke class from AppContext and if null, puts there the
      * AWTKeyStroke class.
-     * Must be called under locked AWTKeyStro
+     * Must be called under locked AWTKeyStroke
      */
     private static Class<AWTKeyStroke> getAWTKeyStrokeClass() {
         @SuppressWarnings("unchecked")
         Class<AWTKeyStroke> clazz = (Class<AWTKeyStroke>)AppContext.getAppContext().get(AWTKeyStroke.class);
         if (clazz == null) {

@@ -223,11 +223,11 @@
             AppContext.getAppContext().remove(APP_CONTEXT_CACHE_KEY);
             AppContext.getAppContext().remove(APP_CONTEXT_KEYSTROKE_KEY);
         }
     }
 
-    /* returns noarg Constructor for class with accessible flag. No security
+    /* returns no-arg Constructor for class with accessible flag. No security
        threat as accessible flag is set only for this Constructor object,
        not for Class constructor.
      */
     private static Constructor<?> getCtor(final Class<?> clazz)
     {