@@ -60,16 +60,17 @@ protected AbstractMarshallingPayloadEndpoint() {
6060 }
6161
6262 /**
63- * Creates a new <code>AbstractMarshallingPayloadEndpoint</code> with the given marshaller. If the given {@link
64- * Marshaller} also implements the {@link Unmarshaller} interface, it is used for both marshalling and
65- * unmarshalling. Otherwise , an exception is thrown.
63+ * Creates a new <code>AbstractMarshallingPayloadEndpoint</code> with the given marshaller. The given {@link
64+ * Marshaller} should also implements the {@link Unmarshaller}, since it is used for both marshalling and
65+ * unmarshalling. If it is not , an exception is thrown.
6666 * <p/>
6767 * Note that all {@link Marshaller} implementations in Spring-WS also implement the {@link Unmarshaller} interface,
6868 * so that you can safely use this constructor.
6969 *
7070 * @param marshaller object used as marshaller and unmarshaller
7171 * @throws IllegalArgumentException when <code>marshaller</code> does not implement the {@link Unmarshaller}
7272 * interface
73+ * @see #AbstractMarshallingPayloadEndpoint(Marshaller,Unmarshaller)
7374 */
7475 protected AbstractMarshallingPayloadEndpoint (Marshaller marshaller ) {
7576 Assert .notNull (marshaller , "marshaller must not be null" );
@@ -79,8 +80,8 @@ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller) {
7980 "AbstractMarshallingPayloadEndpoint(Marshaller, Unmarshaller) constructor." );
8081 }
8182 else {
82- this . setMarshaller (marshaller );
83- this . setUnmarshaller ((Unmarshaller ) marshaller );
83+ setMarshaller (marshaller );
84+ setUnmarshaller ((Unmarshaller ) marshaller );
8485 }
8586 }
8687
@@ -93,8 +94,8 @@ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller) {
9394 protected AbstractMarshallingPayloadEndpoint (Marshaller marshaller , Unmarshaller unmarshaller ) {
9495 Assert .notNull (marshaller , "marshaller must not be null" );
9596 Assert .notNull (unmarshaller , "unmarshaller must not be null" );
96- this . setMarshaller (marshaller );
97- this . setUnmarshaller (unmarshaller );
97+ setMarshaller (marshaller );
98+ setUnmarshaller (unmarshaller );
9899 }
99100
100101 /** Returns the marshaller used for transforming objects into XML. */
0 commit comments