Changeset 34660 in osm for applications/editors/josm


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

fix UnnecessaryParentheses warnings

Location:
applications/editors/josm/plugins/pdfimport
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pdfimport/.settings/org.eclipse.jdt.core.prefs

    r32699 r34660  
    77org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
    88org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
     9org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
    910org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
    1011org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
     
    1314org.eclipse.jdt.core.compiler.debug.localVariable=generate
    1415org.eclipse.jdt.core.compiler.debug.sourceFile=generate
     16org.eclipse.jdt.core.compiler.doc.comment.support=enabled
    1517org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
    1618org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
     
    3638org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
    3739org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
     40org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
     41org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
     42org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
     43org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
     44org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private
    3845org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
    3946org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
     
    4249org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
    4350org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
     51org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
     52org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
     53org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
     54org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tags
     55org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning
     56org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
     57org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
     58org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private
    4459org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
    4560org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
     
    97112org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
    98113org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
     114org.eclipse.jdt.core.compiler.release=disabled
    99115org.eclipse.jdt.core.compiler.source=1.8
  • 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.