From 95d0a31675c2d1cc84118fc325c3add8ead53794 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Thu, 12 Mar 2015 13:18:46 +0100 Subject: [PATCH] Suppress warnings about missing serialVersionUIDs for the whole project. --- enabler/src/de/schildbach/pte/AbstractEfaProvider.java | 1 + enabler/src/de/schildbach/pte/AbstractHafasProvider.java | 2 ++ enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java | 1 + enabler/src/de/schildbach/pte/dto/Departure.java | 1 + enabler/src/de/schildbach/pte/dto/Fare.java | 1 + enabler/src/de/schildbach/pte/dto/LineDestination.java | 1 + enabler/src/de/schildbach/pte/dto/Location.java | 1 + enabler/src/de/schildbach/pte/dto/NearbyLocationsResult.java | 1 + enabler/src/de/schildbach/pte/dto/Point.java | 1 + enabler/src/de/schildbach/pte/dto/Position.java | 1 + enabler/src/de/schildbach/pte/dto/QueryDeparturesResult.java | 1 + enabler/src/de/schildbach/pte/dto/QueryTripsResult.java | 1 + enabler/src/de/schildbach/pte/dto/ResultHeader.java | 1 + enabler/src/de/schildbach/pte/dto/StationDepartures.java | 1 + enabler/src/de/schildbach/pte/dto/Stop.java | 1 + enabler/src/de/schildbach/pte/dto/SuggestLocationsResult.java | 1 + enabler/src/de/schildbach/pte/dto/SuggestedLocation.java | 1 + .../src/de/schildbach/pte/exception/AbstractHttpException.java | 1 + enabler/src/de/schildbach/pte/exception/BlockedException.java | 1 + .../src/de/schildbach/pte/exception/InternalErrorException.java | 1 + .../src/de/schildbach/pte/exception/InvalidDataException.java | 1 + enabler/src/de/schildbach/pte/exception/NotFoundException.java | 1 + enabler/src/de/schildbach/pte/exception/ParserException.java | 1 + .../de/schildbach/pte/exception/SessionExpiredException.java | 1 + .../schildbach/pte/exception/UnexpectedRedirectException.java | 1 + enabler/test/de/schildbach/pte/util/Iso8601Format.java | 1 + 26 files changed, 27 insertions(+) diff --git a/enabler/src/de/schildbach/pte/AbstractEfaProvider.java b/enabler/src/de/schildbach/pte/AbstractEfaProvider.java index e56c53e7..90fdfc97 100644 --- a/enabler/src/de/schildbach/pte/AbstractEfaProvider.java +++ b/enabler/src/de/schildbach/pte/AbstractEfaProvider.java @@ -114,6 +114,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider private final XmlPullParserFactory parserFactory; + @SuppressWarnings("serial") private static class Context implements QueryTripsContext { private final String context; diff --git a/enabler/src/de/schildbach/pte/AbstractHafasProvider.java b/enabler/src/de/schildbach/pte/AbstractHafasProvider.java index 630ad3ec..fb2c7af8 100644 --- a/enabler/src/de/schildbach/pte/AbstractHafasProvider.java +++ b/enabler/src/de/schildbach/pte/AbstractHafasProvider.java @@ -103,6 +103,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider private boolean stationBoardHasLocation = false; private boolean stationBoardCanDoEquivs = true; + @SuppressWarnings("serial") private static class Context implements QueryTripsContext { public final String laterContext; @@ -127,6 +128,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider } } + @SuppressWarnings("serial") public static class QueryTripsBinaryContext implements QueryTripsContext { public final String ident; diff --git a/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java b/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java index 94cfd479..e44f3cc3 100644 --- a/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java +++ b/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java @@ -98,6 +98,7 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider BUS, TRAIN, TRAM, TRAMWAY, METRO, FERRY, CABLECAR, RAPIDTRANSIT, FUNICULAR, DEFAULT_COMMERCIAL_MODE } + @SuppressWarnings("serial") private static class Context implements QueryTripsContext { private final Location from; diff --git a/enabler/src/de/schildbach/pte/dto/Departure.java b/enabler/src/de/schildbach/pte/dto/Departure.java index 51cd7986..43896af4 100644 --- a/enabler/src/de/schildbach/pte/dto/Departure.java +++ b/enabler/src/de/schildbach/pte/dto/Departure.java @@ -34,6 +34,7 @@ import com.google.common.base.Objects; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class Departure implements Serializable { final public @Nullable Date plannedTime; diff --git a/enabler/src/de/schildbach/pte/dto/Fare.java b/enabler/src/de/schildbach/pte/dto/Fare.java index 28530f84..5ee309e0 100644 --- a/enabler/src/de/schildbach/pte/dto/Fare.java +++ b/enabler/src/de/schildbach/pte/dto/Fare.java @@ -30,6 +30,7 @@ import com.google.common.base.Objects; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class Fare implements Serializable { public enum Type diff --git a/enabler/src/de/schildbach/pte/dto/LineDestination.java b/enabler/src/de/schildbach/pte/dto/LineDestination.java index 60c44b06..32d82d14 100644 --- a/enabler/src/de/schildbach/pte/dto/LineDestination.java +++ b/enabler/src/de/schildbach/pte/dto/LineDestination.java @@ -29,6 +29,7 @@ import com.google.common.base.Objects; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class LineDestination implements Serializable { final public Line line; diff --git a/enabler/src/de/schildbach/pte/dto/Location.java b/enabler/src/de/schildbach/pte/dto/Location.java index c5b98016..318796f7 100644 --- a/enabler/src/de/schildbach/pte/dto/Location.java +++ b/enabler/src/de/schildbach/pte/dto/Location.java @@ -32,6 +32,7 @@ import com.google.common.base.Objects; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class Location implements Serializable { public final LocationType type; diff --git a/enabler/src/de/schildbach/pte/dto/NearbyLocationsResult.java b/enabler/src/de/schildbach/pte/dto/NearbyLocationsResult.java index 9b0c8bce..a79cd69d 100644 --- a/enabler/src/de/schildbach/pte/dto/NearbyLocationsResult.java +++ b/enabler/src/de/schildbach/pte/dto/NearbyLocationsResult.java @@ -30,6 +30,7 @@ import com.google.common.base.MoreObjects.ToStringHelper; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class NearbyLocationsResult implements Serializable { public enum Status diff --git a/enabler/src/de/schildbach/pte/dto/Point.java b/enabler/src/de/schildbach/pte/dto/Point.java index 843db067..c1adb2f7 100644 --- a/enabler/src/de/schildbach/pte/dto/Point.java +++ b/enabler/src/de/schildbach/pte/dto/Point.java @@ -24,6 +24,7 @@ import com.google.common.base.Objects; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class Point implements Serializable { public final int lat, lon; diff --git a/enabler/src/de/schildbach/pte/dto/Position.java b/enabler/src/de/schildbach/pte/dto/Position.java index c7c387cc..c8d196f0 100644 --- a/enabler/src/de/schildbach/pte/dto/Position.java +++ b/enabler/src/de/schildbach/pte/dto/Position.java @@ -29,6 +29,7 @@ import com.google.common.base.Objects; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class Position implements Serializable { public final String name; diff --git a/enabler/src/de/schildbach/pte/dto/QueryDeparturesResult.java b/enabler/src/de/schildbach/pte/dto/QueryDeparturesResult.java index 464001fb..89661830 100644 --- a/enabler/src/de/schildbach/pte/dto/QueryDeparturesResult.java +++ b/enabler/src/de/schildbach/pte/dto/QueryDeparturesResult.java @@ -31,6 +31,7 @@ import com.google.common.base.MoreObjects.ToStringHelper; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class QueryDeparturesResult implements Serializable { public enum Status diff --git a/enabler/src/de/schildbach/pte/dto/QueryTripsResult.java b/enabler/src/de/schildbach/pte/dto/QueryTripsResult.java index 2291cf1d..fdf810c5 100644 --- a/enabler/src/de/schildbach/pte/dto/QueryTripsResult.java +++ b/enabler/src/de/schildbach/pte/dto/QueryTripsResult.java @@ -30,6 +30,7 @@ import com.google.common.base.MoreObjects.ToStringHelper; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class QueryTripsResult implements Serializable { public enum Status diff --git a/enabler/src/de/schildbach/pte/dto/ResultHeader.java b/enabler/src/de/schildbach/pte/dto/ResultHeader.java index 53dffba5..a8d24451 100644 --- a/enabler/src/de/schildbach/pte/dto/ResultHeader.java +++ b/enabler/src/de/schildbach/pte/dto/ResultHeader.java @@ -30,6 +30,7 @@ import de.schildbach.pte.NetworkId; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class ResultHeader implements Serializable { public final NetworkId network; diff --git a/enabler/src/de/schildbach/pte/dto/StationDepartures.java b/enabler/src/de/schildbach/pte/dto/StationDepartures.java index 731b7794..78809de8 100644 --- a/enabler/src/de/schildbach/pte/dto/StationDepartures.java +++ b/enabler/src/de/schildbach/pte/dto/StationDepartures.java @@ -31,6 +31,7 @@ import com.google.common.base.Objects; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class StationDepartures implements Serializable { public final Location location; diff --git a/enabler/src/de/schildbach/pte/dto/Stop.java b/enabler/src/de/schildbach/pte/dto/Stop.java index 721e56d6..56f18242 100644 --- a/enabler/src/de/schildbach/pte/dto/Stop.java +++ b/enabler/src/de/schildbach/pte/dto/Stop.java @@ -32,6 +32,7 @@ import com.google.common.base.Objects; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class Stop implements Serializable { public final Location location; diff --git a/enabler/src/de/schildbach/pte/dto/SuggestLocationsResult.java b/enabler/src/de/schildbach/pte/dto/SuggestLocationsResult.java index 9c92a1dc..f309ed32 100644 --- a/enabler/src/de/schildbach/pte/dto/SuggestLocationsResult.java +++ b/enabler/src/de/schildbach/pte/dto/SuggestLocationsResult.java @@ -33,6 +33,7 @@ import com.google.common.base.MoreObjects.ToStringHelper; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class SuggestLocationsResult implements Serializable { public enum Status diff --git a/enabler/src/de/schildbach/pte/dto/SuggestedLocation.java b/enabler/src/de/schildbach/pte/dto/SuggestedLocation.java index c3f07f73..90dfed3d 100644 --- a/enabler/src/de/schildbach/pte/dto/SuggestedLocation.java +++ b/enabler/src/de/schildbach/pte/dto/SuggestedLocation.java @@ -26,6 +26,7 @@ import com.google.common.base.Objects; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public final class SuggestedLocation implements Serializable, Comparable { public final Location location; diff --git a/enabler/src/de/schildbach/pte/exception/AbstractHttpException.java b/enabler/src/de/schildbach/pte/exception/AbstractHttpException.java index 70410463..31100573 100644 --- a/enabler/src/de/schildbach/pte/exception/AbstractHttpException.java +++ b/enabler/src/de/schildbach/pte/exception/AbstractHttpException.java @@ -26,6 +26,7 @@ import de.schildbach.pte.util.ParserUtils; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public abstract class AbstractHttpException extends ParserException { private final URL url; diff --git a/enabler/src/de/schildbach/pte/exception/BlockedException.java b/enabler/src/de/schildbach/pte/exception/BlockedException.java index ca3ec54c..22cbb8d9 100644 --- a/enabler/src/de/schildbach/pte/exception/BlockedException.java +++ b/enabler/src/de/schildbach/pte/exception/BlockedException.java @@ -23,6 +23,7 @@ import java.net.URL; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public class BlockedException extends AbstractHttpException { public BlockedException(final URL url, final Reader errorReader) diff --git a/enabler/src/de/schildbach/pte/exception/InternalErrorException.java b/enabler/src/de/schildbach/pte/exception/InternalErrorException.java index b09afc17..9345113e 100644 --- a/enabler/src/de/schildbach/pte/exception/InternalErrorException.java +++ b/enabler/src/de/schildbach/pte/exception/InternalErrorException.java @@ -23,6 +23,7 @@ import java.net.URL; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public class InternalErrorException extends AbstractHttpException { public InternalErrorException(final URL url, final Reader errorReader) diff --git a/enabler/src/de/schildbach/pte/exception/InvalidDataException.java b/enabler/src/de/schildbach/pte/exception/InvalidDataException.java index 1999ebe6..446a7bde 100644 --- a/enabler/src/de/schildbach/pte/exception/InvalidDataException.java +++ b/enabler/src/de/schildbach/pte/exception/InvalidDataException.java @@ -20,6 +20,7 @@ package de.schildbach.pte.exception; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public class InvalidDataException extends ParserException { public InvalidDataException() diff --git a/enabler/src/de/schildbach/pte/exception/NotFoundException.java b/enabler/src/de/schildbach/pte/exception/NotFoundException.java index c731e27c..51f2c40b 100644 --- a/enabler/src/de/schildbach/pte/exception/NotFoundException.java +++ b/enabler/src/de/schildbach/pte/exception/NotFoundException.java @@ -23,6 +23,7 @@ import java.net.URL; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public class NotFoundException extends AbstractHttpException { public NotFoundException(final URL url, final Reader errorReader) diff --git a/enabler/src/de/schildbach/pte/exception/ParserException.java b/enabler/src/de/schildbach/pte/exception/ParserException.java index d2706c58..cdad3247 100644 --- a/enabler/src/de/schildbach/pte/exception/ParserException.java +++ b/enabler/src/de/schildbach/pte/exception/ParserException.java @@ -22,6 +22,7 @@ import java.io.IOException; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public class ParserException extends IOException { public ParserException() diff --git a/enabler/src/de/schildbach/pte/exception/SessionExpiredException.java b/enabler/src/de/schildbach/pte/exception/SessionExpiredException.java index 9715905c..a7400e69 100644 --- a/enabler/src/de/schildbach/pte/exception/SessionExpiredException.java +++ b/enabler/src/de/schildbach/pte/exception/SessionExpiredException.java @@ -22,6 +22,7 @@ import java.io.IOException; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public class SessionExpiredException extends IOException { } diff --git a/enabler/src/de/schildbach/pte/exception/UnexpectedRedirectException.java b/enabler/src/de/schildbach/pte/exception/UnexpectedRedirectException.java index 634590c1..1b628a28 100644 --- a/enabler/src/de/schildbach/pte/exception/UnexpectedRedirectException.java +++ b/enabler/src/de/schildbach/pte/exception/UnexpectedRedirectException.java @@ -22,6 +22,7 @@ import java.net.URL; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public class UnexpectedRedirectException extends AbstractHttpException { private final URL redirectedUrl; diff --git a/enabler/test/de/schildbach/pte/util/Iso8601Format.java b/enabler/test/de/schildbach/pte/util/Iso8601Format.java index 1c8f0bf4..602c5c08 100644 --- a/enabler/test/de/schildbach/pte/util/Iso8601Format.java +++ b/enabler/test/de/schildbach/pte/util/Iso8601Format.java @@ -26,6 +26,7 @@ import java.util.Locale; /** * @author Andreas Schildbach */ +@SuppressWarnings("serial") public class Iso8601Format extends SimpleDateFormat { private Iso8601Format(final String formatString)