@@ -205,11 +205,11 @@ } public synchronized PrintService getPrintServiceByName(String name) { - if (name == null || name.equals("")) { + if (name == null || name.isEmpty()) { return null; } else { /* getPrintServices() is now very fast. */ PrintService[] printServices = getPrintServices(); for (int i=0; i<printServices.length; i++) {