--- old/src/java.desktop/unix/classes/sun/font/FontConfigManager.java 2019-05-02 04:36:18.000000000 -0700 +++ new/src/java.desktop/unix/classes/sun/font/FontConfigManager.java 2019-05-02 04:36:18.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. + * 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 @@ -143,7 +143,7 @@ Locale l = SunToolkit.getStartupLocale(); String localeStr = l.getLanguage(); String country = l.getCountry(); - if (!country.equals("")) { + if (!country.isEmpty()) { localeStr = localeStr + "-" + country; } return localeStr;