aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/DetectorHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-14 10:10:30 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-14 10:10:30 +1300
commit26659e3631901a46e35a5c2ac89c698a52277b0a (patch)
treee79af12bbeb18da1d879b11f066da96517bf9a4c /src/org/traccar/DetectorHandler.java
parent398b705820109c1103d915a2fec81fcf70b032cf (diff)
downloadtrackermap-server-26659e3631901a46e35a5c2ac89c698a52277b0a.tar.gz
trackermap-server-26659e3631901a46e35a5c2ac89c698a52277b0a.tar.bz2
trackermap-server-26659e3631901a46e35a5c2ac89c698a52277b0a.zip
Fix some check style issues
Diffstat (limited to 'src/org/traccar/DetectorHandler.java')
-rw-r--r--src/org/traccar/DetectorHandler.java18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/org/traccar/DetectorHandler.java b/src/org/traccar/DetectorHandler.java
index 8bc63fd1c..223985906 100644
--- a/src/org/traccar/DetectorHandler.java
+++ b/src/org/traccar/DetectorHandler.java
@@ -46,11 +46,13 @@ public class DetectorHandler extends SimpleChannelHandler {
FrameDecoder frameDecoder = (FrameDecoder) pipeline.get("frameDecoder");
if (frameDecoder != null) {
try {
- Method method = frameDecoder.getClass().getDeclaredMethod("decode", ChannelHandlerContext.class, Channel.class, ChannelBuffer.class);
+ Method method = frameDecoder.getClass().getDeclaredMethod(
+ "decode", ChannelHandlerContext.class, Channel.class, ChannelBuffer.class);
method.setAccessible(true);
tmp = method.invoke(frameDecoder, null, null, tmp);
} catch (NoSuchMethodException error) {
- Method method = frameDecoder.getClass().getSuperclass().getDeclaredMethod("decode", ChannelHandlerContext.class, Channel.class, ChannelBuffer.class);
+ Method method = frameDecoder.getClass().getSuperclass().getDeclaredMethod(
+ "decode", ChannelHandlerContext.class, Channel.class, ChannelBuffer.class);
method.setAccessible(true);
tmp = method.invoke(frameDecoder, null, null, tmp);
}
@@ -61,11 +63,13 @@ public class DetectorHandler extends SimpleChannelHandler {
StringDecoder stringDecoder = new StringDecoder();
if (tmp != null) {
try {
- Method method = stringDecoder.getClass().getDeclaredMethod("decode", ChannelHandlerContext.class, Channel.class, Object.class);
+ Method method = stringDecoder.getClass().getDeclaredMethod(
+ "decode", ChannelHandlerContext.class, Channel.class, Object.class);
method.setAccessible(true);
tmp = method.invoke(stringDecoder, null, null, tmp);
} catch (NoSuchMethodException error) {
- Method method = stringDecoder.getClass().getSuperclass().getDeclaredMethod("decode", ChannelHandlerContext.class, Channel.class, Object.class);
+ Method method = stringDecoder.getClass().getSuperclass().getDeclaredMethod(
+ "decode", ChannelHandlerContext.class, Channel.class, Object.class);
method.setAccessible(true);
tmp = method.invoke(stringDecoder, null, null, tmp);
}
@@ -76,11 +80,13 @@ public class DetectorHandler extends SimpleChannelHandler {
BaseProtocolDecoder protocolDecoder = (BaseProtocolDecoder) pipeline.get("objectDecoder");
if (tmp != null) {
try {
- Method method = protocolDecoder.getClass().getDeclaredMethod("decode", ChannelHandlerContext.class, Channel.class, SocketAddress.class, Object.class);
+ Method method = protocolDecoder.getClass().getDeclaredMethod(
+ "decode", ChannelHandlerContext.class, Channel.class, SocketAddress.class, Object.class);
method.setAccessible(true);
tmp = method.invoke(protocolDecoder, null, null, null, tmp);
} catch (NoSuchMethodException error) {
- Method method = protocolDecoder.getClass().getSuperclass().getDeclaredMethod("decode", ChannelHandlerContext.class, Channel.class, SocketAddress.class, Object.class);
+ Method method = protocolDecoder.getClass().getSuperclass().getDeclaredMethod(
+ "decode", ChannelHandlerContext.class, Channel.class, SocketAddress.class, Object.class);
method.setAccessible(true);
tmp = method.invoke(protocolDecoder, null, null, null, tmp);
}