mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
it seems problem presents not in 1.7 only(cherry picked from commit cb3f897)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user