forked from upstream-mirrors/OpenTracks
fix eclipse warnings
This commit is contained in:
@@ -79,10 +79,8 @@ public class AntInterface {
|
|||||||
private static boolean mAntSupported = false;
|
private static boolean mAntSupported = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An interface for notifying AntInterface IPC clients when they have
|
* An interface for notifying AntInterface IPC clients when they have been
|
||||||
* been connected to the ANT service.
|
* connected to the ANT service.
|
||||||
*
|
|
||||||
* @see ServiceEvent
|
|
||||||
*/
|
*/
|
||||||
public interface ServiceListener
|
public interface ServiceListener
|
||||||
{
|
{
|
||||||
@@ -1046,8 +1044,6 @@ public class AntInterface {
|
|||||||
*
|
*
|
||||||
* @param channelNumber Which channel to transmit on.
|
* @param channelNumber Which channel to transmit on.
|
||||||
* @param txBuffer The data to send.
|
* @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.
|
* @return The number of bytes still to be sent (approximately). 0 if success.
|
||||||
* @throws AntInterfaceException
|
* @throws AntInterfaceException
|
||||||
* @throws AntServiceNotConnectedException
|
* @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.
|
* 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.
|
* 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.
|
* @returns false if a claim interface request notification already exists.
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* @throws AntInterfaceException
|
* @throws AntInterfaceException
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ public class SpreadsheetsClient extends GDataServiceClient {
|
|||||||
* @return a parser for the indicated feed
|
* @return a parser for the indicated feed
|
||||||
* @throws ParseException if the response from the server could not be parsed
|
* @throws ParseException if the response from the server could not be parsed
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("rawtypes")
|
||||||
@Override
|
@Override
|
||||||
public GDataParser getParserForFeed(
|
public GDataParser getParserForFeed(
|
||||||
Class feedEntryClass, String feedUri, String authToken)
|
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
|
* Converts an HTTP exception which happened while writing to the equivalent
|
||||||
* local exception.
|
* local exception.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("rawtypes")
|
||||||
private void convertHttpExceptionForWrites(
|
private void convertHttpExceptionForWrites(
|
||||||
Class entryClass, String message, HttpException cause)
|
Class entryClass, String message, HttpException cause)
|
||||||
throws ParseException, IOException {
|
throws ParseException, IOException {
|
||||||
@@ -253,7 +253,7 @@ public class SpreadsheetsClient extends GDataServiceClient {
|
|||||||
/**
|
/**
|
||||||
* Parses one entry from the input stream.
|
* Parses one entry from the input stream.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("rawtypes")
|
||||||
private Entry parseEntry(Class entryClass, InputStream is)
|
private Entry parseEntry(Class entryClass, InputStream is)
|
||||||
throws ParseException, IOException {
|
throws ParseException, IOException {
|
||||||
GDataParser parser = null;
|
GDataParser parser = null;
|
||||||
|
|||||||
+1
-1
@@ -48,7 +48,7 @@ public class XmlDocsGDataParserFactory implements GDataParserFactory {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("rawtypes")
|
||||||
@Override
|
@Override
|
||||||
public GDataParser createParser(Class cls, InputStream is)
|
public GDataParser createParser(Class cls, InputStream is)
|
||||||
throws ParseException {
|
throws ParseException {
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ import java.util.Vector;
|
|||||||
*/
|
*/
|
||||||
public class MapsFeature {
|
public class MapsFeature {
|
||||||
|
|
||||||
private static final long serialVersionUID = 8439035544430497236L;
|
|
||||||
|
|
||||||
/** A marker feature displays an icon at a single point on the map. */
|
/** A marker feature displays an icon at a single point on the map. */
|
||||||
public static final int MARKER = 0;
|
public static final int MARKER = 0;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ public class XmlMapsGDataParserFactory implements GDataParserFactory {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
@Override
|
@Override
|
||||||
public GDataParser createParser(Class cls, InputStream is)
|
public GDataParser createParser(Class cls, InputStream is)
|
||||||
throws ParseException {
|
throws ParseException {
|
||||||
|
|||||||
+1
-1
@@ -49,7 +49,7 @@ import android.util.Log;
|
|||||||
* Initialization begins in {@link #setupChannel}, which is invoked by the
|
* Initialization begins in {@link #setupChannel}, which is invoked by the
|
||||||
* {@link SensorManager} when track recording begins. {@link #setupChannel}
|
* {@link SensorManager} when track recording begins. {@link #setupChannel}
|
||||||
* asks the ANT Radio Service (via {@link AntInterface}) to start, using a
|
* 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,
|
* connected. {@link #serviceConnected} claims and enables the Radio Service,
|
||||||
* and then resets it to a known state for our use. Completion of reset is
|
* 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}).
|
* indicated by receipt of a startup message (see {@link AntStartupMessage}).
|
||||||
|
|||||||
Reference in New Issue
Block a user