- Timestamp:
- 2013-10-04T01:20:31+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java
r6241 r6295 128 128 @Override 129 129 public Command fixError(TestError testError) { 130 if ( isFixable(testError)) {130 if (testError instanceof PowerLineError && isFixable(testError)) { 131 131 return new ChangePropertyCommand( 132 132 testError.getPrimitives().iterator().next(), -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/CodeProjectionChoice.java
r6246 r6295 213 213 214 214 @Override 215 public Collection<String> getPreferences(JPanel pnl) { 216 CodeSelectionPanel csPanel = (CodeSelectionPanel) pnl; 215 public Collection<String> getPreferences(JPanel panel) { 216 if (!(panel instanceof CodeSelectionPanel)) { 217 throw new IllegalArgumentException(); 218 } 219 CodeSelectionPanel csPanel = (CodeSelectionPanel) panel; 217 220 return Collections.singleton(csPanel.getCode()); 218 221 } -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
r6070 r6295 42 42 private String pref; 43 43 44 /** 45 * Constructs a new {@code CustomProjectionChoice}. 46 */ 44 47 public CustomProjectionChoice() { 45 48 super(tr("Custom Projection"), "core:custom"); … … 156 159 public static class ParameterInfoDialog extends ExtendedDialog { 157 160 161 /** 162 * Constructs a new {@code ParameterInfoDialog}. 163 */ 158 164 public ParameterInfoDialog() { 159 165 super(null, tr("Parameter information"), new String[] { tr("Close") }, false); … … 225 231 @Override 226 232 public Collection<String> getPreferences(JPanel panel) { 233 if (!(panel instanceof PreferencePanel)) { 234 throw new IllegalArgumentException(); 235 } 227 236 PreferencePanel prefPanel = (PreferencePanel) panel; 228 237 String pref = prefPanel.input.getText(); -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/GaussKruegerProjectionChoice.java
r6070 r6295 11 11 private static String[] zones = { "2", "3", "4", "5" }; 12 12 13 /** 14 * Constructs a new {@code GaussKruegerProjectionChoice}. 15 */ 13 16 public GaussKruegerProjectionChoice() { 14 17 super(tr("Gau\u00DF-Kr\u00FCger"), "core:gauss-krueger", zones, tr("GK Zone")); -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/LambertCC9ZonesProjectionChoice.java
r6070 r6295 28 28 }; 29 29 30 /** 31 * Constructs a new {@code LambertCC9ZonesProjectionChoice}. 32 */ 30 33 public LambertCC9ZonesProjectionChoice() { 31 34 super(tr("Lambert CC9 Zone (France)"), "core:lambertcc9", lambert9zones, tr("Lambert CC Zone")); -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/ListProjectionChoice.java
r6222 r6295 105 105 @Override 106 106 public Collection<String> getPreferences(JPanel panel) { 107 if (!(panel instanceof CBPanel)) { 108 throw new IllegalArgumentException(); 109 } 107 110 CBPanel p = (CBPanel) panel; 108 111 int index = p.prefcb.getSelectedIndex(); -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/SwissGridProjectionChoice.java
r5548 r6295 15 15 public class SwissGridProjectionChoice extends SingleProjectionChoice { 16 16 17 /** 18 * Constructs a new {@code SwissGridProjectionChoice}. 19 */ 17 20 public SwissGridProjectionChoice() { 18 21 super(tr("Swiss Grid (Switzerland)"), "core:swissgrid", "EPSG:21781"); -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/UTMProjectionChoice.java
r6083 r6295 33 33 } 34 34 35 /** 36 * Constructs a new {@code UTMProjectionChoice}. 37 */ 35 38 public UTMProjectionChoice() { 36 39 super(tr("UTM"), "core:utm", cbEntries.toArray(), tr("UTM Zone")); … … 96 99 @Override 97 100 public Collection<String> getPreferences(JPanel panel) { 101 if (!(panel instanceof UTMPanel)) { 102 throw new IllegalArgumentException(); 103 } 98 104 UTMPanel p = (UTMPanel) panel; 99 105 int index = p.prefcb.getSelectedIndex(); … … 133 139 Hemisphere hemisphere = DEFAULT_HEMISPHERE; 134 140 135 if (args != null) {141 if (args != null) { 136 142 String[] array = args.toArray(new String[args.size()]); 137 143 … … 155 161 return defaultIndex; 156 162 } 157 158 163 } -
trunk/src/org/openstreetmap/josm/tools/Diff.java
r6246 r6295 95 95 an edit script, if desired. 96 96 */ 97 public Diff(Object[] a, Object[] b) {97 public Diff(Object[] a, Object[] b) { 98 98 Map<Object,Integer> h = new HashMap<Object,Integer>(a.length + b.length); 99 99 filevec = new FileData[] { new FileData(a,h),new FileData(b,h) }; … … 825 825 } 826 826 827 FileData(int [] data) {828 buffered_lines = data.length;829 equivs = data;827 FileData(int length) { 828 buffered_lines = length; 829 equivs = new int[length]; 830 830 undiscarded = new int[buffered_lines]; 831 831 realindexes = new int[buffered_lines]; 832 832 } 833 833 834 FileData(Object[] data, Map<Object,Integer> h) {835 this( new int[data.length]);834 FileData(Object[] data, Map<Object,Integer> h) { 835 this(data.length); 836 836 // FIXME: diff 2.7 removes common prefix and common suffix 837 837 for (int i = 0; i < data.length; ++i) {
Note:
See TracChangeset
for help on using the changeset viewer.