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

code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.