You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2009/03/09 10:35:58 UTC
svn commit: r751635 -
/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseMessageReceiver.java
Author: ruwan
Date: Mon Mar 9 09:35:57 2009
New Revision: 751635
URL: http://svn.apache.org/viewvc?rev=751635&view=rev
Log:
for-each loop
Modified:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseMessageReceiver.java
Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseMessageReceiver.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseMessageReceiver.java?rev=751635&r1=751634&r2=751635&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseMessageReceiver.java (original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseMessageReceiver.java Mon Mar 9 09:35:57 2009
@@ -61,8 +61,8 @@
if (traceOn && trace.isTraceEnabled()) {
String[] cids = mc.getAttachmentMap().getAllContentIDs();
if (cids != null && cids.length > 0) {
- for (int i=0; i<cids.length; i++) {
- trace.trace("Attachment : " + cids[i]);
+ for (String cid : cids) {
+ trace.trace("Attachment : " + cid);
}
}
trace.trace("Envelope : " + mc.getEnvelope());