Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (10 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

Location:
trunk/src/org/openstreetmap/josm/data/conflict
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/conflict/Conflict.java

    r6313 r8510  
    103103        if (my != other.my)
    104104            return false;
    105         if(their != other.their)
     105        if (their != other.their)
    106106            return false;
    107107        return true;
  • trunk/src/org/openstreetmap/josm/data/conflict/ConflictCollection.java

    r8465 r8510  
    2626 *    ConflictCollection conflictCollection = ....
    2727 *
    28  *    for(Conflict c : conflictCollection) {
     28 *    for (Conflict c : conflictCollection) {
    2929 *      // do something
    3030 *    }
     
    132132    public void add(Collection<Conflict<?>> otherConflicts) {
    133133        if (otherConflicts == null) return;
    134         for(Conflict<?> c : otherConflicts) {
     134        for (Conflict<?> c : otherConflicts) {
    135135            addConflict(c);
    136136        }
     
    167167    public void remove(OsmPrimitive my) {
    168168        Iterator<Conflict<?>> it = iterator();
    169         while(it.hasNext()) {
     169        while (it.hasNext()) {
    170170            if (it.next().isMatchingMy(my)) {
    171171                it.remove();
     
    184184     */
    185185    public Conflict<?> getConflictForMy(OsmPrimitive my) {
    186         for(Conflict<?> c : conflicts) {
     186        for (Conflict<?> c : conflicts) {
    187187            if (c.isMatchingMy(my))
    188188                return c;
     
    199199     */
    200200    public Conflict<?> getConflictForTheir(OsmPrimitive their) {
    201         for(Conflict<?> c : conflicts) {
     201        for (Conflict<?> c : conflicts) {
    202202            if (c.isMatchingTheir(their))
    203203                return c;
     
    243243    public void removeForMy(OsmPrimitive my) {
    244244        Iterator<Conflict<?>> it = iterator();
    245         while(it.hasNext()) {
     245        while (it.hasNext()) {
    246246            if (it.next().isMatchingMy(my)) {
    247247                it.remove();
     
    257257    public void removeForTheir(OsmPrimitive their) {
    258258        Iterator<Conflict<?>> it = iterator();
    259         while(it.hasNext()) {
     259        while (it.hasNext()) {
    260260            if (it.next().isMatchingTheir(their)) {
    261261                it.remove();
  • trunk/src/org/openstreetmap/josm/data/conflict/IConflictListener.java

    r3083 r8510  
    44public interface IConflictListener {
    55    public void onConflictsAdded(ConflictCollection conflicts);
     6
    67    public void onConflictsRemoved(ConflictCollection conflicts);
    78}
Note: See TracChangeset for help on using the changeset viewer.