changeset 9959:ef1c998c0233

8039862: Fix fallthrough lint warnings in 2d Reviewed-by: flar
author darcy
date Mon, 21 Apr 2014 23:39:30 -0700
parents a8ca8e71ce49
children ae68e97bb4c6
files src/share/classes/sun/font/SunFontManager.java src/share/classes/sun/font/TrueTypeGlyphMapper.java src/solaris/classes/sun/java2d/x11/X11SurfaceData.java
diffstat 3 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/font/SunFontManager.java	Mon Apr 21 20:59:59 2014 +0400
+++ b/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/src/share/classes/sun/font/TrueTypeGlyphMapper.java	Mon Apr 21 20:59:59 2014 +0400
+++ b/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/src/solaris/classes/sun/java2d/x11/X11SurfaceData.java	Mon Apr 21 20:59:59 2014 +0400
+++ b/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)