Changeset 31909 in osm
- Timestamp:
- 2016-01-02T14:22:20+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/.settings/org.eclipse.jdt.core.prefs
r31465 r31909 1 1 eclipse.preferences.version=1 2 org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled 3 org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore 4 org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull 5 org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault 6 org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable 7 org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled 2 8 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 9 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 10 org.eclipse.jdt.core.compiler.compliance=1.7 11 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 5 12 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 13 org.eclipse.jdt.core.compiler.problem.autoboxing=ignore 14 org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning 15 org.eclipse.jdt.core.compiler.problem.deadCode=warning 16 org.eclipse.jdt.core.compiler.problem.deprecation=warning 17 org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled 18 org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled 19 org.eclipse.jdt.core.compiler.problem.discouragedReference=warning 20 org.eclipse.jdt.core.compiler.problem.emptyStatement=warning 6 21 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 22 org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore 23 org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore 24 org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled 25 org.eclipse.jdt.core.compiler.problem.fieldHiding=warning 26 org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning 27 org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning 28 org.eclipse.jdt.core.compiler.problem.forbiddenReference=error 29 org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning 30 org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled 31 org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning 32 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning 33 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore 34 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore 35 org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning 36 org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore 37 org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning 38 org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled 39 org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning 40 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning 41 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled 42 org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore 43 org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore 44 org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning 45 org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning 46 org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore 47 org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning 48 org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error 49 org.eclipse.jdt.core.compiler.problem.nullReference=warning 50 org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error 51 org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning 52 org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning 53 org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore 54 org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore 55 org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore 56 org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore 57 org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning 58 org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning 59 org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore 60 org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning 61 org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning 62 org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore 63 org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=warning 64 org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled 65 org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning 66 org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled 67 org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled 68 org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled 69 org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore 70 org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning 71 org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled 72 org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning 73 org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning 74 org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore 75 org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning 76 org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore 77 org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore 78 org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore 79 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore 80 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled 81 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled 82 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled 83 org.eclipse.jdt.core.compiler.problem.unusedImport=warning 84 org.eclipse.jdt.core.compiler.problem.unusedLabel=warning 85 org.eclipse.jdt.core.compiler.problem.unusedLocal=warning 86 org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=warning 87 org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore 88 org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled 89 org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled 90 org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled 91 org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning 92 org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore 93 org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning 94 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning 7 95 org.eclipse.jdt.core.compiler.source=1.7 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryAbstractImage.java
r31882 r31909 5 5 import java.util.Calendar; 6 6 import java.util.Date; 7 import java.util.Locale;8 7 9 8 import org.openstreetmap.josm.Main; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryData.java
r31883 r31909 2 2 package org.openstreetmap.josm.plugins.mapillary; 3 3 4 import java.util.*; 4 import java.util.Collections; 5 import java.util.List; 6 import java.util.Set; 5 7 import java.util.concurrent.ConcurrentHashMap; 6 import java.util.concurrent.ConcurrentSkipListSet;7 8 import java.util.concurrent.CopyOnWriteArrayList; 8 9 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryExportAction.java
r31882 r31909 10 10 import java.io.IOException; 11 11 import java.util.ArrayList; 12 import java.util.List;13 12 import java.util.Set; 14 13 import java.util.concurrent.ConcurrentSkipListSet; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportAction.java
r31882 r31909 6 6 import java.awt.event.ActionEvent; 7 7 import java.awt.event.KeyEvent; 8 import java.beans.beancontext.BeanContextChildComponentProxy;9 8 import java.io.File; 10 9 import java.io.IOException; 11 import java.util.ArrayList;12 import java.util.List;13 10 import java.util.Set; 14 11 import java.util.concurrent.ConcurrentSkipListSet; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportIntoSequenceAction.java
r31882 r31909 8 8 import java.io.File; 9 9 import java.io.IOException; 10 import java.util.*; 10 import java.util.ArrayList; 11 import java.util.Collections; 12 import java.util.Comparator; 13 import java.util.List; 11 14 import java.util.concurrent.ConcurrentSkipListSet; 12 15 … … 97 100 } 98 101 joinImages(); 99 MapillaryRecord.getInstance().addCommand(new CommandImport(new ConcurrentSkipListSet(images))); 102 MapillaryRecord.getInstance().addCommand(new CommandImport(new ConcurrentSkipListSet<>(images))); 100 103 } 101 104 MapillaryUtils.showAllPictures(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterChooseSigns.java
r31805 r31909 66 66 } 67 67 68 private void addCheckBoxWithLabel(final JPanel parentPanel, final JCheckBox checkBox, 68 private static void addCheckBoxWithLabel(final JPanel parentPanel, final JCheckBox checkBox, 69 69 final boolean isSelected, final String iconPath, final String labelText) { 70 70 final JPanel checkBoxPanel = new JPanel(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryMainDialog.java
r31882 r31909 39 39 import org.openstreetmap.josm.plugins.mapillary.actions.WalkListener; 40 40 import org.openstreetmap.josm.plugins.mapillary.actions.WalkThread; 41 import org.openstreetmap.josm.plugins.mapillary.cache.CacheUtils;42 41 import org.openstreetmap.josm.plugins.mapillary.cache.MapillaryCache; 43 42 import org.openstreetmap.josm.tools.ImageProvider; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandDelete.java
r31882 r31909 5 5 6 6 import java.util.HashMap; 7 import java.util.List;8 7 import java.util.Map; 9 8 import java.util.Set; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandImport.java
r31882 r31909 4 4 import static org.openstreetmap.josm.tools.I18n.trn; 5 5 6 import java.util.List;7 6 import java.util.Set; 8 7 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandJoin.java
r31882 r31909 31 31 */ 32 32 public CommandJoin(List<MapillaryAbstractImage> images) { 33 super(new ConcurrentSkipListSet(images)); 33 super(new ConcurrentSkipListSet<>(images)); 34 34 a = images.get(0); 35 35 b = images.get(1); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandMove.java
r31882 r31909 4 4 import static org.openstreetmap.josm.tools.I18n.trn; 5 5 6 import java.util.List;7 6 import java.util.Set; 8 7 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandTurn.java
r31882 r31909 4 4 import static org.openstreetmap.josm.tools.I18n.trn; 5 5 6 import java.util.List;7 6 import java.util.Set; 8 7 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandUnjoin.java
r31882 r31909 5 5 6 6 import java.util.List; 7 import java.util.Set;8 7 import java.util.concurrent.ConcurrentSkipListSet; 9 8 … … 32 31 */ 33 32 public CommandUnjoin(List<MapillaryAbstractImage> images) { 34 super(new ConcurrentSkipListSet(images)); 33 super(new ConcurrentSkipListSet<>(images)); 35 34 a = images.get(0); 36 35 b = images.get(1); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/MapillaryCommand.java
r31882 r31909 2 2 package org.openstreetmap.josm.plugins.mapillary.history.commands; 3 3 4 import java.util.ArrayList;5 import java.util.List;6 4 import java.util.Set; 7 5 import java.util.concurrent.ConcurrentSkipListSet; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/MapillaryExecutableCommand.java
r31882 r31909 2 2 package org.openstreetmap.josm.plugins.mapillary.history.commands; 3 3 4 import java.util.List;5 4 import java.util.Set; 6 5 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillaryDownloader.java
r31840 r31909 29 29 30 30 /** Possible download modes. */ 31 public enum MODES {Automatic, Semiautomatic, Manual} ;31 public enum MODES {Automatic, Semiautomatic, Manual} 32 32 33 33 /** All the Threads that have been run. Used to interrupt them properly. */ -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillarySequenceDownloadThread.java
r31882 r31909 114 114 } 115 115 116 MapillaryLayer.getInstance().getData().add(new ConcurrentSkipListSet(finalImages), false); 116 MapillaryLayer.getInstance().getData().add(new ConcurrentSkipListSet<MapillaryAbstractImage>(finalImages), false); 117 117 } 118 118 } catch (IOException e) { … … 122 122 } 123 123 124 private boolean isInside(MapillaryAbstractImage image) { 124 private static boolean isInside(MapillaryAbstractImage image) { 125 125 for (Bounds b : MapillaryLayer.getInstance().getData().bounds) { 126 126 if (b.contains(image.getLatLon())) { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/mode/SelectMode.java
r31882 r31909 8 8 import java.awt.event.InputEvent; 9 9 import java.awt.event.MouseEvent; 10 import java.util.ArrayList;11 10 import java.util.concurrent.ConcurrentSkipListSet; 12 11 … … 86 85 .indexOf(this.lastClicked); 87 86 if (i < j) 88 this.data.addMultiSelectedImage(new ConcurrentSkipListSet(this.closest.getSequence() 87 this.data.addMultiSelectedImage(new ConcurrentSkipListSet<>(this.closest.getSequence() 89 88 .getImages().subList(i, j + 1))); 90 89 else 91 this.data.addMultiSelectedImage(new ConcurrentSkipListSet(this.closest.getSequence() 90 this.data.addMultiSelectedImage(new ConcurrentSkipListSet<>(this.closest.getSequence() 92 91 .getImages().subList(j, i + 1))); 93 92 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/UploadUtils.java
r31882 r31909 9 9 import java.io.OutputStream; 10 10 import java.util.HashMap; 11 import java.util.List;12 11 import java.util.Set; 13 12 import java.util.UUID; … … 180 179 exifDirectory.removeField(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL); 181 180 exifDirectory.add(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL, 182 ((MapillaryImportedImage) image).getDate("yyyy/MM/dd HH:mm:ss"));181 image.getDate("yyyy/MM/dd HH:mm:ss")); 183 182 184 183 // Removes the ImageDescription tag, that causes problems in the upload. … … 275 274 */ 276 275 public static void uploadSequence(MapillarySequence sequence, boolean delete) { 277 Main.worker.submit(new SequenceUploadThread(new ConcurrentSkipListSet(sequence.getImages()), delete)); 276 Main.worker.submit(new SequenceUploadThread(new ConcurrentSkipListSet<>(sequence.getImages()), delete)); 278 277 } 279 278 } -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillaryDataTest.java
r31882 r31909 45 45 46 46 this.data = new MapillaryData(); 47 this.data.add(new ConcurrentSkipListSet(this.seq.getImages())); 47 this.data.add(new ConcurrentSkipListSet<>(this.seq.getImages())); 48 48 } 49 49 … … 60 60 this.data.add(this.img1); 61 61 assertEquals(1, this.data.getImages().size()); 62 this.data.add(new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[] { this.img2, 62 this.data.add(new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[] { this.img2, 63 63 this.img3 }))); 64 64 assertEquals(3, this.data.getImages().size()); 65 this.data.add(new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[] { this.img3, 65 this.data.add(new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[] { this.img3, 66 66 this.img4 }))); 67 67 assertEquals(4, this.data.getImages().size()); -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryPreferenceSettingTest.java
r31823 r31909 56 56 } 57 57 58 private Object getPrivateField(MapillaryPreferenceSetting object, String name) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException { 58 private static Object getPrivateField(MapillaryPreferenceSetting object, String name) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException { 59 59 Field field = object.getClass().getDeclaredField(name); 60 60 field.setAccessible(true); -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/history/MapillaryRecordTest.java
r31882 r31909 16 16 import org.openstreetmap.josm.plugins.mapillary.MapillaryImage; 17 17 import org.openstreetmap.josm.plugins.mapillary.MapillaryLayer; 18 import org.openstreetmap.josm.plugins.mapillary.history.MapillaryRecord;19 18 import org.openstreetmap.josm.plugins.mapillary.history.commands.CommandDelete; 20 19 import org.openstreetmap.josm.plugins.mapillary.history.commands.CommandImport; … … 56 55 public void commandTest() { 57 56 MapillaryCommand cmd12 = new CommandMove( 58 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 57 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 59 58 0.1, 0.1); 60 59 MapillaryCommand cmd23 = new CommandMove( 61 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3})), 60 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3})), 62 61 0.1, 0.1); 63 62 MapillaryCommand cmd13 = new CommandMove( 64 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img3})), 63 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img3})), 65 64 0.1, 0.1); 66 65 MapillaryCommand cmd1 = new CommandMove( 67 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1})), 0.1, 0.1); 66 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1})), 0.1, 0.1); 68 67 MapillaryCommand cmd31 = new CommandMove( 69 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img3, this.img1})), 68 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img3, this.img1})), 70 69 0.2, 0.2); 71 70 this.record.addCommand(cmd12); … … 112 111 public void commandMoveTest() { 113 112 CommandMove cmd1 = new CommandMove( 114 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 113 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 115 114 0.1, 0.1); 116 115 CommandMove cmd2 = new CommandMove( 117 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 116 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 118 117 0.1, 0.1); 119 118 … … 146 145 public void commandTurnTest() { 147 146 CommandTurn cmd1 = new CommandTurn( 148 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 147 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 149 148 0.2); 150 149 CommandTurn cmd2 = new CommandTurn( 151 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 150 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})), 152 151 0.1); 153 152 … … 253 252 254 253 CommandDelete cmd1 = new CommandDelete( 255 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1}))); 254 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1}))); 256 255 CommandDelete cmd2 = new CommandDelete( 257 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3}))); 256 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3}))); 258 257 259 258 this.record.addCommand(join1); … … 264 263 .getData() 265 264 .add( 266 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2, 265 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2, 267 266 this.img3}))); 268 267 … … 286 285 287 286 CommandImport cmd1 = new CommandImport( 288 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img1}))); 287 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1}))); 289 288 CommandImport cmd2 = new CommandImport( 290 new ConcurrentSkipListSet(Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3}))); 289 new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3}))); 291 290 292 291 this.record.addCommand(cmd1); -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/traffico/TrafficoSignElementTest.java
r31793 r31909 1 1 package org.openstreetmap.josm.plugins.mapillary.traffico; 2 2 3 import static org.junit.Assert.*; 3 import static org.junit.Assert.assertEquals; 4 import static org.junit.Assert.assertNotNull; 4 5 5 6 import java.awt.Color; … … 21 22 @Test(expected=IllegalArgumentException.class) 22 23 public void testNullColor() { 23 new TrafficoSignElement('\ufeed', null); 24 assertNotNull(new TrafficoSignElement('\ufeed', null)); 24 25 } 25 26 -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java
r31833 r31909 183 183 } 184 184 185 private void assertUrlEquals(URL actualUrl, String expectedBaseUrl, String... expectedParams) { 185 private static void assertUrlEquals(URL actualUrl, String expectedBaseUrl, String... expectedParams) { 186 186 assertEquals(expectedBaseUrl, actualUrl.toString().substring(0, actualUrl.toString().indexOf('?'))); 187 187 String[] actualParams = actualUrl.getQuery().split("&");
Note:
See TracChangeset
for help on using the changeset viewer.