src/share/classes/sun/font/TrueTypeGlyphMapper.java

Print this page

        

@@ -107,10 +107,11 @@
          * are gone.
          */
         cmap = CMap.theNullCmap;
     }
 
+    @SuppressWarnings("fallthrough")
     private final char remapJAChar(char unicode) {
         switch (unicode) {
         case REVERSE_SOLIDUS:
             return JA_YEN;
             /* This is a workaround for bug 4533422.

@@ -118,13 +119,15 @@
              */
         case JA_WAVE_DASH_CHAR:
             if (remapJAWaveDash) {
                 return JA_FULLWIDTH_TILDE_CHAR;
             }
+            // Fall through okay?
         default: return unicode;
         }
     }
+    @SuppressWarnings("fallthrough")
     private final int remapJAIntChar(int unicode) {
         switch (unicode) {
         case REVERSE_SOLIDUS:
             return JA_YEN;
             /* This is a workaround for bug 4533422.

@@ -132,10 +135,11 @@
              */
         case JA_WAVE_DASH_CHAR:
             if (remapJAWaveDash) {
                 return JA_FULLWIDTH_TILDE_CHAR;
             }
+            // Fall through okay?
         default: return unicode;
         }
     }
 
     public int charToGlyph(char unicode) {