Changeset 13158 in josm for trunk/src/org/openstreetmap/josm/corrector
- Timestamp:
- 2017-11-25T02:31:32+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/corrector
- Files:
-
- 2 edited
-
ReverseWayTagCorrector.java (modified) (2 diffs)
-
TagCorrector.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
r12537 r13158 190 190 } 191 191 192 /** 193 * Returns the subset of irreversible ways. 194 * @param ways all ways 195 * @return the subset of irreversible ways 196 * @see #isReversible(Way) 197 */ 192 198 public static List<Way> irreversibleWays(List<Way> ways) { 193 199 List<Way> newWays = new ArrayList<>(ways); … … 200 206 } 201 207 208 /** 209 * Inverts sign of a numeric value. 210 * @param value numeric value 211 * @return opposite numeric value 212 */ 202 213 public static String invertNumber(String value) { 203 214 Pattern pattern = Pattern.compile("^([+-]?)(\\d.*)$", Pattern.CASE_INSENSITIVE); -
trunk/src/org/openstreetmap/josm/corrector/TagCorrector.java
r12663 r13158 43 43 * 44 44 * Subclasses call applyCorrections() with maps of the requested 45 * corrections and a dialog is pesented to the user to 45 * corrections and a dialog is presented to the user to 46 46 * confirm these changes. 47 47 * @param <P> The type of OSM primitive to correct … … 49 49 public abstract class TagCorrector<P extends OsmPrimitive> { 50 50 51 /** 52 * Executes the tag correction. 53 * @param oldprimitive old primitive 54 * @param primitive new primitive 55 * @return A list of commands 56 * @throws UserCancelException If the user canceled 57 * @see #applyCorrections(DataSet, Map, Map, String) 58 */ 51 59 public abstract Collection<Command> execute(P oldprimitive, P primitive) throws UserCancelException; 52 60
Note:
See TracChangeset
for help on using the changeset viewer.
