Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/main/java/com/cloudhopper/smpp/pdu/Pdu.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
import com.cloudhopper.smpp.tlv.Tlv;
import com.cloudhopper.smpp.transcoder.PduTranscoderContext;
import com.cloudhopper.smpp.util.ChannelBufferUtil;

import java.util.ArrayList;
import java.util.List;

import org.jboss.netty.buffer.ChannelBuffer;

public abstract class Pdu {
Expand Down Expand Up @@ -147,7 +150,7 @@ public int getOptionalParameterCount() {
* added, this will return null.
* @return Null if no parameters added yet, or the list of optional parameters.
*/
public ArrayList<Tlv> getOptionalParameters() {
public List<Tlv> getOptionalParameters() {
return this.optionalParameters;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
public class NotEnoughDataInBufferException extends RecoverablePduException {
static final long serialVersionUID = 1L;

private int available;
private int expected;
private final int available;
private final int expected;

/**
* Constructs an instance of <code>AtNotEnoughDataInBufferException</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class SmppProcessingException extends Exception {
static final long serialVersionUID = 1L;

private int errorCode;
private final int errorCode;

public SmppProcessingException(int errorCode) {
this(errorCode, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static private DateTime parseDateTimeHelper(String value, DateTimeZone zone) {
}

static public void findFieldAndAddToTreeMap(String normalizedText,
String field, TreeMap<Integer, String> fieldsByStartPos) {
String field, Map<Integer, String> fieldsByStartPos) {
int startPos = normalizedText.indexOf(field);
// logger.debug("Found field " + field + " at startPos " + startPos);
if (startPos >= 0) {
Expand Down