Changeset 15122 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2019-05-27T16:15:33+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactory.java
r14801 r15122 15 15 import java.util.regex.PatternSyntaxException; 16 16 17 import org.openstreetmap.josm.data.osm.INode; 17 18 import org.openstreetmap.josm.data.osm.IPrimitive; 19 import org.openstreetmap.josm.data.osm.IRelation; 20 import org.openstreetmap.josm.data.osm.IWay; 18 21 import org.openstreetmap.josm.data.osm.Node; 19 22 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 21 24 import org.openstreetmap.josm.data.osm.Relation; 22 25 import org.openstreetmap.josm.data.osm.Tag; 23 import org.openstreetmap.josm.data.osm.Way;24 26 import org.openstreetmap.josm.data.osm.search.SearchCompiler.InDataSourceArea; 25 27 import org.openstreetmap.josm.data.osm.visitor.paint.relations.Multipolygon; … … 638 640 */ 639 641 static boolean closed(Environment e) { // NO_UCD (unused code) 640 if (e.osm instanceof Way && ((Way) e.osm).isClosed())642 if (e.osm instanceof IWay<?> && ((IWay<?>) e.osm).isClosed()) 641 643 return true; 642 return e.osm instanceof Relation && ((Relation) e.osm).isMultipolygon();644 return e.osm instanceof IRelation<?> && ((IRelation<?>) e.osm).isMultipolygon(); 643 645 } 644 646 … … 670 672 */ 671 673 static boolean connection(Environment e) { // NO_UCD (unused code) 672 return e.osm instanceof Node && e.osm.getDataSet() != null && ((Node) e.osm).isConnectionNode();674 return e.osm instanceof INode && e.osm.getDataSet() != null && ((INode) e.osm).isConnectionNode(); 673 675 } 674 676 … … 769 771 770 772 static boolean completely_downloaded(Environment e) { // NO_UCD (unused code) 771 if (e.osm instanceof Relation) {772 return !(( Relation) e.osm).hasIncompleteMembers();773 if (e.osm instanceof IRelation<?>) { 774 return !((IRelation<?>) e.osm).hasIncompleteMembers(); 773 775 } else { 774 776 return true; … … 777 779 778 780 static boolean closed2(Environment e) { // NO_UCD (unused code) 779 if (e.osm instanceof Way && ((Way) e.osm).isClosed())781 if (e.osm instanceof IWay<?> && ((IWay<?>) e.osm).isClosed()) 780 782 return true; 781 783 if (e.osm instanceof Relation && ((Relation) e.osm).isMultipolygon()) {
Note:
See TracChangeset
for help on using the changeset viewer.