axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r406830 - in /webservices/axis/trunk/java/src/org/apache/axis: MessageContext.java attachments/AttachmentsImpl.java
Date Tue, 16 May 2006 04:50:22 GMT
Author: gawor
Date: Mon May 15 21:50:20 2006
New Revision: 406830

URL: http://svn.apache.org/viewcvs?rev=406830&view=rev
Log:
minor improvements

Modified:
    webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java
    webservices/axis/trunk/java/src/org/apache/axis/attachments/AttachmentsImpl.java

Modified: webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java?rev=406830&r1=406829&r2=406830&view=diff
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java Mon May 15 21:50:20
2006
@@ -265,9 +265,8 @@
                         }
                     }
                     if (foundOperations.size() > 0) {
-                        possibleOperations = (OperationDesc[])
-                            JavaUtils.convert(foundOperations,
-                                              OperationDesc[].class);
+                        possibleOperations = new OperationDesc[foundOperations.size()];
+                        foundOperations.toArray(possibleOperations);
                     }
                 }
             }

Modified: webservices/axis/trunk/java/src/org/apache/axis/attachments/AttachmentsImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/src/org/apache/axis/attachments/AttachmentsImpl.java?rev=406830&r1=406829&r2=406830&view=diff
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/attachments/AttachmentsImpl.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/attachments/AttachmentsImpl.java Mon May
15 21:50:20 2006
@@ -666,15 +666,16 @@
      */
 
     public void dispose() {
-        java.util.Iterator iterator = GetAttachmentsIterator();
-        while (iterator.hasNext()) {
-            Part part = (Part) iterator.next();
-            if (part instanceof AttachmentPart) {
-                AttachmentPart apart=(AttachmentPart)part;
-                apart.dispose();
+        if (this.attachments.size() > 0) {
+            java.util.Iterator iterator = GetAttachmentsIterator();
+            while (iterator.hasNext()) {
+                Part part = (Part) iterator.next();
+                if (part instanceof AttachmentPart) {
+                    AttachmentPart apart=(AttachmentPart)part;
+                    apart.dispose();
+                }
             }
         }
-
     }
 
     // consider type-safe e-num here?



Mime
View raw message