Ticket #17845: 17845_temporary_workaround.patch

File 17845_temporary_workaround.patch, 1.1 KB (added by taylor.smock, 6 years ago)

Temporary workaround -- probably should have a warning that it should not be publically used until the next stable release due to a changing interface, and possibly increment the @since as well when reverted back to the original function definition

  • src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java

     
    572572        }
    573573
    574574        /**
    575          * Returns true 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.
    576576         * @param env the environment
    577577         * @param roles The roles to count in the relation
    578578         * @return The number of relation members with the specified role
    579579         * @since 15196
    580580         */
    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)
    582582            int rValue = 0;
    583583            if (env.osm instanceof Relation) {
    584584                List<String> roleList = Arrays.asList(roles);