Permalink
Browse files

Fixed hasAttachments method to not lazy create an empty map

git-svn-id: https://svn.apache.org/repos/asf/camel/trunk@1210814 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent fd18ad2 commit f5ea9c4b53809e5b8628d24075b7c8109c12bcca @davsclaus davsclaus committed Dec 6, 2011
Showing with 0 additions and 3 deletions.
  1. +0 −3 camel-core/src/main/java/org/apache/camel/impl/DefaultMessage.java
View
3 camel-core/src/main/java/org/apache/camel/impl/DefaultMessage.java
@@ -273,9 +273,6 @@ public void setAttachments(Map<String, DataHandler> attachments) {
}
public boolean hasAttachments() {
- if (attachments == null) {
- attachments = createAttachments();
- }
return this.attachments != null && this.attachments.size() > 0;
}

0 comments on commit f5ea9c4

Please sign in to comment.