servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [1/2] servicemix-specs git commit: [SM-3379] Reuse user defined CommandMaps in the activation-api spec DataHandler
Date Thu, 01 Jun 2017 10:52:21 GMT
Repository: servicemix-specs
Updated Branches:
  refs/heads/master 73d9f9117 -> 65f4182ca


[SM-3379] Reuse user defined CommandMaps in the activation-api spec DataHandler


Project: http://git-wip-us.apache.org/repos/asf/servicemix-specs/repo
Commit: http://git-wip-us.apache.org/repos/asf/servicemix-specs/commit/a77f218e
Tree: http://git-wip-us.apache.org/repos/asf/servicemix-specs/tree/a77f218e
Diff: http://git-wip-us.apache.org/repos/asf/servicemix-specs/diff/a77f218e

Branch: refs/heads/master
Commit: a77f218e9b4e2c5eeb0f27cd9eb37b2c44f327a8
Parents: 73d9f91
Author: Marin Dzhigarov <m.dzhigarov@gmail.com>
Authored: Fri May 26 10:14:20 2017 +0300
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Thu Jun 1 12:51:21 2017 +0200

----------------------------------------------------------------------
 activation-api-1.1/src/main/java/javax/activation/DataHandler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/servicemix-specs/blob/a77f218e/activation-api-1.1/src/main/java/javax/activation/DataHandler.java
----------------------------------------------------------------------
diff --git a/activation-api-1.1/src/main/java/javax/activation/DataHandler.java b/activation-api-1.1/src/main/java/javax/activation/DataHandler.java
index 817ef02..b4b4bcf 100644
--- a/activation-api-1.1/src/main/java/javax/activation/DataHandler.java
+++ b/activation-api-1.1/src/main/java/javax/activation/DataHandler.java
@@ -246,7 +246,7 @@ public class DataHandler implements Transferable {
                 dch = localFactory.createDataContentHandler(mimeType);
             }
             if (dch == null) {
-                dch = CommandMap.getDefaultCommandMap().createDataContentHandler(mimeType);
+                dch = getCommandMap().createDataContentHandler(mimeType);
             }
         }
         return dch;


Mime
View raw message