ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1737504 - in /webservices/axiom/trunk/axiom-compat/src: main/java/org/apache/axiom/attachments/impl/ main/java/org/apache/axiom/attachments/utils/ main/java/org/apache/axiom/mime/impl/javamail/ main/java/org/apache/axiom/om/impl/ main/java...
Date Sat, 02 Apr 2016 13:25:02 GMT
Author: veithen
Date: Sat Apr  2 13:25:01 2016
New Revision: 1737504

URL: http://svn.apache.org/viewvc?rev=1737504&view=rev
Log:
Fix/suppress warnings in axiom-compat.

Modified:
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAInputStream.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAOutputStream.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/mime/impl/javamail/MultipartWriterImpl.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/NamespaceContextImpl.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/XMLComparator.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/serialize/OMXMLReader.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMAbstractIterator.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMChildElementIterator.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQNameFilterIterator.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQualifiedNameFilterIterator.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/util/TextHelper.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/util/blob/MemoryBlob.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/impl/BufferUtilsTest.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAAInputStreamTest.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAATest.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/mime/impl/javamail/MultipartWriterTest.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/ds/ParserInputStreamDataSourceTests.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/jaxp/StreamSourceToOMResultTest.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/llom/util/AXIOMUtilTest.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIteratorTest.java
    webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/util/TextHelperTest.java

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java
Sat Apr  2 13:25:01 2016
@@ -163,19 +163,16 @@ public class BufferUtils {
             // Read directly into the ByteBuffer array
             int bytesRead = is.read(bb.array());
             while (bytesRead != -1) {
-                int written = 0;
-                
-                
                 if (bytesRead < BUFFER_LEN) {
                     // If the ByteBuffer is not full, allocate a new one
                     ByteBuffer temp = ByteBuffer.allocate(bytesRead);
                     temp.put(bb.array(), 0, bytesRead);
                     temp.position(0);
-                    written = channel.write(temp);
+                    channel.write(temp);
                 } else {
                     // Write to channel
                     bb.position(0);
-                    written = channel.write(bb);
+                    channel.write(bb);
                     bb.clear();
                 }
                 

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAInputStream.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAInputStream.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAInputStream.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAInputStream.java
Sat Apr  2 13:25:01 2016
@@ -34,6 +34,7 @@ import java.util.ArrayList;
  * 
  * @deprecated
  */
+@SuppressWarnings("rawtypes")
 public class BAAInputStream extends InputStream {
 
     ArrayList data = new ArrayList();

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAOutputStream.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAOutputStream.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAOutputStream.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/attachments/utils/BAAOutputStream.java
Sat Apr  2 13:25:01 2016
@@ -36,6 +36,7 @@ import java.util.ArrayList;
  * 
  * @deprecated
  */
+@SuppressWarnings({"rawtypes", "unchecked"})
 public class BAAOutputStream extends OutputStream implements ReadFromSupport {
 
     ArrayList data = new ArrayList();

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/mime/impl/javamail/MultipartWriterImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/mime/impl/javamail/MultipartWriterImpl.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/mime/impl/javamail/MultipartWriterImpl.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/mime/impl/javamail/MultipartWriterImpl.java
Sat Apr  2 13:25:01 2016
@@ -35,6 +35,10 @@ import org.apache.axiom.util.blob.BlobDa
 import org.apache.axiom.util.blob.MemoryBlob;
 import org.apache.axiom.util.blob.WritableBlob;
 
+/**
+ * @deprecated
+ */
+@SuppressWarnings("rawtypes")
 class MultipartWriterImpl implements MultipartWriter {
     private static final byte[] DASH_DASH = { '-', '-' };
     private static final byte[] CR_LF = { 13, 10 };

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java
Sat Apr  2 13:25:01 2016
@@ -50,6 +50,7 @@ import org.apache.commons.logging.LogFac
  *             has as cleaner API and supports streaming of individual MIME parts, in particular
the
  *             SOAP part.
  */
+@SuppressWarnings("rawtypes")
 public class MIMEOutputUtils {
     
     private static final Log log = LogFactory.getLog(MIMEOutputUtils.class);

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/NamespaceContextImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/NamespaceContextImpl.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/NamespaceContextImpl.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/NamespaceContextImpl.java
Sat Apr  2 13:25:01 2016
@@ -26,6 +26,7 @@ import org.apache.axiom.util.namespace.M
 /**
  * @deprecated Use {@link MapBasedNamespaceContext} instead.
  */
+@SuppressWarnings({"rawtypes", "unchecked"})
 public class NamespaceContextImpl extends MapBasedNamespaceContext {
     public NamespaceContextImpl(Map map) {
         super(map);

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/XMLComparator.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/XMLComparator.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/XMLComparator.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/llom/util/XMLComparator.java
Sat Apr  2 13:25:01 2016
@@ -34,6 +34,7 @@ import java.util.Vector;
 /**
  * @deprecated This class is no longer maintained. Please use XmlUnit to compare XML documents.
  */
+@SuppressWarnings({"rawtypes", "unchecked"})
 public class XMLComparator {
     private static final Log log = LogFactory.getLog(XMLComparator.class);
 

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/serialize/OMXMLReader.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/serialize/OMXMLReader.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/serialize/OMXMLReader.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/serialize/OMXMLReader.java
Sat Apr  2 13:25:01 2016
@@ -78,6 +78,7 @@ import org.xml.sax.ext.LexicalHandler;
  * {@link SAXSource#getXMLReader()} on the {@link SAXSource} returned by
  * {@link OMContainer#getSAXSource(boolean)}.
  */
+@SuppressWarnings({"rawtypes", "unchecked"})
 public class OMXMLReader extends AbstractXMLReader {
     private final OMContainer root;
     private final AttributesAdapter attributesAdapter = new AttributesAdapter();

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMAbstractIterator.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMAbstractIterator.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMAbstractIterator.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMAbstractIterator.java
Sat Apr  2 13:25:01 2016
@@ -31,6 +31,7 @@ import org.apache.axiom.om.OMNode;
  * 
  * @deprecated
  */
+@SuppressWarnings("rawtypes")
 public abstract class OMAbstractIterator implements Iterator {
     private OMNode currentNode;
     

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMChildElementIterator.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMChildElementIterator.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMChildElementIterator.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMChildElementIterator.java
Sat Apr  2 13:25:01 2016
@@ -30,6 +30,7 @@ import java.util.Iterator;
  *             {@link OMElement#getChildElements()}, and this class should never be referenced
  *             directly. It will be removed in Axiom 1.3.
  */
+@SuppressWarnings("rawtypes")
 public class OMChildElementIterator implements Iterator {
 
     /** Field currentChild */

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQNameFilterIterator.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQNameFilterIterator.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQNameFilterIterator.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQNameFilterIterator.java
Sat Apr  2 13:25:01 2016
@@ -33,6 +33,7 @@ import org.apache.axiom.om.OMNode;
  * 
  * @deprecated
  */
+@SuppressWarnings("rawtypes")
 public class OMQNameFilterIterator extends OMFilterIterator {
     private final QName qname;
 

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQualifiedNameFilterIterator.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQualifiedNameFilterIterator.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQualifiedNameFilterIterator.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/impl/traverse/OMQualifiedNameFilterIterator.java
Sat Apr  2 13:25:01 2016
@@ -31,6 +31,7 @@ import org.apache.axiom.om.OMNode;
  * 
  * @deprecated
  */
+@SuppressWarnings("rawtypes")
 public class OMQualifiedNameFilterIterator extends OMFilterIterator {
     private final String prefix;
     private final String localName;

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/util/TextHelper.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/util/TextHelper.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/util/TextHelper.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/om/util/TextHelper.java
Sat Apr  2 13:25:01 2016
@@ -180,18 +180,7 @@ public class TextHelper {
      * @deprecated
      */
     private static LifecycleManager getLifecycleManager(OMFactory factory) {
-        LifecycleManager lm = null;
-        
-        /* TODO Support access to lifecycle manager from the factory
-        if (factory.getProperty(LIFECYCLE_MANAGER)) {
-            ...
-        }
-        */
-        if (lm == null) {
-            return new LifecycleManagerImpl();
-        }
-        return lm;
-        
+        return new LifecycleManagerImpl();
     }
     
     /**

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/util/blob/MemoryBlob.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/util/blob/MemoryBlob.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/util/blob/MemoryBlob.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/util/blob/MemoryBlob.java
Sat Apr  2 13:25:01 2016
@@ -32,6 +32,7 @@ import org.apache.axiom.ext.io.StreamCop
  * 
  * @deprecated Use {@link org.apache.axiom.blob.MemoryBlob} instead.
  */
+@SuppressWarnings({"rawtypes", "unchecked"})
 public class MemoryBlob implements WritableBlob {
     // TODO: this should be configurable
     final static int BUFFER_SIZE = 4096;

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
Sat Apr  2 13:25:01 2016
@@ -32,6 +32,7 @@ import java.io.StringWriter;
 
 import junit.framework.TestCase;
 
+@SuppressWarnings("deprecation")
 public class AttachmentsTest extends TestCase {
     public void testSWAWriteWithIncomingOrder() throws Exception {
 
@@ -40,7 +41,7 @@ public class AttachmentsTest extends Tes
         Attachments attachments = new Attachments(inStream, SwASample.SAMPLE1.getContentType());
 
         // Get the contentIDs to force the reading
-        String[] contentIDs = attachments.getAllContentIDs();
+        attachments.getAllContentIDs();
         
         // Get the root
         SOAPModelBuilder builder = OMXMLBuilderFactory.createSOAPModelBuilder(attachments.getRootPartInputStream(),
"UTF-8");

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/impl/BufferUtilsTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/impl/BufferUtilsTest.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/impl/BufferUtilsTest.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/impl/BufferUtilsTest.java
Sat Apr  2 13:25:01 2016
@@ -36,6 +36,7 @@ import junit.framework.TestCase;
 /**
  * Simple test for the BufferUtils copying code
  */
+@SuppressWarnings("deprecation")
 public class BufferUtilsTest extends TestCase {
 
     byte[] bytes;
@@ -67,10 +68,14 @@ public class BufferUtilsTest extends Tes
             }
             fos.close();
             FileInputStream fis = new FileInputStream(file);
-            byte[] buffer = new byte[20];
-            fis.read(buffer);
-            for (int i = 0; i < buffer.length; i++) {
-                assertTrue(buffer[i] == (byte) i);
+            try {
+                byte[] buffer = new byte[20];
+                fis.read(buffer);
+                for (int i = 0; i < buffer.length; i++) {
+                    assertTrue(buffer[i] == (byte) i);
+                }
+            } finally {
+                fis.close();
             }
         } finally {
             file.delete();

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAAInputStreamTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAAInputStreamTest.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAAInputStreamTest.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAAInputStreamTest.java
Sat Apr  2 13:25:01 2016
@@ -24,6 +24,7 @@ import java.util.ArrayList;
 
 import junit.framework.TestCase;
 
+@SuppressWarnings({"rawtypes", "unchecked", "deprecation"})
 public final class BAAInputStreamTest extends TestCase {
     
     public void testRead() throws Exception {
@@ -39,6 +40,7 @@ public final class BAAInputStreamTest ex
         assertEquals(expected.read(), in.read());
         assertEquals(expected.read(), in.read());
         assertEquals(expected.read(), in.read());
+        in.close();
     }
     
 }

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAATest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAATest.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAATest.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/attachments/utils/BAATest.java
Sat Apr  2 13:25:01 2016
@@ -28,6 +28,7 @@ import junit.framework.TestCase;
 /**
  * UnitTest for the BAAInputStream and BAAOutputStream classes.
  */
+@SuppressWarnings("deprecation")
 public class BAATest extends TestCase {
 
     static final int  INPUT_SIZE = 100 * 1024;
@@ -54,11 +55,7 @@ public class BAATest extends TestCase {
     }
     
     public void normal() throws Exception {
-        long time = System.currentTimeMillis();
         for (int i=0; i<ITERATIONS+PRIME; i++) {
-            if (i == PRIME) {
-                time = System.currentTimeMillis();
-            }
             inputBAIS.reset();
             ByteArrayOutputStream baos = new ByteArrayOutputStream(BAOS_SIZE);
             BufferUtils.inputStream2OutputStream(inputBAIS, baos);
@@ -73,16 +70,10 @@ public class BAATest extends TestCase {
             BufferUtils.inputStream2OutputStream(bais, baos);
             assertTrue(baos.toByteArray().length == INPUT_SIZE);
         }
-        // Uncomment the follow
-        //System.out.println("Normal time = " + (System.currentTimeMillis()-time));
     }
     
     public void enhanced() throws Exception {
-        long time = System.currentTimeMillis();
         for (int i=0; i<ITERATIONS+PRIME; i++) {
-            if (i == PRIME) {
-                time = System.currentTimeMillis();
-            }
             inputBAIS.reset();
             BAAOutputStream baaos = new BAAOutputStream();
             BufferUtils.inputStream2OutputStream(inputBAIS, baaos);
@@ -99,7 +90,6 @@ public class BAATest extends TestCase {
             BufferUtils.inputStream2OutputStream(baais, baaos);
             assertTrue("" + baaos.length() + " " + INPUT_SIZE, baaos.length() == INPUT_SIZE);
         }
-        //System.out.println("Enhanced time = " + (System.currentTimeMillis()-time));
     }
     
 }

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/mime/impl/javamail/MultipartWriterTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/mime/impl/javamail/MultipartWriterTest.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/mime/impl/javamail/MultipartWriterTest.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/mime/impl/javamail/MultipartWriterTest.java
Sat Apr  2 13:25:01 2016
@@ -20,6 +20,7 @@ package org.apache.axiom.mime.impl.javam
 
 import org.apache.axiom.mime.AbstractMultipartWriterTest;
 
+@SuppressWarnings("deprecation")
 public class MultipartWriterTest extends AbstractMultipartWriterTest {
     public MultipartWriterTest() {
         super(JavaMailMultipartWriterFactory.INSTANCE);

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/ds/ParserInputStreamDataSourceTests.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/ds/ParserInputStreamDataSourceTests.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/ds/ParserInputStreamDataSourceTests.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/ds/ParserInputStreamDataSourceTests.java
Sat Apr  2 13:25:01 2016
@@ -43,6 +43,7 @@ import org.apache.axiom.soap.SOAPBody;
 import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.SOAPModelBuilder;
 
+@SuppressWarnings({"rawtypes", "deprecation"})
 public class ParserInputStreamDataSourceTests extends TestCase {
 	private SOAPModelBuilder builder = null;
 	private XMLStreamReader parser = null;
@@ -188,7 +189,7 @@ public class ParserInputStreamDataSource
     
     public void testDestructiveMarkableSAC_SAC() throws Exception {
         try {
-            int numReads = _testPEDS(Behavior.DESTRUCTIVE, true, Scenario.SAC_SAC);
+            _testPEDS(Behavior.DESTRUCTIVE, true, Scenario.SAC_SAC);
             fail();
         } catch (OMException e) {
             // OMException is expected..you can't call serialize and consume twice ..ever
@@ -268,7 +269,7 @@ public class ParserInputStreamDataSource
     
     public void testOneUseNotMarkableSER_SER() throws Exception {
         try {
-            int numReads = _testPEDS(Behavior.ONE_USE_UNSAFE, false, Scenario.SER_SER);
+            _testPEDS(Behavior.ONE_USE_UNSAFE, false, Scenario.SER_SER);
             fail();
         } catch (OMException e) {
             // OMException is expected..you can't serialize twice in this mode
@@ -282,7 +283,7 @@ public class ParserInputStreamDataSource
     
     public void testOneUseNotMarkableSER_SAC() throws Exception {
         try {
-            int numReads = _testPEDS(Behavior.ONE_USE_UNSAFE, false, Scenario.SER_SAC);
+            _testPEDS(Behavior.ONE_USE_UNSAFE, false, Scenario.SER_SAC);
             fail();
         } catch (OMException e) {
             // OMException is expected..you can't serialize twice in this mode
@@ -291,7 +292,7 @@ public class ParserInputStreamDataSource
     
     public void testOneUseNotMarkableSAC_SAC() throws Exception {
         try {
-            int numReads = _testPEDS(Behavior.ONE_USE_UNSAFE, false, Scenario.SAC_SAC);
+            _testPEDS(Behavior.ONE_USE_UNSAFE, false, Scenario.SAC_SAC);
             fail();
         } catch (OMException e) {
             // OMException is expected..you can't call serialize and consume twice ..ever

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/jaxp/StreamSourceToOMResultTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/jaxp/StreamSourceToOMResultTest.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/jaxp/StreamSourceToOMResultTest.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/jaxp/StreamSourceToOMResultTest.java
Sat Apr  2 13:25:01 2016
@@ -38,6 +38,7 @@ import org.apache.axiom.ts.jaxp.XSLTImpl
 import org.apache.axiom.ts.xml.XMLSample;
 import org.xml.sax.InputSource;
 
+@SuppressWarnings({"rawtypes", "deprecation"})
 public class StreamSourceToOMResultTest extends MatrixTestCase {
     private static final String[] axiomImplementations = { "default", "dom" };
     

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/llom/util/AXIOMUtilTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/llom/util/AXIOMUtilTest.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/llom/util/AXIOMUtilTest.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/llom/util/AXIOMUtilTest.java
Sat Apr  2 13:25:01 2016
@@ -23,6 +23,7 @@ import javax.xml.stream.XMLStreamExcepti
 
 import junit.framework.TestCase;
 
+@SuppressWarnings("deprecation")
 public class AXIOMUtilTest extends TestCase {
 	public void testStringToOM() throws XMLStreamException {
 		String testString = "\u00e0 peine arriv\u00e9s nous entr\u00e2mes dans sa chambre";

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIteratorTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIteratorTest.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIteratorTest.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIteratorTest.java
Sat Apr  2 13:25:01 2016
@@ -28,6 +28,7 @@ import org.apache.axiom.om.OMNamespace;
 import javax.xml.namespace.QName;
 import java.util.Iterator;
 
+@SuppressWarnings({"rawtypes", "deprecation"})
 public class OMChildrenWithSpecificAttributeIteratorTest extends TestCase {
     public void testChildrenRetrievalWithDetaching() {
 

Modified: webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/util/TextHelperTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/util/TextHelperTest.java?rev=1737504&r1=1737503&r2=1737504&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/util/TextHelperTest.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/test/java/org/apache/axiom/om/util/TextHelperTest.java
Sat Apr  2 13:25:01 2016
@@ -40,6 +40,7 @@ import junit.framework.TestCase;
 /**
  * Validate TextHelper code
  */
+@SuppressWarnings("deprecation")
 public class TextHelperTest extends TestCase {
     private File tempDir;
     private File file;



Mime
View raw message