Author: rsearls
Date: 2014-07-03 12:25:52 -0400 (Thu, 03 Jul 2014)
New Revision: 18779
Modified:
stack/native/branches/jbossws-native-4.2.x/modules/core/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java
Log:
[bz-1104273] moved registration of jbossws handlers from static block
Modified:
stack/native/branches/jbossws-native-4.2.x/modules/core/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java
===================================================================
---
stack/native/branches/jbossws-native-4.2.x/modules/core/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java 2014-07-03
16:23:00 UTC (rev 18778)
+++
stack/native/branches/jbossws-native-4.2.x/modules/core/src/main/java/org/jboss/ws/core/soap/attachment/AttachmentPartImpl.java 2014-07-03
16:25:52 UTC (rev 18779)
@@ -62,18 +62,15 @@
private String cachedContentLocation;
- static
- {
- // Load JAF content handlers
- ContentHandlerRegistry.register();
- }
-
public AttachmentPartImpl()
{
+ // Load JAF content handlers
+ ContentHandlerRegistry.register();
}
public AttachmentPartImpl(DataHandler handler)
{
+ this();
this.dataHandler = handler;
}
Show replies by date