From 2332e083c3b38e809753a51b84daa2e73a7312f3 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Tue, 6 Dec 2011 11:15:35 +0100 Subject: [PATCH] it seems problem presents not in 1.7 only(cherry picked from commit cb3f897) --- platform/platform-api/src/com/intellij/ui/ScreenUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/platform-api/src/com/intellij/ui/ScreenUtil.java b/platform/platform-api/src/com/intellij/ui/ScreenUtil.java index ccc45ec01f37..2ded3ab17f65 100644 --- a/platform/platform-api/src/com/intellij/ui/ScreenUtil.java +++ b/platform/platform-api/src/com/intellij/ui/ScreenUtil.java @@ -31,8 +31,7 @@ public class ScreenUtil { @Nullable private static final Map> ourInsetsCache; static { final boolean useCache = (SystemInfo.isLinux || SystemInfo.isSolaris) - && !GraphicsEnvironment.isHeadless() - && SystemInfo.JAVA_RUNTIME_VERSION.startsWith("1.7"); + && !GraphicsEnvironment.isHeadless(); ourInsetsCache = useCache ? new WeakHashMap>() : null; }