Changeset 14678 in josm for trunk/src/org


Ignore:
Timestamp:
2019-01-12T17:46:10+01:00 (6 years ago)
Author:
simon04
Message:

see #13160 - use atomic AtomicBoolean.compareAndSet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r14677 r14678  
    11141114        @Override
    11151115        public void actionPerformed(ActionEvent e) {
    1116             if (isPerforming.get())
     1116            if (!/*successful*/isPerforming.compareAndSet(false, true)) {
    11171117                return;
    1118             isPerforming.set(true);
     1118            }
    11191119            try {
    11201120                editHelper.addTag();
     
    11401140        @Override
    11411141        public void actionPerformed(ActionEvent e) {
    1142             if (isPerforming.get())
     1142            if (!/*successful*/isPerforming.compareAndSet(false, true)) {
    11431143                return;
    1144             isPerforming.set(true);
     1144            }
    11451145            try {
    11461146                if (tagTable.getSelectedRowCount() == 1) {
Note: See TracChangeset for help on using the changeset viewer.