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