--- old/src/share/classes/javax/swing/BufferStrategyPaintManager.java Fri Jun 14 15:15:32 2013 +++ new/src/share/classes/javax/swing/BufferStrategyPaintManager.java Fri Jun 14 15:15:31 2013 @@ -215,7 +215,7 @@ } private void dispose(java.util.List bufferInfos) { - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("BufferStrategyPaintManager disposed", new RuntimeException()); } @@ -300,7 +300,7 @@ } } // Invalid root, do what Swing has always done. - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("prepare failed"); } return super.paint(paintingComponent, bufferComponent, g, x, y, w, h); @@ -332,7 +332,7 @@ } accumulate(x + xOffset + deltaX, y + yOffset + deltaY, w, h); } else { - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("copyArea: prepare failed or not in sync"); } // Prepare failed, or not in sync. By calling super.copyArea @@ -360,7 +360,7 @@ } } } - if (LOGGER.isLoggable(PlatformLogger.FINEST)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINEST)) { LOGGER.finest("beginPaint"); } // Reset the area that needs to be painted. @@ -368,7 +368,7 @@ } public void endPaint() { - if (LOGGER.isLoggable(PlatformLogger.FINEST)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINEST)) { LOGGER.finest("endPaint: region " + accumulatedX + " " + accumulatedY + " " + accumulatedMaxX + " " + accumulatedMaxY); @@ -417,7 +417,7 @@ contentsLost = bufferStrategy.contentsLost(); } if (contentsLost) { - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("endPaint: contents lost"); } // Shown region was bogus, mark buffer as out of sync. @@ -511,7 +511,7 @@ contentsLost = true; bufferInfo = new BufferInfo(root); bufferInfos.add(bufferInfo); - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("prepare: new BufferInfo: " + root); } } @@ -522,7 +522,7 @@ bsg = bufferStrategy.getDrawGraphics(); if (bufferStrategy.contentsRestored()) { contentsLost = true; - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("prepare: contents restored in prepare"); } } @@ -535,7 +535,7 @@ if (bufferInfo.getContentsLostDuringExpose()) { contentsLost = true; bufferInfo.setContentsLostDuringExpose(false); - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("prepare: contents lost on expose"); } } @@ -638,7 +638,7 @@ if (biRoot == null) { // Window gc'ed bufferInfos.remove(counter); - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("BufferInfo pruned, root null"); } } @@ -744,7 +744,7 @@ if (bs != null) { weakBS = new WeakReference(bs); } - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("getBufferStrategy: created bs: " + bs); } } @@ -802,7 +802,7 @@ BufferStrategy bs = null; if (SwingUtilities3.isVsyncRequested(root)) { bs = createBufferStrategy(root, true); - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("createBufferStrategy: using vsynced strategy"); } } @@ -844,7 +844,7 @@ invoke(root); } catch (InvocationTargetException ite) { // Type is not supported - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("createBufferStratety failed", ite); } @@ -860,7 +860,7 @@ bs = ((Window)root).getBufferStrategy(); } catch (AWTException e) { // Type not supported - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("createBufferStratety failed", e); } @@ -874,7 +874,7 @@ */ public void dispose() { Container root = getRoot(); - if (LOGGER.isLoggable(PlatformLogger.FINER)) { + if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) { LOGGER.finer("disposed BufferInfo for: " + root); } if (root != null) {