diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 19:17:59 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 19:17:59 +1300 |
commit | 3bf3ade7e1e0f7abf69d0e98ed064f455e2cff69 (patch) | |
tree | 1b24cb81652b072277bbc8207c643240e809e893 /src/org/traccar/CharacterDelimiterFrameDecoder.java | |
parent | c344d4086bb2179d485c9b25af4d737e26f23221 (diff) | |
download | trackermap-server-3bf3ade7e1e0f7abf69d0e98ed064f455e2cff69.tar.gz trackermap-server-3bf3ade7e1e0f7abf69d0e98ed064f455e2cff69.tar.bz2 trackermap-server-3bf3ade7e1e0f7abf69d0e98ed064f455e2cff69.zip |
Clean up some model classes
Diffstat (limited to 'src/org/traccar/CharacterDelimiterFrameDecoder.java')
-rw-r--r-- | src/org/traccar/CharacterDelimiterFrameDecoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/CharacterDelimiterFrameDecoder.java b/src/org/traccar/CharacterDelimiterFrameDecoder.java index cc5a415a9..96e86a947 100644 --- a/src/org/traccar/CharacterDelimiterFrameDecoder.java +++ b/src/org/traccar/CharacterDelimiterFrameDecoder.java @@ -22,12 +22,12 @@ import org.jboss.netty.handler.codec.frame.DelimiterBasedFrameDecoder; public class CharacterDelimiterFrameDecoder extends DelimiterBasedFrameDecoder { private static ChannelBuffer createDelimiter(char delimiter) { - byte buf[] = { (byte) delimiter }; + byte[] buf = {(byte) delimiter}; return ChannelBuffers.wrappedBuffer(buf); } private static ChannelBuffer createDelimiter(String delimiter) { - byte buf[] = new byte[delimiter.length()]; + byte[] buf = new byte[delimiter.length()]; for (int i = 0; i < delimiter.length(); i++) { buf[i] = (byte) delimiter.charAt(i); } @@ -35,7 +35,7 @@ public class CharacterDelimiterFrameDecoder extends DelimiterBasedFrameDecoder { } private static ChannelBuffer[] convertDelimiters(String[] delimiters) { - ChannelBuffer result[] = new ChannelBuffer[delimiters.length]; + ChannelBuffer[] result = new ChannelBuffer[delimiters.length]; for (int i = 0; i < delimiters.length; i++) { result[i] = createDelimiter(delimiters[i]); } |