src/java.desktop/share/classes/sun/font/TrueTypeFont.java

Print this page

        

@@ -872,21 +872,21 @@
                 return buffer;
             }
         }
     }
 
-    /* NB: is it better to move declaration to Font2D? */
-    long getLayoutTableCache() {
+    @Override
+    protected long getLayoutTableCache() {
         try {
           return getScaler().getLayoutTableCache();
         } catch(FontScalerException fe) {
             return 0L;
         }
     }
 
     @Override
-    byte[] getTableBytes(int tag) {
+    protected byte[] getTableBytes(int tag) {
         ByteBuffer buffer = getTableBuffer(tag);
         if (buffer == null) {
             return null;
         } else if (buffer.hasArray()) {
             try {