You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2021/04/09 12:07:14 UTC

[cxf] 02/04: Fixed Checkstyle errors

This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 3.3.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit d90dc0eb8e38aa5e0a9a41365ad03e860239c6bb
Author: reta <dr...@gmail.com>
AuthorDate: Thu Apr 8 18:55:46 2021 -0400

    Fixed Checkstyle errors
    
    (cherry picked from commit 3716cd8afda08fb1fd5a078b29e3e4ca0d1d238f)
    (cherry picked from commit f3f2ca91f5ad4198ad74101f7ca89738a00130bd)
---
 core/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java   | 2 +-
 .../test/java/org/apache/cxf/io/CacheAndWriteOutputStreamTest.java    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java b/core/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java
index bc3df0c..482e68c 100644
--- a/core/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java
+++ b/core/src/main/java/org/apache/cxf/io/CacheAndWriteOutputStream.java
@@ -29,10 +29,10 @@ import java.io.OutputStream;
  *
  */
 public class CacheAndWriteOutputStream extends CachedOutputStream {
-    private boolean isClosed = false;
     OutputStream flowThroughStream;
     long count;
     long limit = Long.MAX_VALUE;
+    private boolean isClosed;
 
     public CacheAndWriteOutputStream(OutputStream stream) {
         super();
diff --git a/core/src/test/java/org/apache/cxf/io/CacheAndWriteOutputStreamTest.java b/core/src/test/java/org/apache/cxf/io/CacheAndWriteOutputStreamTest.java
index 171b6fd..0a97b66 100644
--- a/core/src/test/java/org/apache/cxf/io/CacheAndWriteOutputStreamTest.java
+++ b/core/src/test/java/org/apache/cxf/io/CacheAndWriteOutputStreamTest.java
@@ -18,11 +18,11 @@
  */
 package org.apache.cxf.io;
 
-import org.junit.Test;
-
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 
+import org.junit.Test;
+
 public class CacheAndWriteOutputStreamTest extends CachedOutputStreamTest {
 
     ByteArrayOutputStream baos = new ByteArrayOutputStream() {