Skip to content

Commit

Permalink
downgrade to java 7
Browse files Browse the repository at this point in the history
  • Loading branch information
“osana” committed Jun 7, 2018
1 parent 1feea3c commit d42ecb4
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 23 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ subprojects {
}
}

sourceCompatibility = "1.8"
targetCompatibility = "1.8"
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7

dependencies {

Expand Down
4 changes: 2 additions & 2 deletions samples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apply plugin: 'java'
apply plugin: 'de.fuerstenau.buildconfig'

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7

dependencies {
implementation project(":services-geocoding")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @since 1.0.0
*/
@AutoValue
public abstract class CarmenFeature implements GeoJson, Serializable {
public abstract class CarmenFeature extends GeoJson implements Serializable {

private static final String TYPE = "Feature";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @param <T> a generic allowing varying dimensions for each GeoJson geometry
* @since 3.0.0
*/
public interface CoordinateContainer<T> extends Geometry {
public abstract class CoordinateContainer<T> extends Geometry {

/**
* the coordinates which define the geometry. Typically a list of points but for some geometry
Expand All @@ -17,5 +17,5 @@ public interface CoordinateContainer<T> extends Geometry {
* @return the {@link Point}s which make up the coordinates defining the geometry
* @since 3.0.0
*/
T coordinates();
public abstract T coordinates();
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @since 1.0.0
*/
@AutoValue
public abstract class Feature implements GeoJson {
public abstract class Feature extends GeoJson {

private static final String TYPE = "Feature";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @since 1.0.0
*/
@AutoValue
public abstract class FeatureCollection implements GeoJson {
public abstract class FeatureCollection extends GeoJson {

private static final String TYPE = "FeatureCollection";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @since 1.0.0
*/
public interface GeoJson {
public abstract class GeoJson {

/**
* This describes the type of GeoJson geometry, Feature, or FeatureCollection this object is.
Expand All @@ -18,7 +18,7 @@ public interface GeoJson {
* {@code Feature}
* @since 1.0.0
*/
String type();
public abstract String type();

/**
* This takes the currently defined values found inside the GeoJson instance and converts it to a
Expand All @@ -27,7 +27,7 @@ public interface GeoJson {
* @return a JSON string which represents this Feature
* @since 1.0.0
*/
String toJson();
public abstract String toJson();

/**
* A GeoJson object MAY have a member named "bbox" to include information on the coordinate range
Expand All @@ -40,5 +40,5 @@ public interface GeoJson {
* the contained geometries
* @since 3.0.0
*/
BoundingBox bbox();
public abstract BoundingBox bbox();
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @since 1.0.0
*/
public interface Geometry extends GeoJson {
public abstract class Geometry extends GeoJson {

/**
* Create a new instance of this class by passing in a formatted valid JSON String.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
* @since 1.0.0
*/
@AutoValue
public abstract class GeometryCollection implements Geometry, Serializable {
public abstract class GeometryCollection extends Geometry implements Serializable {

private static final String TYPE = "GeometryCollection";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
* @since 1.0.0
*/
@AutoValue
public abstract class LineString implements CoordinateContainer<List<Point>>, Serializable {
public abstract class LineString extends CoordinateContainer<List<Point>>
implements Serializable {

private static final String TYPE = "LineString";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
* @since 1.0.0
*/
@AutoValue
public abstract class MultiLineString
implements CoordinateContainer<List<List<Point>>>, Serializable {
public abstract class MultiLineString extends CoordinateContainer<List<List<Point>>>
implements Serializable {

private static final String TYPE = "MultiLineString";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
* @since 1.0.0
*/
@AutoValue
public abstract class MultiPoint implements CoordinateContainer<List<Point>>, Serializable {
public abstract class MultiPoint extends CoordinateContainer<List<Point>>
implements Serializable {

private static final String TYPE = "MultiPoint";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
* @since 1.0.0
*/
@AutoValue
public abstract class MultiPolygon
implements CoordinateContainer<List<List<List<Point>>>>, Serializable {
public abstract class MultiPolygon extends CoordinateContainer<List<List<List<Point>>>>
implements Serializable {

private static final String TYPE = "MultiPolygon";

Expand Down
3 changes: 2 additions & 1 deletion services-geojson/src/main/java/com/mapbox/geojson/Point.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
* @since 1.0.0
*/
@AutoValue
public abstract class Point implements CoordinateContainer<List<Double>>, Serializable {
public abstract class Point extends CoordinateContainer<List<Double>>
implements Serializable {

private static final String TYPE = "Point";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
* @since 1.0.0
*/
@AutoValue
public abstract class Polygon implements CoordinateContainer<List<List<Point>>>, Serializable {
public abstract class Polygon extends CoordinateContainer<List<List<Point>>>
implements Serializable {

private static final String TYPE = "Polygon";

Expand Down

0 comments on commit d42ecb4

Please sign in to comment.