File tree 1 file changed +2
-4
lines changed
src/java.desktop/windows/classes/sun/print
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 43
43
44
44
public class PrintServiceLookupProvider extends PrintServiceLookup {
45
45
46
- private String defaultPrinter ;
47
46
private PrintService defaultPrintService ;
48
- private String [] printers ; /* excludes the default printer */
49
47
private PrintService [] printServices ; /* includes the default printer */
50
48
51
49
static {
@@ -114,7 +112,7 @@ public synchronized PrintService[] getPrintServices() {
114
112
}
115
113
116
114
private synchronized void refreshServices () {
117
- printers = getAllPrinterNames ();
115
+ String [] printers = getAllPrinterNames ();
118
116
if (printers == null ) {
119
117
// In Windows it is safe to assume no default if printers == null so we
120
118
// don't get the default.
@@ -279,7 +277,7 @@ public synchronized PrintService getDefaultPrintService() {
279
277
280
278
// Windows does not have notification for a change in default
281
279
// so we always get the latest.
282
- defaultPrinter = getDefaultPrinterName ();
280
+ String defaultPrinter = getDefaultPrinterName ();
283
281
if (defaultPrinter == null ) {
284
282
return null ;
285
283
}
You can’t perform that action at this time.
0 commit comments