--- old/src/java.desktop/unix/classes/sun/print/PrintServiceLookupProvider.java 2020-05-20 18:02:38.501117121 -0700 +++ new/src/java.desktop/unix/classes/sun/print/PrintServiceLookupProvider.java 2020-05-20 18:02:38.117109747 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -151,10 +151,6 @@ return osname.startsWith("Mac"); } - static boolean isSysV() { - return osname.equals("SunOS"); - } - static boolean isLinux() { return (osname.equals("Linux")); } @@ -301,7 +297,7 @@ } } } else { - if (isMac() || isSysV()) { + if (isMac()) { printers = getAllPrinterNamesSysV(); } else if (isAIX()) { printers = getAllPrinterNamesAIX(); @@ -485,7 +481,7 @@ } /* fallback if nothing not having a printer at this point */ PrintService printer = null; - if (isMac() || isSysV()) { + if (isMac()) { printer = getNamedPrinterNameSysV(name); } else if (isAIX()) { printer = getNamedPrinterNameAIX(name); @@ -653,7 +649,7 @@ psuri = printerInfo[1]; } } else { - if (isMac() || isSysV()) { + if (isMac()) { defaultPrinter = getDefaultPrinterNameSysV(); } else if (isAIX()) { defaultPrinter = getDefaultPrinterNameAIX(); @@ -872,7 +868,7 @@ ArrayList results = null; try { final String[] cmd = new String[3]; - if (isSysV() || isAIX()) { + if (isAIX()) { cmd[0] = "/usr/bin/sh"; cmd[1] = "-c"; cmd[2] = "env LC_ALL=C " + command;