Ignore:
Timestamp:
2016-07-04T14:18:17+02:00 (10 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java

    r30737 r32556  
    1 // License: GPL. v2 and later. Copyright 2008-2009 by Pieren <pieren3@gmail.com> and others
     1// License: GPL. For details, see LICENSE file.
    22package cadastre_fr;
    33
     
    3030 * automatically a tag "source"="Cadastre..." as defined in the plugin preferences.
    3131 */
    32 public class CheckSourceUploadHook implements UploadHook
    33 {
     32public class CheckSourceUploadHook implements UploadHook {
    3433
    3534    /**
    3635     * Add the tag "source" if it doesn't exist for all new Nodes and Ways before uploading
    3736     */
    38     public boolean checkUpload(APIDataSet apiDataSet)
    39     {
     37    @Override
     38    public boolean checkUpload(APIDataSet apiDataSet) {
    4039        if (CadastrePlugin.autoSourcing && CadastrePlugin.pluginUsed && !apiDataSet.getPrimitivesToAdd().isEmpty()) {
    4140            Collection<OsmPrimitive> sel = new HashSet<>();
     
    5554    /**
    5655     * Check whenever one of the keys of the object is "source"
    57      * @param OsmPrimitive
    5856     * @return true if one of keys is "source"
    5957     */
    6058    private boolean tagSourceExist(OsmPrimitive osm) {
    6159        for (String key : osm.keySet()) {
    62             if (key.equals("source") ) {
     60            if (key.equals("source")) {
    6361                return true;
    6462            }
     
    7270     * @param sel the list of elements added without a key "source"
    7371     */
    74     private void displaySource(Collection<OsmPrimitive> sel)
    75     {
     72    private void displaySource(Collection<OsmPrimitive> sel) {
    7673        if (!sel.isEmpty()) {
    7774            JPanel p = new JPanel(new GridBagLayout());
Note: See TracChangeset for help on using the changeset viewer.