-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downgrade to java 7 #833
downgrade to java 7 #833
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the previous method was package private, can we retain that with this setup? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was part of an interface so when implemented it would have to be public |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | ||
* @since 1.0.0 | ||
*/ | ||
public interface GeoJson { | ||
public abstract class GeoJson { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. geojson itself is public and changing it from an interface to an abstract class would be a breaking change as users using it will need to change There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tobrun Good point. I will create another PR then with the method just removed. |
||
|
||
/** | ||
* This describes the type of GeoJson geometry, Feature, or FeatureCollection this object is. | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -40,5 +40,5 @@ public interface GeoJson { | |
* the contained geometries | ||
* @since 3.0.0 | ||
*/ | ||
BoundingBox bbox(); | ||
public abstract BoundingBox bbox(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these changes seem unrelated but no biggy to keep them around
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason it was giving me compilation error under java 7.
Casting was not possible for some reason.