Ignore:
Timestamp:
2013-08-21T03:47:16+02:00 (12 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/junctionchecking
Files:
1 added
8 edited

Legend:

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

    r29853 r29854  
    11eclipse.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
    28org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
    39org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
     
    713org.eclipse.jdt.core.compiler.debug.localVariable=generate
    814org.eclipse.jdt.core.compiler.debug.sourceFile=generate
     15org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
    916org.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
    1025org.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
    1199org.eclipse.jdt.core.compiler.source=1.6
  • applications/editors/josm/plugins/junctionchecking/build.xml

    r29596 r29854  
    33    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    44    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    5     <property name="plugin.main.version" value="5960"/>
     5    <property name="plugin.main.version" value="6162"/>
    66   
    77    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/connectedness/DiGraphSealer.java

    r25501 r29854  
    11package org.openstreetmap.josm.plugins.JunctionChecker.connectedness;
    22
    3 import java.util.ArrayList;
    43import java.util.Vector;
     4
    55import org.openstreetmap.josm.plugins.JunctionChecker.datastructure.Channel;
    66import org.openstreetmap.josm.plugins.JunctionChecker.datastructure.ChannelDiGraph;
     
    4545                        }
    4646                }
    47                 int counter = 0;
    4847                Channel tempChannel;
    4948                LeadsTo tempLeadsTo;
     
    7372                                newID++;
    7473                                digraph.addChannel(tempChannel);
    75                                 counter++;
    7674                        }
    7775                }
     
    103101                                newID++;
    104102                                digraph.addChannel(tempChannel);
    105                                 counter++;
    106103                        }
    107104                }
     
    125122         */
    126123        private void deleteDuplicateChannels() {
    127                 ArrayList<Integer> pointer = new ArrayList<Integer>();
    128124
    129125                for (int i = 0; i < digraph.getChannels().size(); i++) {
     
    136132                                }
    137133                        }
    138 
    139134                }
    140135        }
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/converting/PseudoChannelRemover.java

    r25501 r29854  
    1313
    1414        private final ChannelDiGraph digraph;
    15         private final ArrayList<Channel> pseudochannels = new ArrayList<Channel>();
    16         private int c = 0;
     15        //private final ArrayList<Channel> pseudochannels = new ArrayList<Channel>();
    1716        private Channel succChannel;
    18         private String s;
    1917        private Channel tempToChannel;
    2018        private LeadsTo tempLeadsTo;
     
    2725                succChannel = tempchannel.getLeadsTo().get(0).getToChannel();
    2826                tempchannel.setToNode(succChannel.getToNode());
    29                 s = "";
    3027                //log.trace("---Folgender Channel ist überflüssig: " + succChannel.getNewid() + "---");
    3128                //log.trace("... und wird durch diesen ersetzt: " + tempchannel.getNewid());
     
    5754                digraph.removeChannel(succChannel);
    5855                //pseudochannels.add(tempchannel.getSuccChannels().get(0));
    59                 c++;
    6056        }
    6157
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/converting/TurnRestrictionChecker.java

    r25501 r29854  
    2020        private final ArrayList<OSMRelation> turnrestrictionsrelations = new ArrayList<OSMRelation>();
    2121        private final ChannelDiGraph channelDigraph;
    22         private final boolean isInturnrestriction;
    2322        private int relationpointer;
    2423        private LeadsTo tempLeadsTo;
     
    3534                }
    3635                this.channelDigraph = channelDigraph;
    37                 this.isInturnrestriction = false;
    3836        }
    3937
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/datastructure/OSMRelation.java

    r25501 r29854  
    6464                }
    6565               
    66                 public Class getType() {
     66                public Class<? extends OSMEntity> getType() {
    6767                        return member.getClass();
    6868                }
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/junctionchecking/BackPropagation.java

    r25501 r29854  
    1111public class BackPropagation {
    1212
    13         private Channel y;
    14         private Channel z;
    1513        private final ChannelDiGraph digraph;
    1614
     
    2523         */
    2624        public void backPropagation(Channel y, Channel z, Channel zstrich) {
    27                 this.y = y;
    28                 this.z = z;
    2925                for (int i = 0; i < z.getReachableNodes().size(); i++) {
    3026                        y.addReachableNode(z.getReachableNodeAt(i));
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/junctionchecking/JMinimality.java

    r25501 r29854  
    3030        private long EEovern = 0;
    3131        private final HashSet<Channel> subgraph = new HashSet<Channel>();//The candidate subgraph to be tested
    32         private double durchlauf = 1;
    3332        private ProgressMonitor pm;
    3433        private final boolean pmenabled;
    35         private final ArrayList<Integer> anzahlchannels = new ArrayList<Integer>();
    3634        private final ArrayList<HashSet<Channel>> junctions = new ArrayList<HashSet<Channel>>();
    3735        private final boolean searchFirstJunction;
     
    8583
    8684                Combination c = new Combination(Grid.length, n);
    87                 EEovern = (int) c.Choose(Grid.length*Grid.length, n*n);
     85                EEovern = (int) Combination.Choose(Grid.length*Grid.length, n*n);
    8886                long ans = c.Choose(); //This is the number of subcolumns to be generated
    8987                int[][] v; // this is a column variable containing n y-index entries plus true false values (0/1)
     
    135133                ArrayList<int[]> CandidateK = new ArrayList<int[]>(n*n); //saves the candidate K_{n-1} in entry-exit pairs
    136134                long lindex= 0;
    137                 int countk = 0;
    138135                int h = 0;
    139136                int m = 0;
     
    188185                                        }
    189186                                        if (missing <=1 && smallerjunction == true){//The k-subgrid is a different junction candidate satisfying total reachability
    190                                                 countk++;
    191187                                                CheckMinimal = CheckSmallJunction(CandidateK)==false;// If the candidate is a smaller junction, then minimality is false
    192                                                 durchlauf++;
    193188                                                //log.info("durchlauf: " + durchlauf + " Wert von CheckMinimal: " + CheckMinimal);
    194189                                                if (!CheckMinimal) {
Note: See TracChangeset for help on using the changeset viewer.