8039862: Fix fallthrough lint warnings in 2d
authordarcy
Mon, 21 Apr 2014 23:39:30 -0700
changeset 24527 779f94d50411
parent 24526 ebdd0909c381
child 24528 21c5bb3d76cc
8039862: Fix fallthrough lint warnings in 2d Reviewed-by: flar
jdk/src/share/classes/sun/font/SunFontManager.java
jdk/src/share/classes/sun/font/TrueTypeGlyphMapper.java
jdk/src/solaris/classes/sun/java2d/x11/X11SurfaceData.java
--- a/jdk/src/share/classes/sun/font/SunFontManager.java	Mon Apr 21 20:59:59 2014 +0400
+++ b/jdk/src/share/classes/sun/font/SunFontManager.java	Mon Apr 21 23:39:30 2014 -0700
@@ -1161,6 +1161,7 @@
             case FONTFORMAT_NATIVE:
                 NativeFont nf = new NativeFont(fileName, false);
                 physicalFont = addToFontList(nf, fontRank);
+                break;
             default:
 
             }
--- a/jdk/src/share/classes/sun/font/TrueTypeGlyphMapper.java	Mon Apr 21 20:59:59 2014 +0400
+++ b/jdk/src/share/classes/sun/font/TrueTypeGlyphMapper.java	Mon Apr 21 23:39:30 2014 -0700
@@ -109,6 +109,7 @@
         cmap = CMap.theNullCmap;
     }
 
+    @SuppressWarnings("fallthrough")
     private final char remapJAChar(char unicode) {
         switch (unicode) {
         case REVERSE_SOLIDUS:
@@ -123,6 +124,7 @@
         default: return unicode;
         }
     }
+    @SuppressWarnings("fallthrough")
     private final int remapJAIntChar(int unicode) {
         switch (unicode) {
         case REVERSE_SOLIDUS:
--- a/jdk/src/solaris/classes/sun/java2d/x11/X11SurfaceData.java	Mon Apr 21 20:59:59 2014 +0400
+++ b/jdk/src/solaris/classes/sun/java2d/x11/X11SurfaceData.java	Mon Apr 21 23:39:30 2014 -0700
@@ -515,6 +515,7 @@
         return getSurfaceType(gc, transparency, false);
     }
 
+    @SuppressWarnings("fallthrough")
     public static SurfaceType getSurfaceType(X11GraphicsConfig gc,
                                              int transparency,
                                              boolean pixmapSurface)