Skip to content

Commit

Permalink
Merge pull request opentelecoms-org#33 from georgekankava/staging/mul…
Browse files Browse the repository at this point in the history
…tiple-code-improvements-fix-3

multiple code improvements: squid:S1213, squid:S1488, squid:S1197, squid:S00115
  • Loading branch information
pmoerenhout committed Feb 26, 2016
2 parents b0629d6 + b07d314 commit 6221d82
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion jsmpp/src/main/java/org/jsmpp/DefaultPDUSender.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public byte[] sendBindResp(OutputStream os, int commandId,
int sequenceNumber, String systemId, InterfaceVersion interfaceVersion) throws PDUStringException,
IOException {

OptionalParameter p[];
OptionalParameter[] p;
if(interfaceVersion != null) {
OptionalParameter interfaceVersionParam = new OptionalParameter.Byte(Tag.SC_INTERFACE_VERSION, interfaceVersion.value());
p = new OptionalParameter[] {interfaceVersionParam};
Expand Down
2 changes: 1 addition & 1 deletion jsmpp/src/main/java/org/jsmpp/SMPPConstant.java
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public interface SMPPConstant {

public static final short TAG_SC_INTERFACE_VERSION = 0x0210;
public static final short TAG_SAR_MSG_REF_NUM = 0X020C;
public static final short TAG_SAR_TOTAl_SEGMENTS = 0x020e;
public static final short TAG_SAR_TOTAL_SEGMENTS = 0x020e;
public static final short TAG_SAR_SEGMENT_SEQNUM = 0x020f;

/*
Expand Down
8 changes: 4 additions & 4 deletions jsmpp/src/main/java/org/jsmpp/bean/DeliverSm.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public class DeliverSm extends MessageRequest {

private String id;

public DeliverSm() {
super();
}

public String getId() {
return id;
}
Expand All @@ -33,10 +37,6 @@ public void setId(String id) {
this.id = id;
}

public DeliverSm() {
super();
}

/**
* Get the short message as {@link DeliveryReceipt}. This method will be
* valid if the parsed short message valid and Message Type (esm_class)
Expand Down
3 changes: 1 addition & 2 deletions jsmpp/src/main/java/org/jsmpp/bean/SarSegmentSeqnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public short getValue() {

@Override
public int hashCode() {
int result = 1;
return result;
return 1;
}

@Override
Expand Down
5 changes: 2 additions & 3 deletions jsmpp/src/main/java/org/jsmpp/bean/SarTotalSegments.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public SarTotalSegments(short value) {
}

public short getTag() {
return SMPPConstant.TAG_SAR_TOTAl_SEGMENTS;
return SMPPConstant.TAG_SAR_TOTAL_SEGMENTS;
}

public short getLength() {
Expand All @@ -45,8 +45,7 @@ public short getValue() {

@Override
public int hashCode() {
int result = 1;
return result;
return 1;
}

@Override
Expand Down

0 comments on commit 6221d82

Please sign in to comment.