From 8e62ff239c48eed5338a2270dc7b3a1b7b28fb88 Mon Sep 17 00:00:00 2001 From: Jimmy Shih Date: Wed, 14 Mar 2012 15:37:22 -0700 Subject: [PATCH] fix eclipse warnings --- MyTracks/src/com/dsi/ant/AntInterface.java | 10 +++------- .../mytracks/io/gdata/docs/SpreadsheetsClient.java | 6 +++--- .../io/gdata/docs/XmlDocsGDataParserFactory.java | 2 +- .../apps/mytracks/io/gdata/maps/MapsFeature.java | 2 -- .../io/gdata/maps/XmlMapsGDataParserFactory.java | 2 +- .../services/sensors/ant/AntSensorManager.java | 2 +- 6 files changed, 9 insertions(+), 15 deletions(-) diff --git a/MyTracks/src/com/dsi/ant/AntInterface.java b/MyTracks/src/com/dsi/ant/AntInterface.java index 5fd5ee345..e8c6a0b67 100644 --- a/MyTracks/src/com/dsi/ant/AntInterface.java +++ b/MyTracks/src/com/dsi/ant/AntInterface.java @@ -79,10 +79,8 @@ public class AntInterface { private static boolean mAntSupported = false; /** - * An interface for notifying AntInterface IPC clients when they have - * been connected to the ANT service. - * - * @see ServiceEvent + * An interface for notifying AntInterface IPC clients when they have been + * connected to the ANT service. */ public interface ServiceListener { @@ -1046,8 +1044,6 @@ public class AntInterface { * * @param channelNumber Which channel to transmit on. * @param txBuffer The data to send. - * @param initialPacket Which packet in the burst sequence does the data begin in, 1 is the first. - * @param containsEndOfBurst Is this the last of the data to be sent in burst. * @return The number of bytes still to be sent (approximately). 0 if success. * @throws AntInterfaceException * @throws AntServiceNotConnectedException @@ -1213,7 +1209,7 @@ public class AntInterface { * Claims the interface if it is available. If not the user will be prompted (on the notification bar) if a force claim should be done. * If the ANT Interface is claimed, an AntInterfaceIntent.ANT_INTERFACE_CLAIMED_ACTION intent will be sent, with the current applications pid. * - * @param String appName The name if this application, to show to the user. + * @param appName The name if this application, to show to the user. * @returns false if a claim interface request notification already exists. * @throws IllegalArgumentException * @throws AntInterfaceException diff --git a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/docs/SpreadsheetsClient.java b/MyTracks/src/com/google/android/apps/mytracks/io/gdata/docs/SpreadsheetsClient.java index 2b2e11b80..c82525305 100755 --- a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/docs/SpreadsheetsClient.java +++ b/MyTracks/src/com/google/android/apps/mytracks/io/gdata/docs/SpreadsheetsClient.java @@ -153,7 +153,7 @@ public class SpreadsheetsClient extends GDataServiceClient { * @return a parser for the indicated feed * @throws ParseException if the response from the server could not be parsed */ - @SuppressWarnings("unchecked") + @SuppressWarnings("rawtypes") @Override public GDataParser getParserForFeed( Class feedEntryClass, String feedUri, String authToken) @@ -227,7 +227,7 @@ public class SpreadsheetsClient extends GDataServiceClient { * Converts an HTTP exception which happened while writing to the equivalent * local exception. */ - @SuppressWarnings("unchecked") + @SuppressWarnings("rawtypes") private void convertHttpExceptionForWrites( Class entryClass, String message, HttpException cause) throws ParseException, IOException { @@ -253,7 +253,7 @@ public class SpreadsheetsClient extends GDataServiceClient { /** * Parses one entry from the input stream. */ - @SuppressWarnings("unchecked") + @SuppressWarnings("rawtypes") private Entry parseEntry(Class entryClass, InputStream is) throws ParseException, IOException { GDataParser parser = null; diff --git a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/docs/XmlDocsGDataParserFactory.java b/MyTracks/src/com/google/android/apps/mytracks/io/gdata/docs/XmlDocsGDataParserFactory.java index a6e5e4985..62f40e1f3 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/docs/XmlDocsGDataParserFactory.java +++ b/MyTracks/src/com/google/android/apps/mytracks/io/gdata/docs/XmlDocsGDataParserFactory.java @@ -48,7 +48,7 @@ public class XmlDocsGDataParserFactory implements GDataParserFactory { } } - @SuppressWarnings("unchecked") + @SuppressWarnings("rawtypes") @Override public GDataParser createParser(Class cls, InputStream is) throws ParseException { diff --git a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/maps/MapsFeature.java b/MyTracks/src/com/google/android/apps/mytracks/io/gdata/maps/MapsFeature.java index 6668ca7de..d8f8c7fa5 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/maps/MapsFeature.java +++ b/MyTracks/src/com/google/android/apps/mytracks/io/gdata/maps/MapsFeature.java @@ -14,8 +14,6 @@ import java.util.Vector; */ public class MapsFeature { - private static final long serialVersionUID = 8439035544430497236L; - /** A marker feature displays an icon at a single point on the map. */ public static final int MARKER = 0; diff --git a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/maps/XmlMapsGDataParserFactory.java b/MyTracks/src/com/google/android/apps/mytracks/io/gdata/maps/XmlMapsGDataParserFactory.java index bbf447a13..4f9f50aa0 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/maps/XmlMapsGDataParserFactory.java +++ b/MyTracks/src/com/google/android/apps/mytracks/io/gdata/maps/XmlMapsGDataParserFactory.java @@ -39,7 +39,7 @@ public class XmlMapsGDataParserFactory implements GDataParserFactory { } } - @SuppressWarnings("unchecked") + @SuppressWarnings({ "unchecked", "rawtypes" }) @Override public GDataParser createParser(Class cls, InputStream is) throws ParseException { diff --git a/MyTracks/src/com/google/android/apps/mytracks/services/sensors/ant/AntSensorManager.java b/MyTracks/src/com/google/android/apps/mytracks/services/sensors/ant/AntSensorManager.java index 5e8e6ea8d..415bf78ef 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/services/sensors/ant/AntSensorManager.java +++ b/MyTracks/src/com/google/android/apps/mytracks/services/sensors/ant/AntSensorManager.java @@ -49,7 +49,7 @@ import android.util.Log; * Initialization begins in {@link #setupChannel}, which is invoked by the * {@link SensorManager} when track recording begins. {@link #setupChannel} * asks the ANT Radio Service (via {@link AntInterface}) to start, using a - * {@link AntInterface.ServiceListener} to indicate when the service has + * AntInterface.ServiceListener to indicate when the service has * connected. {@link #serviceConnected} claims and enables the Radio Service, * and then resets it to a known state for our use. Completion of reset is * indicated by receipt of a startup message (see {@link AntStartupMessage}).