it seems problem presents not in 1.7 only(cherry picked from commit cb3f897)

This commit is contained in:
Konstantin Bulenkov
2011-12-06 11:15:35 +01:00
parent 38302b79c6
commit 2332e083c3
@@ -31,8 +31,7 @@ public class ScreenUtil {
@Nullable private static final Map<GraphicsConfiguration, Pair<Insets, Long>> ourInsetsCache;
static {
final boolean useCache = (SystemInfo.isLinux || SystemInfo.isSolaris)
&& !GraphicsEnvironment.isHeadless()
&& SystemInfo.JAVA_RUNTIME_VERSION.startsWith("1.7");
&& !GraphicsEnvironment.isHeadless();
ourInsetsCache = useCache ? new WeakHashMap<GraphicsConfiguration, Pair<Insets, Long>>() : null;
}