jdk/src/share/classes/sun/font/FileFontStrike.java
changeset 560 3a8029083a72
parent 550 e85f91b9bb95
parent 438 2ae294e4518c
child 715 f16baef3a20e
equal deleted inserted replaced
559:7f92d623aa8a 560:3a8029083a72
   759              * We never reach this path if we obtain images with advances.
   759              * We never reach this path if we obtain images with advances.
   760              * But if we do not obtain images with advances its possible that
   760              * But if we do not obtain images with advances its possible that
   761              * we first obtain this information, then the image, and never
   761              * we first obtain this information, then the image, and never
   762              * will access this value again.
   762              * will access this value again.
   763              */
   763              */
   764             Integer key = new Integer(glyphCode);
   764             Integer key = Integer.valueOf(glyphCode);
   765             Point2D.Float value = null;
   765             Point2D.Float value = null;
   766             ConcurrentHashMap<Integer, Point2D.Float> glyphMetricsMap = null;
   766             ConcurrentHashMap<Integer, Point2D.Float> glyphMetricsMap = null;
   767             if (glyphMetricsMapRef != null) {
   767             if (glyphMetricsMapRef != null) {
   768                 glyphMetricsMap = glyphMetricsMapRef.get();
   768                 glyphMetricsMap = glyphMetricsMapRef.get();
   769             }
   769             }
   826 
   826 
   827         if (boundsMap == null) {
   827         if (boundsMap == null) {
   828             boundsMap = new ConcurrentHashMap<Integer, Rectangle2D.Float>();
   828             boundsMap = new ConcurrentHashMap<Integer, Rectangle2D.Float>();
   829         }
   829         }
   830 
   830 
   831         Integer key = new Integer(glyphCode);
   831         Integer key = Integer.valueOf(glyphCode);
   832         Rectangle2D.Float bounds = boundsMap.get(key);
   832         Rectangle2D.Float bounds = boundsMap.get(key);
   833 
   833 
   834         if (bounds == null) {
   834         if (bounds == null) {
   835             bounds = fileFont.getGlyphOutlineBounds(pScalerContext, glyphCode);
   835             bounds = fileFont.getGlyphOutlineBounds(pScalerContext, glyphCode);
   836             boundsMap.put(key, bounds);
   836             boundsMap.put(key, bounds);