Ignore:
Timestamp:
2020-01-28T22:27:30+01:00 (6 years ago)
Author:
donvip
Message:

code cleanup

Location:
applications/editors/josm/plugins/indoorhelper/src/model
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/indoorhelper/src/model/IndoorHelperModel.java

    r35228 r35312  
    1 /*
    2  * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps.
    3  *  Copyright (C) 2016  Erik Gruschka
    4  *  Copyright (C) 2018  Rebecca Schmidt
    5  *
    6  *  This program is free software: you can redistribute it and/or modify
    7  *  it under the terms of the GNU General Public License as published by
    8  *  the Free Software Foundation, either version 3 of the License, or
    9  *  (at your option) any later version.
    10  *
    11  *  This program is distributed in the hope that it will be useful,
    12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14  *  GNU General Public License for more details.
    15  *
    16  *  You should have received a copy of the GNU General Public License
    17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    18  */
    19 
     1// License: GPL. For details, see LICENSE file.
    202package model;
    213
     
    206188                 newMember = new RelationMember(role == null ? "" : role, osm);
    207189                 relation.addMember(newMember);
    208             };
     190            }
    209191
    210192        //Check if dataset is not empty or if {@link innerRelation} has no value
  • applications/editors/josm/plugins/indoorhelper/src/model/IndoorLevel.java

    r35240 r35312  
    1 /*
    2  * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps.
    3  *  Copyright (C) 2016  Erik Gruschka
    4  *
    5  *  This program is free software: you can redistribute it and/or modify
    6  *  it under the terms of the GNU General Public License as published by
    7  *  the Free Software Foundation, either version 3 of the License, or
    8  *  (at your option) any later version.
    9  *
    10  *  This program is distributed in the hope that it will be useful,
    11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13  *  GNU General Public License for more details.
    14  *
    15  *  You should have received a copy of the GNU General Public License
    16  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17  */
    18 
     1// License: GPL. For details, see LICENSE file.
    192package model;
    203
  • applications/editors/josm/plugins/indoorhelper/src/model/PresetCounter.java

    r34179 r35312  
    1 /*
    2  * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps.
    3  *  Copyright (C) 2016  Erik Gruschka
    4  *  Copyright (C) 2018  Rebecca Schmidt
    5  *
    6  *  This program is free software: you can redistribute it and/or modify
    7  *  it under the terms of the GNU General Public License as published by
    8  *  the Free Software Foundation, either version 3 of the License, or
    9  *  (at your option) any later version.
    10  *
    11  *  This program is distributed in the hope that it will be useful,
    12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14  *  GNU General Public License for more details.
    15  *
    16  *  You should have received a copy of the GNU General Public License
    17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    18  */
    19 
     1// License: GPL. For details, see LICENSE file.
    202package model;
    213
     
    3618
    3719    private List<IndoorObject> rankingList;
    38     private List<ObjectCounter> counterList;
     20    private final List<ObjectCounter> counterList = new ArrayList<>();
    3921
    4022    /**
     
    4325
    4426    public PresetCounter() {
    45         this.init();
    46     }
    47 
    48     private void init() {
    49         counterList = new ArrayList<>();
    50 
    5127        counterList.add(new ObjectCounter(IndoorObject.CONCRETE_WALL, 0));
    5228        counterList.add(new ObjectCounter(IndoorObject.DOOR_PRIVATE, 0));
     
    138114        }
    139115    }
    140    
    141    
    142116}
  • applications/editors/josm/plugins/indoorhelper/src/model/TagCatalog.java

    r35076 r35312  
    1 /*
    2  * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps.
    3  *  Copyright (C) 2016  Erik Gruschka
    4  *  Copyright (C) 2018  Rebecca Schmidt
    5  *
    6  *  This program is free software: you can redistribute it and/or modify
    7  *  it under the terms of the GNU General Public License as published by
    8  *  the Free Software Foundation, either version 3 of the License, or
    9  *  (at your option) any later version.
    10  *
    11  *  This program is distributed in the hope that it will be useful,
    12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14  *  GNU General Public License for more details.
    15  *
    16  *  You should have received a copy of the GNU General Public License
    17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    18  */
    19 
     1// License: GPL. For details, see LICENSE file.
    202package model;
    213
     
    10082            return tagList;
    10183        }
    102        
    10384    }
    10485
     
    11091     */
    11192    public enum IndoorObject {
    112                         CONCRETE_WALL, GLASS_WALL, ROOM, TOILET_MALE, TOILET_FEMALE, ELEVATOR, DOOR_PRIVATE, DOOR_PUBLIC, ENTRANCE,
    113                         ENTRANCE_EXIT_ONLY, ACCESS_PRIVATE, ACCESS_PUBLIC, STEPS, CORRIDOR, BENCH, AREA, NONE;
     93        CONCRETE_WALL, GLASS_WALL, ROOM, TOILET_MALE, TOILET_FEMALE, ELEVATOR, DOOR_PRIVATE, DOOR_PUBLIC, ENTRANCE,
     94        ENTRANCE_EXIT_ONLY, ACCESS_PRIVATE, ACCESS_PUBLIC, STEPS, CORRIDOR, BENCH, AREA, NONE;
    11495    }
    11596}
Note: See TracChangeset for help on using the changeset viewer.