Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

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

    r8470 r8510  
    263263    public static boolean pasteTagsFromText(Collection<OsmPrimitive> selection, String text) {
    264264        Map<String, String> tags = TextTagParser.readTagsFromText(text);
    265         if (tags==null || tags.isEmpty()) {
     265        if (tags == null || tags.isEmpty()) {
    266266            TextTagParser.showBadBufferMessage(help);
    267267            return false;
     
    272272        for (Entry<String, String> entry: tags.entrySet()) {
    273273            String v = entry.getValue();
    274             commands.add(new ChangePropertyCommand(selection, entry.getKey(), "".equals(v)?null:v));
     274            commands.add(new ChangePropertyCommand(selection, entry.getKey(), "".equals(v) ? null : v));
    275275        }
    276276        commitCommands(selection, commands);
     
    284284    public static boolean pasteTagsFromJOSMBuffer(Collection<OsmPrimitive> selection) {
    285285        List<PrimitiveData> directlyAdded = Main.pasteBuffer.getDirectlyAdded();
    286         if (directlyAdded==null || directlyAdded.isEmpty()) return false;
     286        if (directlyAdded == null || directlyAdded.isEmpty()) return false;
    287287
    288288        PasteTagsAction.TagPaster tagPaster = new PasteTagsAction.TagPaster(directlyAdded, selection);
     
    323323    @Override
    324324    protected void updateEnabledState(Collection<? extends OsmPrimitive> selection) {
    325         setEnabled(selection!= null && !selection.isEmpty());
     325        setEnabled(selection != null && !selection.isEmpty());
    326326    }
    327327}
Note: See TracChangeset for help on using the changeset viewer.