Merge pull request #11 from soupwizard/remove-uneccesary-supress-warnings

removed unnecessary @SupressWarnings, to fix some build warnings
This commit is contained in:
plaa 2012-12-11 20:38:20 -08:00
commit be0fe5c0f7
6 changed files with 0 additions and 9 deletions

View File

@ -40,7 +40,6 @@ public class Alt15K {
@SuppressWarnings("unchecked")
public static String[] getNames() {
ArrayList<String> list = new ArrayList<String>();;
@ -57,7 +56,6 @@ public class Alt15K {
@SuppressWarnings("unchecked")
public Alt15K(String name) throws IOException {
CommPortIdentifier pID = null;

View File

@ -34,7 +34,6 @@ public class RotationLogger {
@SuppressWarnings("unchecked")
public static String[] getNames() {
ArrayList<String> list = new ArrayList<String>();;
@ -53,7 +52,6 @@ public class RotationLogger {
@SuppressWarnings("unchecked")
public RotationLogger(String name) throws IOException {
CommPortIdentifier portID = null;

View File

@ -29,7 +29,6 @@ public class SerialDownload {
@SuppressWarnings("unchecked")
public static String[] getNames() {
ArrayList<String> list = new ArrayList<String>();;
@ -48,7 +47,6 @@ public class SerialDownload {
@SuppressWarnings("unchecked")
public SerialDownload(String name) throws IOException {
CommPortIdentifier portID = null;

View File

@ -257,7 +257,6 @@ public class FlightDataType implements Comparable<FlightDataType> {
* @param u the unit group the new type should belong to if a new group is created.
* @return a data type.
*/
@SuppressWarnings("null")
public static synchronized FlightDataType getType(String s, String symbol, UnitGroup u) {
// if symbol is null : try finding by name

View File

@ -31,7 +31,6 @@ public class Pair<U,V> {
* Compare both components of the Pair to another object.
* The pair is equal iff both items are equal (or null).
*/
@SuppressWarnings("unchecked")
@Override
public boolean equals(Object other) {
if (!(other instanceof Pair))

View File

@ -419,7 +419,6 @@ public class HttpURLConnectionMock extends HttpURLConnection {
@SuppressWarnings("unchecked")
@Override
public Object getContent(Class[] classes) throws IOException {
throw new UnsupportedOperationException();