< prev index next >

src/java.prefs/share/classes/java/util/prefs/Base64.java

Print this page

        

@@ -122,22 +122,22 @@
 
     /**
      * Translates the specified Base64 string (as per Preferences.get(byte[]))
      * into a byte array.
      *
-     * @throw IllegalArgumentException if {@code s} is not a valid Base64
+     * @throws IllegalArgumentException if {@code s} is not a valid Base64
      *        string.
      */
     static byte[] base64ToByteArray(String s) {
         return base64ToByteArray(s, false);
     }
 
     /**
      * Translates the specified "alternate representation" Base64 string
      * into a byte array.
      *
-     * @throw IllegalArgumentException or ArrayOutOfBoundsException
+     * @throws IllegalArgumentException or ArrayOutOfBoundsException
      *        if {@code s} is not a valid alternate representation
      *        Base64 string.
      */
     static byte[] altBase64ToByteArray(String s) {
         return base64ToByteArray(s, true);

@@ -192,11 +192,11 @@
 
     /**
      * Translates the specified character, which is assumed to be in the
      * "Base 64 Alphabet" into its equivalent 6-bit positive integer.
      *
-     * @throw IllegalArgumentException or ArrayOutOfBoundsException if
+     * @throws IllegalArgumentException or ArrayOutOfBoundsException if
      *        c is not in the Base64 Alphabet.
      */
     private static int base64toInt(char c, byte[] alphaToInt) {
         int result = alphaToInt[c];
         if (result < 0)
< prev index next >