Ignore:
Timestamp:
2015-03-08T23:39:57+01:00 (9 years ago)
Author:
Don-vip
Message:

fix Sonar issue squid:S2444 - Lazy initialization of "static" fields should be "synchronized"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetSearchPrimitiveDialog.java

    r7937 r8126  
    11package org.openstreetmap.josm.gui.tagging;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
     4
     5import java.awt.event.ActionEvent;
     6import java.awt.event.ActionListener;
     7import java.awt.event.KeyEvent;
     8import java.util.HashSet;
    29
    310import org.openstreetmap.josm.Main;
     
    714import org.openstreetmap.josm.tools.Shortcut;
    815import org.openstreetmap.josm.tools.Utils;
    9 
    10 import java.awt.event.ActionEvent;
    11 import java.awt.event.ActionListener;
    12 import java.awt.event.KeyEvent;
    13 import java.util.HashSet;
    14 
    15 import static org.openstreetmap.josm.tools.I18n.tr;
    1616
    1717/**
     
    2929     * @return the unique instance of {@code TaggingPresetSearchPrimitiveDialog}.
    3030     */
    31     public static TaggingPresetSearchPrimitiveDialog getInstance() {
     31    public static synchronized TaggingPresetSearchPrimitiveDialog getInstance() {
    3232        if (instance == null) {
    3333            instance = new TaggingPresetSearchPrimitiveDialog();
Note: See TracChangeset for help on using the changeset viewer.