Changeset 15586 in josm
- Timestamp:
- 2019-12-13T00:48:33+01:00 (5 years ago)
- Location:
- trunk
- Files:
-
- 59 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AbstractInfoAction.java
r14153 r15586 71 71 + "This may both clutter your screen with browser windows<br>" 72 72 + "and take some time to finish.", numBrowsers, numBrowsers); 73 ButtonSpec[] spec = new ButtonSpec[]{73 ButtonSpec[] spec = { 74 74 new ButtonSpec( 75 75 tr("Continue"), -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r15168 r15586 220 220 waysToDelete.add(w); 221 221 } else { 222 ButtonSpec[] options = new ButtonSpec[]{222 ButtonSpec[] options = { 223 223 new ButtonSpec( 224 224 tr("Abort Merging"), -
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r15471 r15586 81 81 82 82 protected boolean confirmSimplifyManyWays(int numWays) { 83 ButtonSpec[] options = new ButtonSpec[]{83 ButtonSpec[] options = { 84 84 new ButtonSpec( 85 85 tr("Yes"), -
trunk/src/org/openstreetmap/josm/actions/corrector/TagCorrector.java
r14256 r15586 59 59 public abstract Collection<Command> execute(P oldprimitive, P primitive) throws UserCancelException; 60 60 61 private static final String[] APPLICATION_OPTIONS = new String[]{61 private static final String[] APPLICATION_OPTIONS = { 62 62 tr("Apply selected changes"), 63 63 tr("Do not apply changes"), -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskList.java
r15358 r15586 169 169 */ 170 170 protected void handlePotentiallyDeletedPrimitives(Set<OsmPrimitive> potentiallyDeleted) { 171 ButtonSpec[] options = new ButtonSpec[]{171 ButtonSpec[] options = { 172 172 new ButtonSpec( 173 173 tr("Check on the server"), -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r14397 r15586 995 995 } 996 996 997 998 997 /** 999 998 * Gets a node index from selected way after given index. -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r15356 r15586 168 168 } 169 169 170 171 170 /** 172 171 * Builds and shows the search dialog. -
trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
r14848 r15586 280 280 return !redoCommands.isEmpty(); 281 281 } 282 283 282 284 283 /** -
trunk/src/org/openstreetmap/josm/data/imagery/GetCapabilitiesParseHelper.java
r15410 r15586 145 145 } 146 146 147 148 147 /** 149 148 * Moves reader to first occurrence of the structure equivalent of Xpath tags[0]/tags[1]../tags[n]. If fails to find -
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r15415 r15586 446 446 return output.toString(); 447 447 } 448 449 448 450 449 /** … … 1077 1076 } 1078 1077 1079 1080 1078 /** 1081 1079 * @return set of projection codes that this TileSource supports -
trunk/src/org/openstreetmap/josm/data/osm/DataSelectionListener.java
r12970 r15586 113 113 } 114 114 } 115 116 115 117 116 /** -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r15535 r15586 312 312 } 313 313 314 315 314 /* ------- 316 315 /* FLAGS -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
r13207 r15586 230 230 } 231 231 232 233 232 /** 234 233 * <p>Unregisters a map renderer class.</p> -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r15292 r15586 791 791 } 792 792 793 794 793 /** 795 794 * Draw the icon for a given area. Normally, the icon is drawn around the center of the area. -
trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
r15562 r15586 290 290 291 291 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search 292 private static final String[] INFRASTRUCTURE_TLDS = new String[]{292 private static final String[] INFRASTRUCTURE_TLDS = { 293 293 "arpa", // internet infrastructure 294 294 }; 295 295 296 296 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search 297 private static final String[] GENERIC_TLDS = new String[]{297 private static final String[] GENERIC_TLDS = { 298 298 // Taken from Version 2019120700, Last Updated Sat Dec 7 07:07:01 2019 UTC 299 299 "aaa", // aaa American Automobile Association, Inc. … … 1524 1524 1525 1525 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search 1526 private static final String[] COUNTRY_CODE_TLDS = new String[]{1526 private static final String[] COUNTRY_CODE_TLDS = { 1527 1527 "ac", // Ascension Island 1528 1528 "ad", // Andorra … … 1822 1822 1823 1823 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search 1824 private static final String[] LOCAL_TLDS = new String[]{1824 private static final String[] LOCAL_TLDS = { 1825 1825 "localdomain", // Also widely used as localhost.localdomain 1826 1826 "localhost", // RFC2606 defined -
trunk/src/org/openstreetmap/josm/data/validation/routines/RegexValidator.java
r11747 r15586 180 180 } 181 181 182 183 182 /** 184 183 * Validate a value against the set of regular expressions -
trunk/src/org/openstreetmap/josm/data/validation/tests/InternetTags.java
r14803 r15586 36 36 * List of keys subject to URL validation. 37 37 */ 38 private static final String[] URL_KEYS = new String[]{38 private static final String[] URL_KEYS = { 39 39 "url", "source:url", 40 40 "website", "contact:website", "heritage:website", "source:website" … … 44 44 * List of keys subject to email validation. 45 45 */ 46 private static final String[] EMAIL_KEYS = new String[]{46 private static final String[] EMAIL_KEYS = { 47 47 "email", "contact:email" 48 48 }; -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r15463 r15586 95 95 final Set<OsmPrimitive> tested = new HashSet<>(); 96 96 97 98 97 /** 99 98 * A grouped MapCSSRule with multiple selectors for a single declaration. -
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r15510 r15586 519 519 } 520 520 521 522 521 /** 523 522 * Determine multipolygon ways which are intersecting (crossing without a common node) or sharing one or more way segments. … … 633 632 } 634 633 635 636 634 /** 637 635 * Find ways which are crossing without sharing a node. -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r12846 r15586 42 42 private final JosmTextArea taLog = new JosmTextArea(5, 50); 43 43 private final JScrollPane spLog = new JScrollPane(taLog); 44 45 44 46 45 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMerger.java
r13130 r15586 39 39 */ 40 40 public class TagMerger extends AbstractMergePanel implements IConflictResolver { 41 private static final String[] KEY_VALUE = new String[]{tr("Key"), tr("Value")};41 private static final String[] KEY_VALUE = {tr("Key"), tr("Value")}; 42 42 43 43 private final TagMergeModel model = new TagMergeModel(); -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueResolutionDecision.java
r14214 r15586 31 31 private String value; 32 32 33 private static final String[] SUMMABLE_KEYS = new String[]{33 private static final String[] SUMMABLE_KEYS = { 34 34 "capacity(:.+)?", "step_count" 35 35 }; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java
r14214 r15586 368 368 369 369 static final class StatisticsTableModel extends DefaultTableModel { 370 private static final String[] HEADERS = new String[]{tr("Paste ..."), tr("From ..."), tr("To ...") };370 private static final String[] HEADERS = {tr("Paste ..."), tr("From ..."), tr("To ...") }; 371 371 private final transient List<StatisticsInfo> data = new ArrayList<>(); 372 372 -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r15444 r15586 616 616 sb.append("<html>").append(msg1).append("</html>"); 617 617 if (numNewConflicts > 0) { 618 final ButtonSpec[] options = new ButtonSpec[]{618 final ButtonSpec[] options = { 619 619 new ButtonSpec( 620 620 tr("OK"), -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r14931 r15586 325 325 // ask if the whole set should be ignored 326 326 if (asked == JOptionPane.DEFAULT_OPTION) { 327 String[] a = new String[]{tr("Whole group"), tr("Single elements"), tr("Nothing")};327 String[] a = {tr("Whole group"), tr("Single elements"), tr("Nothing")}; 328 328 asked = JOptionPane.showOptionDialog(MainApplication.getMainFrame(), tr("Ignore whole group or individual elements?"), 329 329 tr("Ignoring elements"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, null, -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorListManagementDialog.java
r15077 r15586 38 38 import org.openstreetmap.josm.tools.ImageProvider; 39 39 import org.openstreetmap.josm.tools.Logging; 40 41 40 42 41 /** … … 214 213 tree.updateUI(); 215 214 } 216 217 215 218 216 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java
r15496 r15586 559 559 560 560 // TODO: Nicer color palette 561 private static final Color[] COLORS = new Color[]{561 private static final Color[] COLORS = { 562 562 Color.RED, 563 563 Color.ORANGE, -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r15581 r15586 202 202 private final EditAction editAction = new EditAction(); 203 203 private final DeleteAction deleteAction = new DeleteAction(); 204 private final JosmAction[] josmActions = new JosmAction[]{addAction, editAction, deleteAction};204 private final JosmAction[] josmActions = {addAction, editAction, deleteAction}; 205 205 206 206 private final transient HighlightHelper highlightHelper = new HighlightHelper(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/CancelAction.java
r14153 r15586 61 61 62 62 protected int confirmClosingByCancel() { 63 ButtonSpec[] options = new ButtonSpec[]{63 ButtonSpec[] options = { 64 64 new ButtonSpec( 65 65 tr("Yes, save the changes and close"), -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/RefreshAction.java
r14690 r15586 77 77 78 78 protected int confirmDiscardDirtyData() { 79 ButtonSpec[] options = new ButtonSpec[]{79 ButtonSpec[] options = { 80 80 new ButtonSpec( 81 81 tr("Yes, discard changes and reload"), … … 106 106 107 107 protected int confirmCloseDeletedRelation() { 108 ButtonSpec[] options = new ButtonSpec[]{108 ButtonSpec[] options = { 109 109 new ButtonSpec( 110 110 tr("Yes"), -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SavingAction.java
r14153 r15586 107 107 108 108 protected boolean confirmClosingBecauseOfDirtyState() { 109 ButtonSpec[] options = new ButtonSpec[]{109 ButtonSpec[] options = { 110 110 new ButtonSpec( 111 111 tr("Yes, create a conflict and close"), -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SetRoleAction.java
r14153 r15586 55 55 "<br>" 56 56 + tr("Do you really want to apply the new role?") + "</html>"; 57 String[] options = new String[]{57 String[] options = { 58 58 tr("Yes, apply it"), 59 59 tr("No, do not apply") -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculator.java
r15382 r15586 342 342 } 343 343 344 345 344 /** 346 345 * Free resources. -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r15011 r15586 74 74 private JTable tblSearchResults; 75 75 private DownloadDialog parent; 76 private static final Server[] SERVERS = new Server[]{76 private static final Server[] SERVERS = { 77 77 new Server("Nominatim", NameFinder.NOMINATIM_URL, tr("Class Type"), tr("Bounds")) 78 78 }; -
trunk/src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java
r14153 r15586 128 128 default: throw new AssertionError(); 129 129 } 130 ButtonSpec[] spec = new ButtonSpec[]{130 ButtonSpec[] spec = { 131 131 new ButtonSpec( 132 132 lbl, … … 176 176 */ 177 177 protected void handleUploadConflictForUnknownConflict() { 178 ButtonSpec[] spec = new ButtonSpec[]{178 ButtonSpec[] spec = { 179 179 new ButtonSpec( 180 180 tr("Synchronize entire dataset"), … … 235 235 */ 236 236 protected void handleUploadPreconditionFailedConflict(OsmApiException e, Pair<OsmPrimitive, Collection<OsmPrimitive>> conflict) { 237 ButtonSpec[] options = new ButtonSpec[]{237 ButtonSpec[] options = { 238 238 new ButtonSpec( 239 239 tr("Prepare conflict resolution"), -
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r14214 r15586 84 84 85 85 protected MaxChangesetSizeExceededPolicy askMaxChangesetSizeExceedsPolicy() { 86 ButtonSpec[] specs = new ButtonSpec[]{86 ButtonSpec[] specs = { 87 87 new ButtonSpec( 88 88 tr("Continue uploading"), -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractCachedTileSourceLayer.java
r13643 r15586 39 39 private ICacheAccess<String, BufferedImageCacheEntry> cache; 40 40 private volatile TileLoaderFactory loaderFactory; 41 42 41 43 42 /** … … 89 88 } 90 89 91 92 90 /** 93 91 * Plugins that wish to set custom tile loader should call this method -
trunk/src/org/openstreetmap/josm/gui/layer/CustomizeColor.java
r15496 r15586 72 72 Color cl = colorLayers.stream().filter(Objects::nonNull).map(Layer::getColor).filter(Objects::nonNull).findAny().orElse(Color.GRAY); 73 73 JColorChooser c = new JColorChooser(cl); 74 Object[] options = new Object[]{tr("OK"), tr("Cancel"), tr("Default")};74 Object[] options = {tr("OK"), tr("Cancel"), tr("Default")}; 75 75 int answer = JOptionPane.showOptionDialog( 76 76 MainApplication.getMainFrame(), -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityAction.java
r15503 r15586 138 138 .findAny().orElse(GpxDrawHelper.DEFAULT_COLOR_PROPERTY.get()); 139 139 JColorChooser c = new JColorChooser(cl); 140 Object[] options = new Object[]{tr("OK"), tr("Cancel"), tr("Default")};140 Object[] options = {tr("OK"), tr("Cancel"), tr("Default")}; 141 141 int answer = JOptionPane.showOptionDialog( 142 142 MainApplication.getMainFrame(), -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongPanel.java
r15363 r15586 164 164 */ 165 165 public int showInDownloadDialog(String title, String helpTopic) { 166 final ButtonSpec[] options = new ButtonSpec[]{166 final ButtonSpec[] options = { 167 167 new ButtonSpec( 168 168 tr("Download"), -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r15496 r15586 180 180 private static Color[] heatMapLutColorJosmRed2Blue = createColorFromResource("red2blue"); 181 181 182 private static Color[] rtkLibQualityColors = new Color[]{182 private static Color[] rtkLibQualityColors = { 183 183 Color.GREEN, // Fixed, solution by carrier‐based relative positioning and the integer ambiguity is properly resolved. 184 184 Color.ORANGE, // Float, solution by carrier‐based relative positioning but the integer ambiguity is not resolved. -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/SharpenImageProcessor.java
r12782 r15586 27 27 private ConvolveOp op; 28 28 29 private static final float[] KERNEL_IDENTITY = new float[]{29 private static final float[] KERNEL_IDENTITY = { 30 30 0, 0, 0, 31 31 0, 1, 0, … … 33 33 }; 34 34 35 private static final float[] KERNEL_BLUR = new float[]{35 private static final float[] KERNEL_BLUR = { 36 36 1f / 16, 2f / 16, 1f / 16, 37 37 2f / 16, 4f / 16, 2f / 16, … … 39 39 }; 40 40 41 private static final float[] KERNEL_SHARPEN = new float[]{41 private static final float[] KERNEL_SHARPEN = { 42 42 -.5f, -1f, -.5f, 43 43 -1f, 7, -1f, -
trunk/src/org/openstreetmap/josm/gui/layer/validation/PaintVisitor.java
r14837 r15586 153 153 if (selected) { 154 154 g.setColor(getHighlightColor(color)); 155 int[] x = new int[]{(int) (p1.x + cosT), (int) (p2.x + cosT),156 157 int[] y = new int[]{(int) (p1.y - sinT), (int) (p2.y - sinT),158 155 int[] x = {(int) (p1.x + cosT), (int) (p2.x + cosT), 156 (int) (p2.x - cosT), (int) (p1.x - cosT)}; 157 int[] y = {(int) (p1.y - sinT), (int) (p2.y - sinT), 158 (int) (p2.y + sinT), (int) (p1.y + sinT)}; 159 159 g.fillPolygon(x, y, 4); 160 160 g.fillArc(p1.x - 5, p1.y - 5, 10, 10, deg, 180); -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/CompletelyInsideAreaStrategy.java
r12490 r15586 72 72 // | 8 3 7 | 73 73 // +-----------+ 74 Rectangle[] candidates = new Rectangle[]{74 Rectangle[] candidates = { 75 75 new Rectangle(x2, y1, nbw, nbh), 76 76 new Rectangle(x3, y2, nbw, nbh), -
trunk/src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java
r13842 r15586 161 161 162 162 protected boolean confirmOverwriteCustomSettings() { 163 ButtonSpec[] buttons = new ButtonSpec[]{163 ButtonSpec[] buttons = { 164 164 new ButtonSpec( 165 165 tr("Continue"), -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r14690 r15586 736 736 private class ActionTransferable implements Transferable { 737 737 738 private final DataFlavor[] flavors = new DataFlavor[]{ACTION_FLAVOR};738 private final DataFlavor[] flavors = {ACTION_FLAVOR}; 739 739 740 740 private final List<ActionDefinition> actions; -
trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java
r15497 r15586 49 49 50 50 private static final int WAYPOINT_LABEL_CUSTOM = 6; 51 private static final String[] LABEL_PATTERN_TEMPLATE = new String[]{Marker.LABEL_PATTERN_AUTO, Marker.LABEL_PATTERN_NAME,51 private static final String[] LABEL_PATTERN_TEMPLATE = {Marker.LABEL_PATTERN_AUTO, Marker.LABEL_PATTERN_NAME, 52 52 Marker.LABEL_PATTERN_DESC, "{special:everything}", "?{ '{name}' | '{desc}' | '{formattedWaypointOffset}' }", " "}; 53 private static final String[] LABEL_PATTERN_DESC = new String[]{tr("Auto"), /* gpx data field name */ trc("gpx_field", "Name"),53 private static final String[] LABEL_PATTERN_DESC = {tr("Auto"), /* gpx data field name */ trc("gpx_field", "Name"), 54 54 /* gpx data field name */ trc("gpx_field", "Desc(ription)"), tr("Everything"), tr("Name or offset"), tr("None"), tr("Custom")}; 55 56 55 57 56 private final JRadioButton drawRawGpsLinesGlobal = new JRadioButton(tr("Use global settings")); -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CommonSettingsPanel.java
r14632 r15586 25 25 private final JosmComboBox<String> sharpen; 26 26 private final JSlider tilesZoom = new JSlider(-2, 2, 0); 27 28 27 29 28 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/HeadersTable.java
r13828 r15586 72 72 73 73 } else if (row == headers.size()) { 74 String[] entry = new String[]{"", ""};74 String[] entry = {"", ""}; 75 75 entry[col] = (String) value; 76 76 headers.add(entry); -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/TMSSettingsPanel.java
r15456 r15586 33 33 private final JSpinner maxConcurrentDownloads; 34 34 private final JSpinner maxDownloadsPerHost; 35 36 35 37 36 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java
r15508 r15586 268 268 269 269 private void configureSites() { 270 ButtonSpec[] options = new ButtonSpec[]{270 ButtonSpec[] options = { 271 271 new ButtonSpec( 272 272 tr("OK"), -
trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
r15116 r15586 123 123 124 124 private static class ScListModel extends AbstractTableModel { 125 private final String[] columnNames = new String[]{tr("Action"), tr("Shortcut")};125 private final String[] columnNames = {tr("Action"), tr("Shortcut")}; 126 126 private final transient List<Shortcut> data; 127 127 -
trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
r15054 r15586 74 74 75 75 /* Localization keys for file chooser (and color chooser). */ 76 private static final String[] JAVA_INTERNAL_MESSAGE_KEYS = new String[]{76 private static final String[] JAVA_INTERNAL_MESSAGE_KEYS = { 77 77 /* JFileChooser windows laf */ 78 78 "FileChooser.detailsViewActionLabelText", -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java
r14153 r15586 188 188 label.setText(message.replaceFirst("<div>", "<div style=\"width:" + maxWidth + "px;\">")); 189 189 } 190 Object[] choices = new Object[]{tr("Yes, always"), tr("Yes, once"), tr("No")};190 Object[] choices = {tr("Yes, always"), tr("Yes, once"), tr("No")}; 191 191 int choice = JOptionPane.showOptionDialog(MainApplication.getMainFrame(), label, tr("Confirm Remote Control action"), 192 192 JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choices, choices[1]); -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r15508 r15586 487 487 } 488 488 489 ButtonSpec[] options = new ButtonSpec[]{489 ButtonSpec[] options = { 490 490 new ButtonSpec( 491 491 tr("Update plugins"), … … 564 564 .append(Utils.joinAsHtmlUnorderedList(missingRequiredPlugin)) 565 565 .append("</html>"); 566 ButtonSpec[] specs = new ButtonSpec[]{566 ButtonSpec[] specs = { 567 567 new ButtonSpec( 568 568 tr("Download and restart"), … … 1207 1207 */ 1208 1208 public static boolean confirmDisablePlugin(Component parent, String reason, String name) { 1209 ButtonSpec[] options = new ButtonSpec[]{1209 ButtonSpec[] options = { 1210 1210 new ButtonSpec( 1211 1211 tr("Disable plugin"), … … 1420 1420 1421 1421 private static int askUpdateDisableKeepPluginAfterException(PluginProxy plugin) { 1422 final ButtonSpec[] options = new ButtonSpec[]{1422 final ButtonSpec[] options = { 1423 1423 new ButtonSpec( 1424 1424 tr("Update plugin"), -
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r15221 r15586 439 439 Collection<String> locations = getPluginLocations(); 440 440 441 String[] nameCandidates = new String[]{441 String[] nameCandidates = { 442 442 pluginName, 443 443 pluginName + "-" + PlatformManager.getPlatform().getPlatform().name().toLowerCase(Locale.ENGLISH)}; -
trunk/src/org/openstreetmap/josm/tools/ColorScale.java
r15292 r15586 63 63 // CHECKSTYLE.OFF: SingleSpaceSeparator 64 64 // red yellow green blue red 65 int[] h = new int[]{0, 59, 127, 244, 360};66 int[] s = new int[]{100, 84, 99, 100};67 int[] b = new int[]{90, 93, 74, 83};65 int[] h = {0, 59, 127, 244, 360}; 66 int[] s = {100, 84, 99, 100}; 67 int[] b = {90, 93, 74, 83}; 68 68 // CHECKSTYLE.ON: SingleSpaceSeparator 69 69 -
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r15344 r15586 1146 1146 } 1147 1147 1148 1149 1148 /** 1150 1149 * Data class to hold two double values (area and perimeter of a polygon). -
trunk/test/unit/org/openstreetmap/josm/data/cache/HostLimitQueueTest.java
r14261 r15586 32 32 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 33 33 public JOSMTestRules test = new JOSMTestRules().preferences().timeout(20 * 1000); 34 35 34 36 35 /**
Note:
See TracChangeset
for help on using the changeset viewer.