From f7f15ab1605aa0ac7310abee9f604b5a45d47577 Mon Sep 17 00:00:00 2001 From: chegar Date: Mon, 17 Jun 2013 14:09:25 +0100 Subject: 8016747: Replace deprecated PlatformLogger isLoggable(int) with isLoggable(Level) Reviewed-by: darcy --- src/solaris/classes/sun/awt/X11GraphicsEnvironment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/solaris/classes/sun/awt/X11GraphicsEnvironment.java') diff --git a/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java b/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java index ffb920b636..4e1c816fd1 100644 --- a/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java +++ b/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java @@ -324,7 +324,7 @@ public class X11GraphicsEnvironment // pRunningXinerama() simply returns a global boolean variable, // so there is no need to synchronize here xinerState = Boolean.valueOf(pRunningXinerama()); - if (screenLog.isLoggable(PlatformLogger.FINER)) { + if (screenLog.isLoggable(PlatformLogger.Level.FINER)) { screenLog.finer("Running Xinerama: " + xinerState); } } @@ -408,7 +408,7 @@ public class X11GraphicsEnvironment (unionRect.width / 2) + unionRect.x < center.x + 1 && (unionRect.height / 2) + unionRect.y < center.y + 1) { - if (screenLog.isLoggable(PlatformLogger.FINER)) { + if (screenLog.isLoggable(PlatformLogger.Level.FINER)) { screenLog.finer("Video Wall: center point is at center of all displays."); } return unionRect; @@ -416,7 +416,7 @@ public class X11GraphicsEnvironment // next, check if at center of one monitor if (centerMonitorRect != null) { - if (screenLog.isLoggable(PlatformLogger.FINER)) { + if (screenLog.isLoggable(PlatformLogger.Level.FINER)) { screenLog.finer("Center point at center of a particular " + "monitor, but not of the entire virtual display."); } @@ -424,7 +424,7 @@ public class X11GraphicsEnvironment } // otherwise, the center is at some weird spot: return unionRect - if (screenLog.isLoggable(PlatformLogger.FINER)) { + if (screenLog.isLoggable(PlatformLogger.Level.FINER)) { screenLog.finer("Center point is somewhere strange - return union of all bounds."); } return unionRect; -- cgit v1.2.3