Changeset 10775 in josm


Ignore:
Timestamp:
2016-08-10T22:07:16+02:00 (8 years ago)
Author:
simon04
Message:

Typo (referred)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java

    r10662 r10775  
    364364        if (selectedNodes.size() == 1) {
    365365            Node n = selectedNodes.get(0);
    366             List<Way> referedWays =
     366            List<Way> referredWays =
    367367                OsmPrimitive.getFilteredList(n.getReferrers(), Way.class);
    368368            Way inTheMiddle = null;
    369             for (Way w: referedWays) {
     369            for (Way w: referredWays) {
    370370                // Need to look at all nodes see #11184 for a case where node n is
    371371                // firstNode, lastNode and also in the middle
  • trunk/src/org/openstreetmap/josm/gui/datatransfer/data/PrimitiveTransferData.java

    r10606 r10775  
    3636    private static final class GetReferences implements ReferenceGetter {
    3737        @Override
    38         public Collection<? extends OsmPrimitive> getReferedPrimitives(OsmPrimitive primitive) {
     38        public Collection<? extends OsmPrimitive> getReferredPrimitives(OsmPrimitive primitive) {
    3939            if (primitive instanceof Way) {
    4040                return ((Way) primitive).getNodes();
     
    4949    @FunctionalInterface
    5050    private interface ReferenceGetter {
    51         Collection<? extends OsmPrimitive> getReferedPrimitives(OsmPrimitive primitive);
     51        Collection<? extends OsmPrimitive> getReferredPrimitives(OsmPrimitive primitive);
    5252    }
    5353
     
    7070        for (OsmPrimitive p : visited) {
    7171            direct.add(p.save());
    72             toCheck.addAll(referencedGetter.getReferedPrimitives(p));
     72            toCheck.addAll(referencedGetter.getReferredPrimitives(p));
    7373        }
    7474        while (!toCheck.isEmpty()) {
     
    7676            if (visited.add(p)) {
    7777                referenced.add(p.save());
    78                 toCheck.addAll(referencedGetter.getReferedPrimitives(p));
     78                toCheck.addAll(referencedGetter.getReferredPrimitives(p));
    7979            }
    8080        }
  • trunk/test/unit/org/openstreetmap/josm/command/DeleteCommandTest.java

    r10758 r10775  
    6767
    6868    /**
    69      * A delete should not delete refered objects but should should remove the reference.
     69     * A delete should not delete referred objects but should should remove the reference.
    7070     */
    7171    @Test
     
    101101     */
    102102    @Test
    103     public void testReferedDelete() {
     103    public void testReferredDelete() {
    104104        DeleteCommand.deleteWithReferences(testData.layer, Arrays.asList(testData.existingNode), true).executeCommand();
    105105
Note: See TracChangeset for help on using the changeset viewer.