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 {
|
| 84 | 84 | /** |
| 85 | 85 | * Set output stream to one acquired from calling outputStreamSupplier |
| 86 | 86 | */ |
| 87 | | public void reacquireOutputStream() { |
| | 87 | public synchronized void reacquireOutputStream() { |
| 88 | 88 | final OutputStream reacquiredStream = this.outputStreamSupplier.get(); |
| 89 | 89 | |
| 90 | 90 | // only bother calling setOutputStream if it's actually different, as setOutputStream |