Ignore:
Timestamp:
2018-09-15T14:44:00+02:00 (6 years ago)
Author:
donvip
Message:

fix UnnecessaryParentheses warnings

Location:
applications/editors/josm/plugins/pdfimport/src/org/openstreetmap/josm/plugins/pdfimport
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pdfimport/src/org/openstreetmap/josm/plugins/pdfimport/FilePlacement18.java

    r34609 r34660  
    324324                            maxEastField.getValue(), maxNorthField.getValue());
    325325                } catch (Exception e) {
    326                     Hint=(tr("Check numbers"));
     326                    Hint = tr("Check numbers");
    327327                    return;
    328328                }
    329329                String transformError = placement.prepareTransform();
    330330                if (transformError != null) {
    331                     Hint=(transformError);
     331                    Hint = transformError;
    332332                    return;
    333333                }
     
    335335            } finally {
    336336                hintField.setText(Hint);
    337                 if (dependsOnValid!=null) dependsOnValid.setEnabled(fc.valid && panel.isEnabled());
     337                if (dependsOnValid != null)
     338                    dependsOnValid.setEnabled(fc.valid && panel.isEnabled());
    338339            }
    339340
     
    342343
    343344        public void setDependsOnValid(JComponent c) {
    344             dependsOnValid=c;
     345            dependsOnValid = c;
    345346        }
    346347
  • applications/editors/josm/plugins/pdfimport/src/org/openstreetmap/josm/plugins/pdfimport/LayerInfo.java

    r34609 r34660  
    3131    @Override
    3232    public boolean equals(Object o) {
     33        if (!(o instanceof LayerInfo)) {
     34            return false;
     35        }
    3336        LayerInfo l = (LayerInfo) o;
    3437        boolean eq = this.width == l.width &&
    3538        this.divider == l.divider &&
    3639        this.dash == l.dash;
    37 
    3840
    3941        if (this.fill != null) {
  • applications/editors/josm/plugins/pdfimport/src/org/openstreetmap/josm/plugins/pdfimport/LoadPdfDialog.java

    r34609 r34660  
    145145
    146146            removeSmallObjectsSize = new GuiFieldDouble(Preferences.getRemoveSmallValue());
    147             removeSmallObjectsCheck = new GuiFieldBool(tr("Remove objects smaller than"),Preferences.isRemoveSmall());
     147            removeSmallObjectsCheck = new GuiFieldBool(tr("Remove objects smaller than"), Preferences.isRemoveSmall());
    148148            removeSmallObjectsCheck.setCompanion(removeSmallObjectsSize);
    149149
    150             removeLargeObjectsSize = new GuiFieldDouble((Preferences.getRemoveLargeValue()));
    151             removeLargeObjectsCheck = new GuiFieldBool(tr("Remove objects larger than"),Preferences.isRemoveLarge());
     150            removeLargeObjectsSize = new GuiFieldDouble(Preferences.getRemoveLargeValue());
     151            removeLargeObjectsCheck = new GuiFieldBool(tr("Remove objects larger than"), Preferences.isRemoveLarge());
    152152            removeLargeObjectsCheck.setCompanion(removeLargeObjectsSize);
    153153
     
    156156            colorFilterCheck.setCompanion(colorFilterColor);
    157157
    158             removeParallelSegmentsTolerance = new GuiFieldDouble((Preferences.getRemoveParallelValue()));
    159             removeParallelSegmentsCheck = new GuiFieldBool(tr("Remove parallel lines"),Preferences.isRemoveParallel());
     158            removeParallelSegmentsTolerance = new GuiFieldDouble(Preferences.getRemoveParallelValue());
     159            removeParallelSegmentsCheck = new GuiFieldBool(tr("Remove parallel lines"), Preferences.isRemoveParallel());
    160160            removeParallelSegmentsCheck.setCompanion(removeParallelSegmentsTolerance);
    161161
    162             limitPathCount = new GuiFieldInteger((Preferences.getLimitPathValue()));
    163             limitPathCountCheck = new GuiFieldBool(tr("Take only first X paths"),Preferences.isLimitPath());
     162            limitPathCount = new GuiFieldInteger(Preferences.getLimitPathValue());
     163            limitPathCountCheck = new GuiFieldBool(tr("Take only first X paths"), Preferences.isLimitPath());
    164164            limitPathCountCheck.setCompanion(limitPathCount);
    165165
    166             splitOnColorChangeCheck = new GuiFieldBool(tr("Color/width change"),Preferences.isLayerAttribChange());
     166            splitOnColorChangeCheck = new GuiFieldBool(tr("Color/width change"), Preferences.isLayerAttribChange());
    167167            splitOnShapeClosedCheck = new GuiFieldBool(tr("Shape closed"), Preferences.isLayerClosed());
    168168
Note: See TracChangeset for help on using the changeset viewer.