Changeset 3711 in josm for trunk/src/org
- Timestamp:
- 2010-12-11T12:48:20+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r3675 r3711 71 71 private List<Integer> cancelButtonIdx = Collections.emptyList(); 72 72 private int defaultButtonIdx = 1; 73 pr ivateJButton defaultButton = null;73 protected JButton defaultButton = null; 74 74 private Icon icon; 75 75 private boolean modal; -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r3674 r3711 27 27 } 28 28 } 29 30 /** 31 * return the modulus in the range [0, n) 32 */ 33 public static int mod(int a, int n) { 34 if (n <= 0) 35 throw new IllegalArgumentException(); 36 int res = a % n; 37 if (res < 0) { 38 res += n; 39 } 40 return res; 41 } 42 29 43 }
Note:
See TracChangeset
for help on using the changeset viewer.