Skip to content

Commit

Permalink
Removal of unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarCoelho committed Oct 19, 2023
1 parent 353ca33 commit 3a09863
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public MALMessage createMessage(final Blob authenticationId,
isErrorMessage,
supplements,
qosProperties),
qosProperties, null, transport.getStreamFactory(), body);
qosProperties, transport.getStreamFactory(), body);
} catch (MALInteractionException ex) {
throw new MALException("Error creating message", ex);
}
Expand Down Expand Up @@ -169,7 +169,7 @@ public MALMessage createMessage(final Blob authenticationId,
isErrorMessage,
supplements,
qosProperties),
qosProperties, null, transport.getStreamFactory(), body);
qosProperties, transport.getStreamFactory(), body);
} catch (MALInteractionException ex) {
throw new MALException("Error creating message", ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public class GENMessage implements MALMessage, java.io.Serializable {
* BLOBs.
* @param header The message header to use.
* @param qosProperties The QoS properties for this message.
* @param operation The details of the operation being encoding, can be
* null.
* @param encFactory The stream factory to use for decoding.
* @param body the body of the message.
* @throws org.ccsds.moims.mo.mal.MALInteractionException If the operation
Expand All @@ -71,7 +69,6 @@ public class GENMessage implements MALMessage, java.io.Serializable {
public GENMessage(final boolean wrapBodyParts,
final MALMessageHeader header,
final Map qosProperties,
final MALOperation operation,
final MALElementStreamFactory encFactory,
final Object... body) throws MALInteractionException {
this.header = header;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public MALMessage createMessage(final Blob authenticationId,
hdr.getConfiguration(),
getMessageSegmentCounter(hdr),
false, hdr,
qosProperties, null, transport.getStreamFactory(), body);
qosProperties, transport.getStreamFactory(), body);
} catch (MALInteractionException ex) {
throw new MALException("Error creating message", ex);
}
Expand Down Expand Up @@ -168,7 +168,7 @@ public MALMessage createMessage(final Blob authenticationId,
return new SPPMessage(
((SPPBaseTransport) transport).getHeaderStreamFactory(),
hdr.getConfiguration(), getMessageSegmentCounter(hdr),
false, hdr, qosProperties, null,
false, hdr, qosProperties,
transport.getStreamFactory(), body);
} catch (MALInteractionException ex) {
throw new MALException("Error creating message", ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public class SPPMessage extends GENMessage {
* BLOBs.
* @param header The message header to use.
* @param qosProperties The QoS properties for this message.
* @param operation The details of the operation being encoding, can be
* null.
* @param encFactory The encoding factory.
* @param body the body of the message.
* @throws org.ccsds.moims.mo.mal.MALInteractionException If the operation
Expand All @@ -68,9 +66,8 @@ public class SPPMessage extends GENMessage {
public SPPMessage(final MALElementStreamFactory hdrStreamFactory,
final SPPConfiguration configuration, final SPPSegmentCounter segmentCounter,
boolean wrapBodyParts, MALMessageHeader header, Map qosProperties,
MALOperation operation, MALElementStreamFactory encFactory,
Object... body) throws MALInteractionException {
super(wrapBodyParts, header, qosProperties, operation, encFactory, body);
MALElementStreamFactory encFactory, Object... body) throws MALInteractionException {
super(wrapBodyParts, header, qosProperties, encFactory, body);

this.hdrStreamFactory = hdrStreamFactory;
this.configuration = configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public MALMessage createMessage(final Blob authenticationId,
isErrorMessage, supplements, qosProperties);
try {
return new TCPIPMessage(false, (TCPIPMessageHeader) hdr, qosProperties,
null, transport.getStreamFactory(), body);
transport.getStreamFactory(), body);
} catch (MALInteractionException e) {
throw new MALException("Error creating message", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.util.Map;
import org.ccsds.moims.mo.mal.MALException;
import org.ccsds.moims.mo.mal.MALInteractionException;
import org.ccsds.moims.mo.mal.MALOperation;
import org.ccsds.moims.mo.mal.encoding.MALElementOutputStream;
import org.ccsds.moims.mo.mal.encoding.MALElementStreamFactory;

Expand All @@ -52,9 +51,8 @@ public TCPIPMessage(boolean wrapBodyParts,
}

public TCPIPMessage(boolean wrapBodyParts, TCPIPMessageHeader header, Map qosProperties,
MALOperation operation, MALElementStreamFactory encFactory,
Object... body) throws MALInteractionException {
super(wrapBodyParts, header, qosProperties, operation, encFactory, body);
MALElementStreamFactory encFactory, Object... body) throws MALInteractionException {
super(wrapBodyParts, header, qosProperties, encFactory, body);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public MALMessage createMessage(final Blob authenticationId,
qosProperties);
return new ZMTPMessage(
((ZMTPTransport) transport).getHeaderStreamFactory(),
wrapBodyParts, hdr, qosProperties, null,
wrapBodyParts, hdr, qosProperties,
transport.getStreamFactory(), body);
} catch (MALInteractionException ex) {
throw new MALException("Error creating message", ex);
Expand Down Expand Up @@ -127,7 +127,7 @@ public MALMessage createMessage(final Blob authenticationId,
qosProperties);
return new ZMTPMessage(
((ZMTPTransport) transport).getHeaderStreamFactory(),
wrapBodyParts, hdr, qosProperties, null,
wrapBodyParts, hdr, qosProperties,
transport.getStreamFactory(), body);
} catch (MALInteractionException ex) {
throw new MALException("Error creating message", ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,15 @@ public class ZMTPMessage extends GENMessage {
* BLOBs.
* @param header The message header to use.
* @param qosProperties The QoS properties for this message.
* @param operation The details of the operation being encoding, can be
* null.
* @param encFactory The stream factory to use for message body encoding.
* @param body the body of the message.
* @throws org.ccsds.moims.mo.mal.MALInteractionException If the operation
* is unknown.
*/
public ZMTPMessage(final MALElementStreamFactory hdrStreamFactory, boolean wrapBodyParts,
MALMessageHeader header, Map qosProperties, MALOperation operation,
MALElementStreamFactory encFactory, Object... body) throws MALInteractionException {
super(wrapBodyParts, header, qosProperties, operation, encFactory, body);
MALMessageHeader header, Map qosProperties, MALElementStreamFactory encFactory,
Object... body) throws MALInteractionException {
super(wrapBodyParts, header, qosProperties, encFactory, body);

this.hdrStreamFactory = hdrStreamFactory;
}
Expand Down

0 comments on commit 3a09863

Please sign in to comment.