Merge pull request #11 from soupwizard/remove-uneccesary-supress-warnings
removed unnecessary @SupressWarnings, to fix some build warnings
This commit is contained in:
commit
be0fe5c0f7
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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))
|
||||
|
@ -419,7 +419,6 @@ public class HttpURLConnectionMock extends HttpURLConnection {
|
||||
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Object getContent(Class[] classes) throws IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
|
Loading…
x
Reference in New Issue
Block a user