Ticket #16010: v1-0001-ReacquiringConsoleHandler-synchronize-reacquireOu.patch

File v1-0001-ReacquiringConsoleHandler-synchronize-reacquireOu.patch, 1.0 KB (added by ris, 11 months ago)
  • src/org/openstreetmap/josm/tools/Logging.java

    From 10ae7c15d87fab51f91259ddda9c018173a5950a Mon Sep 17 00:00:00 2001
    From: Robert Scott <code@humanleg.org.uk>
    Date: Sat, 28 Jul 2018 18:25:59 +0100
    Subject: [PATCH v1] ReacquiringConsoleHandler: synchronize
     reacquireOutputStream() to stop findbugs complaining
    
    ---
     src/org/openstreetmap/josm/tools/Logging.java | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/org/openstreetmap/josm/tools/Logging.java b/src/org/openstreetmap/josm/tools/Logging.java
    index 1542a139d..244b95fc6 100644
    a b public final class Logging { 
    8484        /**
    8585         * Set output stream to one acquired from calling outputStreamSupplier
    8686         */
    87         public void reacquireOutputStream() {
     87        public synchronized void reacquireOutputStream() {
    8888            final OutputStream reacquiredStream = this.outputStreamSupplier.get();
    8989
    9090            // only bother calling setOutputStream if it's actually different, as setOutputStream