< prev index next >

src/java.desktop/share/classes/sun/font/FontUtilities.java

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 42,53 **** /** * A collection of utility methods. */ public final class FontUtilities { - public static boolean isSolaris; - public static boolean isLinux; public static boolean isMacOSX; public static boolean isMacOSX14; --- 42,51 ----
*** 65,75 **** AccessController.doPrivileged(new PrivilegedAction<Object>() { @SuppressWarnings("deprecation") // PlatformLogger.setLevel is deprecated. @Override public Object run() { String osName = System.getProperty("os.name", "unknownOS"); - isSolaris = osName.startsWith("SunOS"); isLinux = osName.startsWith("Linux"); isMacOSX = osName.contains("OS X"); // TODO: MacOSX if (isMacOSX) { --- 63,72 ----
< prev index next >