Changeset 10223 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-05-16T04:05:58+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Diff.java
r10179 r10223 386 386 } 387 387 388 private boolean inhibit;389 390 388 /** 391 389 * Adjust inserts/deletes of blank lines to join changes as much as possible. 392 390 */ 393 391 private void shift_boundaries() { 394 if (inhibit)395 return;396 392 filevec[0].shift_boundaries(filevec[1]); 397 393 filevec[1].shift_boundaries(filevec[0]); -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r10066 r10223 26 26 import java.io.InputStreamReader; 27 27 import java.io.UnsupportedEncodingException; 28 import java.lang.reflect.AccessibleObject; 28 29 import java.net.MalformedURLException; 29 30 import java.net.URL; … … 34 35 import java.nio.file.Path; 35 36 import java.nio.file.StandardCopyOption; 37 import java.security.AccessController; 36 38 import java.security.MessageDigest; 37 39 import java.security.NoSuchAlgorithmException; 40 import java.security.PrivilegedAction; 38 41 import java.text.Bidi; 39 42 import java.text.MessageFormat; … … 1537 1540 } 1538 1541 1542 /** 1543 * Sets {@code AccessibleObject}(s) accessible. 1544 * @param objects objects 1545 * @see AccessibleObject#setAccessible 1546 * @since 10223 1547 */ 1548 public static void setObjectsAccessible(final AccessibleObject ... objects) { 1549 if (objects != null && objects.length > 0) { 1550 AccessController.doPrivileged(new PrivilegedAction<Object>() { 1551 @Override 1552 public Object run() { 1553 for (AccessibleObject o : objects) { 1554 o.setAccessible(true); 1555 } 1556 return null; 1557 } 1558 }); 1559 } 1560 } 1539 1561 }
Note:
See TracChangeset
for help on using the changeset viewer.