Changeset 30759 in osm


Ignore:
Timestamp:
2014-10-21T02:58:34+02:00 (10 years ago)
Author:
donvip
Message:

[jmapviewer] fix warnings

Location:
applications/viewer/jmapviewer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/.settings/org.eclipse.jdt.core.prefs

    r30425 r30759  
    1010org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
    1111org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
     12org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
     13org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
     14org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
     15org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
     16org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
     17org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
    1218org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
    1319org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
     
    1723org.eclipse.jdt.core.compiler.debug.localVariable=generate
    1824org.eclipse.jdt.core.compiler.debug.sourceFile=generate
     25org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
    1926org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
     27org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
     28org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
     29org.eclipse.jdt.core.compiler.problem.deadCode=warning
     30org.eclipse.jdt.core.compiler.problem.deprecation=warning
     31org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
     32org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
     33org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
     34org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
    2035org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
     36org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning
     37org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
     38org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
     39org.eclipse.jdt.core.compiler.problem.fieldHiding=warning
     40org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
     41org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
     42org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
     43org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
     44org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
     45org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
     46org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
     47org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
     48org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
     49org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
     50org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
     51org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
     52org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
     53org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
     54org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
     55org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
     56org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
     57org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
     58org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
     59org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
     60org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
     61org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
     62org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
     63org.eclipse.jdt.core.compiler.problem.nullReference=warning
     64org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
     65org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
     66org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
     67org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
     68org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
     69org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
     70org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
     71org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
     72org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
     73org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
     74org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning
     75org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
     76org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
     77org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
     78org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
     79org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
     80org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
     81org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
     82org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
     83org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
     84org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
     85org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
     86org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
     87org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
     88org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
     89org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
     90org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
     91org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
     92org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
     93org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
     94org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
     95org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
     96org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
     97org.eclipse.jdt.core.compiler.problem.unusedImport=warning
     98org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
     99org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
     100org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=warning
     101org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
     102org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
     103org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
     104org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
     105org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
     106org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
     107org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
     108org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
    21109org.eclipse.jdt.core.compiler.source=1.7
    22110org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java

    r30628 r30759  
    4343public class JMapViewer extends JPanel implements TileLoaderListener {
    4444
    45     private static final long serialVersionUID = 1L;
    46 
    4745    public static boolean debug = false;
    4846
     
    10098     * retrieving the tiles.
    10199     */
     100    @SuppressWarnings("unused")
    102101    public JMapViewer() {
    103102        this(new MemoryTileCache(), 8);
     
    10661065    }
    10671066
    1068     protected EventListenerList listenerList = new EventListenerList();
     1067    protected EventListenerList evtListenerList = new EventListenerList();
    10691068
    10701069    /**
     
    10721071     */
    10731072    public void addJMVListener(JMapViewerEventListener listener) {
    1074         listenerList.add(JMapViewerEventListener.class, listener);
     1073        evtListenerList.add(JMapViewerEventListener.class, listener);
    10751074    }
    10761075
     
    10791078     */
    10801079    public void removeJMVListener(JMapViewerEventListener listener) {
    1081         listenerList.remove(JMapViewerEventListener.class, listener);
     1080        evtListenerList.remove(JMapViewerEventListener.class, listener);
    10821081    }
    10831082
     
    10881087     */
    10891088    void fireJMVEvent(JMVCommandEvent evt) {
    1090         Object[] listeners = listenerList.getListenerList();
     1089        Object[] listeners = evtListenerList.getListenerList();
    10911090        for (int i=0; i<listeners.length; i+=2) {
    10921091            if (listeners[i]==JMapViewerEventListener.class) {
Note: See TracChangeset for help on using the changeset viewer.