You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2021/10/01 08:10:20 UTC

[cxf] branch 3.3.x-fixes updated: Fixing PMD warning

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

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


The following commit(s) were added to refs/heads/3.3.x-fixes by this push:
     new 806bb39  Fixing PMD warning
806bb39 is described below

commit 806bb399f6658d17935980de58ffafa6c3a22781
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Fri Oct 1 09:10:07 2021 +0100

    Fixing PMD warning
---
 .../java/org/apache/cxf/databinding/source/XMLStreamDataWriter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataWriter.java b/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataWriter.java
index 7cfbb20..6782e9d 100644
--- a/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataWriter.java
+++ b/core/src/main/java/org/apache/cxf/databinding/source/XMLStreamDataWriter.java
@@ -70,7 +70,7 @@ public class XMLStreamDataWriter implements DataWriter<XMLStreamWriter> {
 
     public void write(Object obj, XMLStreamWriter writer) {
         Closeable toClose = null;
-        try {            
+        try { //NOPMD           
             if (obj instanceof DataSource) {
                 DataSource ds = (DataSource)obj;
                 InputStream is = ds.getInputStream();