Ticket #17845: 17845_temporary_workaround.patch
| File 17845_temporary_workaround.patch, 1.1 KB (added by , 6 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
572 572 } 573 573 574 574 /** 575 * Returns t rue if role is in relation. Returns false if not a relation or it does not have the role.575 * Returns the number of primitives in a relation with the specified roles. 576 576 * @param env the environment 577 577 * @param roles The roles to count in the relation 578 578 * @return The number of relation members with the specified role 579 579 * @since 15196 580 580 */ 581 public static int count_roles(final Environment env, String ...roles) { // NO_UCD (unused code)581 public static int count_roles(final Environment env, String roles) { // NO_UCD (unused code) 582 582 int rValue = 0; 583 583 if (env.osm instanceof Relation) { 584 584 List<String> roleList = Arrays.asList(roles);
