--- old/src/java.desktop/windows/classes/sun/print/PrintServiceLookupProvider.java 2020-03-30 06:34:39.779452800 -0700 +++ new/src/java.desktop/windows/classes/sun/print/PrintServiceLookupProvider.java 2020-03-30 06:34:39.345355700 -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 @@ -356,10 +356,10 @@ return defaultPrintService; } - class PrinterChangeListener implements Runnable { - long chgObj; - PrinterChangeListener() { - chgObj = notifyFirstPrinterChange(null); + private final class PrinterChangeListener implements Runnable { + private final long chgObj; + private PrinterChangeListener() { + chgObj = notifyFirstPrinterChange(); } @Override @@ -446,7 +446,7 @@ private native String getDefaultPrinterName(); private native String[] getAllPrinterNames(); - private native long notifyFirstPrinterChange(String printer); + private native long notifyFirstPrinterChange(); private native void notifyClosePrinterChange(long chgObj); private native int notifyPrinterChange(long chgObj); private native String[] getRemotePrintersNames();