servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r391659 - in /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging: MessageExchangeImpl.java NormalizedMessageImpl.java
Date Wed, 05 Apr 2006 16:04:09 GMT
Author: gnodet
Date: Wed Apr  5 09:04:07 2006
New Revision: 391659

URL: http://svn.apache.org/viewcvs?rev=391659&view=rev
Log:
SM-384: getters and setters are inappropriately synchronized on NormalizedMessageImpl and
MessageExchangeImpl

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/MessageExchangeImpl.java
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/NormalizedMessageImpl.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/MessageExchangeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/MessageExchangeImpl.java?rev=391659&r1=391658&r2=391659&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/MessageExchangeImpl.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/MessageExchangeImpl.java
Wed Apr  5 09:04:07 2006
@@ -512,7 +512,7 @@
     }
 
 
-    public synchronized PojoMarshaler getMarshaler() {
+    public PojoMarshaler getMarshaler() {
         if (marshaler == null) {
             marshaler = new DefaultMarshaler();
         }

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/NormalizedMessageImpl.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/NormalizedMessageImpl.java?rev=391659&r1=391658&r2=391659&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/NormalizedMessageImpl.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/NormalizedMessageImpl.java
Wed Apr  5 09:04:07 2006
@@ -83,7 +83,7 @@
     /**
      * @return the content of the message
      */
-    public synchronized Source getContent() {
+    public Source getContent() {
         if (content == null && body != null) {
             try {
                 getMarshaler().marshal(exchange, this, body);
@@ -100,14 +100,14 @@
      *
      * @param source
      */
-    public synchronized void setContent(Source source) {
+    public void setContent(Source source) {
         this.content = source;
     }
 
     /**
      * @return the security subject from the message
      */
-    public synchronized Subject getSecuritySubject() {
+    public Subject getSecuritySubject() {
         return securitySubject;
     }
 
@@ -116,7 +116,7 @@
      *
      * @param securitySubject
      */
-    public synchronized void setSecuritySubject(Subject securitySubject) {
+    public void setSecuritySubject(Subject securitySubject) {
         this.securitySubject = securitySubject;
     }
 
@@ -126,7 +126,7 @@
      * @param name
      * @return a property from the message
      */
-    public synchronized Object getProperty(String name) {
+    public Object getProperty(String name) {
         if (properties != null) {
             return properties.get(name);
         }
@@ -136,7 +136,7 @@
     /**
      * @return an iterator of property names
      */
-    public synchronized Set getPropertyNames() {
+    public Set getPropertyNames() {
         if (properties != null) {
             return Collections.unmodifiableSet(properties.keySet());
         }
@@ -149,7 +149,7 @@
      * @param name
      * @param value
      */
-    public synchronized void setProperty(String name, Object value) {
+    public void setProperty(String name, Object value) {
         if (value == null) {
             if (properties != null) {
                 properties.remove(name);
@@ -165,7 +165,7 @@
      * @param id
      * @param content
      */
-    public synchronized void addAttachment(String id, DataHandler content) {
+    public void addAttachment(String id, DataHandler content) {
         getAttachments().put(id, content);
     }
 
@@ -175,7 +175,7 @@
      * @param id
      * @return the specified attachment
      */
-    public synchronized DataHandler getAttachment(String id) {
+    public DataHandler getAttachment(String id) {
         if (attachments != null) {
             return (DataHandler) attachments.get(id);
         }
@@ -185,7 +185,7 @@
     /**
      * @return a list of identifiers for atachments
      */
-    public synchronized Iterator listAttachments() {
+    public Iterator listAttachments() {
         if (attachments != null) {
             return attachments.keySet().iterator();
         }
@@ -197,7 +197,7 @@
      *
      * @param id
      */
-    public synchronized void removeAttachment(String id) {
+    public void removeAttachment(String id) {
         if (attachments != null) {
             attachments.remove(id);
         }



Mime
View raw message