change lint settings and fix warnings
This commit is contained in:
5
pom.xml
5
pom.xml
@@ -105,6 +105,11 @@
|
||||
<configuration>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
<compilerArgs>
|
||||
<arg>-Xlint:unchecked</arg>
|
||||
</compilerArgs>
|
||||
<showWarnings>true</showWarnings>
|
||||
<showDeprecation>true</showDeprecation>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
||||
@@ -15,6 +15,7 @@ public class Binary {
|
||||
private static final String KEY_NUM = "num";
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static DeconstructedPacket deconstructPacket(Packet packet) {
|
||||
List<byte[]> buffers = new ArrayList<byte[]>();
|
||||
|
||||
@@ -69,6 +70,7 @@ public class Binary {
|
||||
return data;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static Packet reconstructPacket(Packet packet, byte[][] buffers) {
|
||||
packet.data = _reconstructPacket(packet.data, buffers);
|
||||
packet.attachments = -1;
|
||||
|
||||
@@ -170,7 +170,7 @@ public class Parser {
|
||||
}
|
||||
|
||||
private static Packet decodeString(String str) {
|
||||
Packet p = new Packet();
|
||||
Packet<Object> p = new Packet<Object>();
|
||||
int i = 0;
|
||||
int length = str.length();
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ public class Helpers {
|
||||
decoder.add(errorMessage);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void testBin(final Packet obj) {
|
||||
final Object originalData = obj.data;
|
||||
encoder.encode(obj, new Parser.Encoder.Callback() {
|
||||
|
||||
Reference in New Issue
Block a user