From dd0a9a12d9b8ec54d30182111dd0003719cc08a4 Mon Sep 17 00:00:00 2001 From: soupwizard Date: Tue, 11 Dec 2012 18:15:42 -0800 Subject: [PATCH] removed unnecessary @SupressWarnings, to fix some build warnings --- core/src-extra/altimeter/Alt15K.java | 2 -- core/src-extra/altimeter/RotationLogger.java | 2 -- core/src-extra/altimeter/SerialDownload.java | 2 -- core/src/net/sf/openrocket/simulation/FlightDataType.java | 1 - core/src/net/sf/openrocket/util/Pair.java | 1 - .../net/sf/openrocket/communication/HttpURLConnectionMock.java | 1 - 6 files changed, 9 deletions(-) diff --git a/core/src-extra/altimeter/Alt15K.java b/core/src-extra/altimeter/Alt15K.java index 0fba13561..33ec567ed 100644 --- a/core/src-extra/altimeter/Alt15K.java +++ b/core/src-extra/altimeter/Alt15K.java @@ -40,7 +40,6 @@ public class Alt15K { - @SuppressWarnings("unchecked") public static String[] getNames() { ArrayList list = new ArrayList();; @@ -57,7 +56,6 @@ public class Alt15K { - @SuppressWarnings("unchecked") public Alt15K(String name) throws IOException { CommPortIdentifier pID = null; diff --git a/core/src-extra/altimeter/RotationLogger.java b/core/src-extra/altimeter/RotationLogger.java index 45e7d7622..74cb7c809 100644 --- a/core/src-extra/altimeter/RotationLogger.java +++ b/core/src-extra/altimeter/RotationLogger.java @@ -34,7 +34,6 @@ public class RotationLogger { - @SuppressWarnings("unchecked") public static String[] getNames() { ArrayList list = new ArrayList();; @@ -53,7 +52,6 @@ public class RotationLogger { - @SuppressWarnings("unchecked") public RotationLogger(String name) throws IOException { CommPortIdentifier portID = null; diff --git a/core/src-extra/altimeter/SerialDownload.java b/core/src-extra/altimeter/SerialDownload.java index d82e58252..557308b45 100644 --- a/core/src-extra/altimeter/SerialDownload.java +++ b/core/src-extra/altimeter/SerialDownload.java @@ -29,7 +29,6 @@ public class SerialDownload { - @SuppressWarnings("unchecked") public static String[] getNames() { ArrayList list = new ArrayList();; @@ -48,7 +47,6 @@ public class SerialDownload { - @SuppressWarnings("unchecked") public SerialDownload(String name) throws IOException { CommPortIdentifier portID = null; diff --git a/core/src/net/sf/openrocket/simulation/FlightDataType.java b/core/src/net/sf/openrocket/simulation/FlightDataType.java index 3c73fc781..fabb25f10 100644 --- a/core/src/net/sf/openrocket/simulation/FlightDataType.java +++ b/core/src/net/sf/openrocket/simulation/FlightDataType.java @@ -257,7 +257,6 @@ public class FlightDataType implements Comparable { * @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 diff --git a/core/src/net/sf/openrocket/util/Pair.java b/core/src/net/sf/openrocket/util/Pair.java index 9a562cb85..5bae1295c 100644 --- a/core/src/net/sf/openrocket/util/Pair.java +++ b/core/src/net/sf/openrocket/util/Pair.java @@ -31,7 +31,6 @@ public class Pair { * 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)) diff --git a/core/test/net/sf/openrocket/communication/HttpURLConnectionMock.java b/core/test/net/sf/openrocket/communication/HttpURLConnectionMock.java index 57f5d5203..bf963dd89 100644 --- a/core/test/net/sf/openrocket/communication/HttpURLConnectionMock.java +++ b/core/test/net/sf/openrocket/communication/HttpURLConnectionMock.java @@ -419,7 +419,6 @@ public class HttpURLConnectionMock extends HttpURLConnection { - @SuppressWarnings("unchecked") @Override public Object getContent(Class[] classes) throws IOException { throw new UnsupportedOperationException();