Ignore:
Timestamp:
2013-08-21T03:47:16+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] fix #8987 - bump min JOSM version of nearly all plugins to r6162 + code update/cleanup, fix 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

    r29646 r29854  
    1 #Sun Mar 18 16:52:20 CET 2012
    21eclipse.preferences.version=1
     2org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
     3org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
     4org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
     5org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
     6org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
     7org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
    38org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
    49org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
     
    813org.eclipse.jdt.core.compiler.debug.localVariable=generate
    914org.eclipse.jdt.core.compiler.debug.sourceFile=generate
     15org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
    1016org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
     17org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
     18org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
     19org.eclipse.jdt.core.compiler.problem.deadCode=warning
     20org.eclipse.jdt.core.compiler.problem.deprecation=warning
     21org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
     22org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
     23org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
     24org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
    1125org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
     26org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
     27org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
     28org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
     29org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
     30org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
     31org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
     32org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
     33org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
     34org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
     35org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
     36org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
     37org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
     38org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
     39org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
     40org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
     41org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
     42org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
     43org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
     44org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
     45org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
     46org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
     47org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
     48org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
     49org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
     50org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
     51org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
     52org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
     53org.eclipse.jdt.core.compiler.problem.nullReference=warning
     54org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
     55org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
     56org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
     57org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
     58org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
     59org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
     60org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
     61org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
     62org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
     63org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
     64org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
     65org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
     66org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
     67org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
     68org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
     69org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
     70org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
     71org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
     72org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
     73org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
     74org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
     75org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
     76org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
     77org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
     78org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
     79org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
     80org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
     81org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
     82org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
     83org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
     84org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
     85org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
     86org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
     87org.eclipse.jdt.core.compiler.problem.unusedImport=warning
     88org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
     89org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
     90org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
     91org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
     92org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
     93org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
     94org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
     95org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
     96org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
     97org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
     98org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
    1299org.eclipse.jdt.core.compiler.source=1.6
  • applications/editors/josm/plugins/pdfimport/build.xml

    r29805 r29854  
    44    <property name="commit.message" value="Initial pdfimport version"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="6097"/>
     6    <property name="plugin.main.version" value="6162"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/FilePlacement.java

    r28448 r29854  
    200200        public LatLon tranformCoords(Point2D pt) {
    201201
    202                 if (this.projection == null){
     202                if (this.projection == null) {
    203203                        return new LatLon(pt.getY() / 1000, pt.getX() / 1000);
    204                 }
    205                 else{
    206                         this.transform.transform(pt, en);
     204                } else {
     205                    Point2D dest = new Point2D.Double();
     206                        this.transform.transform(pt, dest);
     207                        en = new EastNorth(dest.getX(), dest.getY());
    207208                        return this.projection.eastNorth2latlon(en);
    208209                }
     
    210211
    211212        public EastNorth reverseTransform(LatLon coor) {
    212                 if (this.projection == null){
    213 
     213                if (this.projection == null) {
    214214                        return new EastNorth(coor.lon() * 1000, coor.lat() * 1000);
    215                 }
    216                 else{
     215                } else {
    217216                        return null;
    218217                }
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfMultiPath.java

    r25349 r29854  
    11package pdfimport;
    22
    3 import java.util.ArrayList;
    43import java.util.List;
    54
Note: See TracChangeset for help on using the changeset viewer.