Ignore:
Timestamp:
2010-11-25T09:45:38+01:00 (13 years ago)
Author:
bastiK
Message:

adapt coding style (to some degree); there shouldn't be any semantic changes in this commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ValidateAction.java

    r3669 r3671  
    3434 */
    3535public class ValidateAction extends JosmAction {
     36   
    3637    /** Serializable ID */
    3738    private static final long serialVersionUID = -2304521273582574603L;
     
    8485            }
    8586        } else {
    86             if (lastSelection == null)
     87            if (lastSelection == null) {
    8788                selection = Main.main.getCurrentDataSet().allNonDeletedPrimitives();
    88             else
     89            } else {
    8990                selection = lastSelection;
     91            }
    9092        }
    9193
     
    104106     *
    105107     */
    106 
    107108    class ValidationTask extends PleaseWaitRunnable {
    108109        private Collection<Test> tests;
     
    137138            //
    138139            Runnable r = new Runnable()  {
     140                @Override
    139141                public void run() {
    140142                    Main.map.validatorDialog.tree.setErrors(errors);
     
    153155        protected void realRun() throws SAXException, IOException,
    154156                OsmTransferException {
    155             if (tests == null || tests.isEmpty()) return;
     157            if (tests == null || tests.isEmpty())
     158                return;
    156159            errors = new ArrayList<TestError>(200);
    157160            getProgressMonitor().setTicksCount(tests.size() * validatedPrimitmives.size());
    158161            int testCounter = 0;
    159162            for (Test test : tests) {
    160                 if (canceled) return;
     163                if (canceled)
     164                    return;
    161165                testCounter++;
    162166                getProgressMonitor().setCustomText(tr("Test {0}/{1}: Starting {2}", testCounter, tests.size(),test.getName()));
Note: See TracChangeset for help on using the changeset viewer.