mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
fix eclipse warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ public class XmlDocsGDataParserFactory implements GDataParserFactory {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
@Override
|
||||
public GDataParser createParser(Class cls, InputStream is)
|
||||
throws ParseException {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ public class XmlMapsGDataParserFactory implements GDataParserFactory {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
@Override
|
||||
public GDataParser createParser(Class cls, InputStream is)
|
||||
throws ParseException {
|
||||
|
||||
+1
-1
@@ -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}).
|
||||
|
||||
Reference in New Issue
Block a user