- Timestamp:
- 2016-03-26T15:20:07+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedNode.java
r9693 r10046 4 4 import static org.openstreetmap.josm.tools.I18n.marktr; 5 5 import static org.openstreetmap.josm.tools.I18n.tr; 6 7 import java.util.Locale; 6 8 7 9 import org.openstreetmap.josm.command.Command; … … 52 54 @Override 53 55 public void visitKeyValue(AbstractPrimitive n, String key, String value) { 54 if (key.toLowerCase( ).contains("fixme") || value.toLowerCase().contains("fixme")) {56 if (key.toLowerCase(Locale.ENGLISH).contains("fixme") || value.toLowerCase(Locale.ENGLISH).contains("fixme")) { 55 57 /* translation note: don't translate quoted words */ 56 58 String msg = marktr("Has tag containing ''fixme'' or ''FIXME''"); -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmImageView.java
r9665 r10046 41 41 * @throws NoSuchFieldException see {@link Class#getDeclaredField} for details 42 42 */ 43 public JosmImageView(Element elem) throws NoSuchFieldException , SecurityException{43 public JosmImageView(Element elem) throws NoSuchFieldException { 44 44 super(elem); 45 45 imageField = ImageView.class.getDeclaredField("image"); … … 56 56 * Makes sure the necessary properties and image is loaded. 57 57 */ 58 private void sync() {58 private void doSync() { 59 59 try { 60 60 int s = (int) stateField.get(this); 61 61 if ((s & RELOAD_IMAGE_FLAG) != 0) { 62 refreshImage();62 doRefreshImage(); 63 63 } 64 64 s = (int) stateField.get(this); … … 85 85 * @throws SecurityException see {@link Class#getDeclaredMethod} for details 86 86 */ 87 private void refreshImage() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, 88 NoSuchMethodException, SecurityException { 87 private void doRefreshImage() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { 89 88 synchronized (this) { 90 89 // clear out width/height/reloadimage flag and set loading flag … … 99 98 try { 100 99 // Load the image 101 loadImage();100 doLoadImage(); 102 101 103 102 // And update the size params … … 122 121 * @throws SecurityException see {@link Class#getDeclaredMethod} for details 123 122 */ 124 private void loadImage() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, 125 NoSuchMethodException, SecurityException { 123 private void doLoadImage() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { 126 124 URL src = getImageURL(); 127 125 if (src != null) { … … 142 140 @Override 143 141 public Image getImage() { 144 sync();142 doSync(); 145 143 return super.getImage(); 146 144 } … … 148 146 @Override 149 147 public AttributeSet getAttributes() { 150 sync();148 doSync(); 151 149 return super.getAttributes(); 152 150 } … … 154 152 @Override 155 153 public void paint(Graphics g, Shape a) { 156 sync();154 doSync(); 157 155 super.paint(g, a); 158 156 } … … 160 158 @Override 161 159 public float getPreferredSpan(int axis) { 162 sync();160 doSync(); 163 161 return super.getPreferredSpan(axis); 164 162 } … … 166 164 @Override 167 165 public void setSize(float width, float height) { 168 sync();166 doSync(); 169 167 super.setSize(width, height); 170 168 }
Note:
See TracChangeset
for help on using the changeset viewer.