We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf770a commit 1c84539Copy full SHA for 1c84539
1 file changed
src/test/java/org/apache/commons/io/output/ProxyOutputStreamTest.java
@@ -32,24 +32,24 @@
32
*/
33
public class ProxyOutputStreamTest {
34
35
- private final AtomicBoolean hit = new AtomicBoolean();
36
-
37
private ByteArrayOutputStream original;
38
39
private OutputStream proxied;
40
+ private final AtomicBoolean hit = new AtomicBoolean();
+
41
@BeforeEach
42
public void setUp() {
43
original = new ByteArrayOutputStream() {
44
45
@Override
46
- public void write(final byte[] ba) {
+ public synchronized void write(final int ba) {
47
hit.set(true);
48
super.write(ba);
49
}
50
51
52
- public synchronized void write(final int ba) {
+ public void write(final byte[] ba) {
53
54
55
0 commit comments