Changeset 6316 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2013-10-07T20:18:17+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r6296 r6316 51 51 int n = ways.size(); 52 52 @SuppressWarnings("unchecked") 53 ArrayList<Node>[] newNodes = new ArrayList[n];53 List<Node>[] newNodes = new ArrayList[n]; 54 54 BBox[] wayBounds = new BBox[n]; 55 55 boolean[] changedWays = new boolean[n]; … … 74 74 } 75 75 76 ArrayList<Node> way1Nodes = newNodes[seg1Way];77 ArrayList<Node> way2Nodes = newNodes[seg2Way];76 List<Node> way1Nodes = newNodes[seg1Way]; 77 List<Node> way2Nodes = newNodes[seg2Way]; 78 78 79 79 //iterate over primary segmemt … … 195 195 } 196 196 197 private static BBox getNodesBounds( ArrayList<Node> nodes) {197 private static BBox getNodesBounds(List<Node> nodes) { 198 198 199 199 BBox bounds = new BBox(nodes.get(0)); 200 for(Node n: nodes) { 200 for (Node n: nodes) { 201 201 bounds.add(n.getCoor()); 202 202 } -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r6248 r6316 15 15 import java.util.HashMap; 16 16 import java.util.Locale; 17 import java.util.Map; 17 18 import java.util.jar.JarInputStream; 18 19 import java.util.zip.ZipEntry; … … 121 122 "OptionPane.cancelButtonText" 122 123 }; 123 private static HashMap<String, String> strings = null;124 private static HashMap<String, String[]> pstrings = null;125 private static HashMap<String, PluralMode> languages = new HashMap<String, PluralMode>();124 private static Map<String, String> strings = null; 125 private static Map<String, String[]> pstrings = null; 126 private static Map<String, PluralMode> languages = new HashMap<String, PluralMode>(); 126 127 127 128 /** … … 476 477 } 477 478 478 private static boolean load(InputStream en, InputStream tr, boolean add) 479 { 480 HashMap<String, String> s; 481 HashMap<String, String[]> p; 482 if(add) 483 { 479 private static boolean load(InputStream en, InputStream tr, boolean add) { 480 Map<String, String> s; 481 Map<String, String[]> p; 482 if (add) { 484 483 s = strings; 485 484 p = pstrings; 486 } 487 else 488 { 485 } else { 489 486 s = new HashMap<String, String>(); 490 487 p = new HashMap<String, String[]>(); -
trunk/src/org/openstreetmap/josm/tools/ImageResource.java
r6290 r6316 6 6 import java.awt.image.BufferedImage; 7 7 import java.util.HashMap; 8 import java.util.Map; 8 9 9 10 import javax.swing.ImageIcon; … … 24 25 * Caches the image data for resized versions of the same image. 25 26 */ 26 private HashMap<Dimension, Image> imgCache = new HashMap<Dimension, Image>();27 private Map<Dimension, Image> imgCache = new HashMap<Dimension, Image>(); 27 28 private SVGDiagram svg; 28 29 public static final Dimension DEFAULT_DIMENSION = new Dimension(-1, -1); -
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r6248 r6316 156 156 // create a shortcut object from an string as saved in the preferences 157 157 private Shortcut(String prefString) { 158 ArrayList<String> s = (new ArrayList<String>(Main.pref.getCollection(prefString)));158 List<String> s = (new ArrayList<String>(Main.pref.getCollection(prefString))); 159 159 this.shortText = prefString.substring(15); 160 160 this.longText = s.get(0); -
trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java
r6248 r6316 12 12 import java.util.Iterator; 13 13 import java.util.LinkedList; 14 import java.util.List; 14 15 import java.util.Locale; 15 16 import java.util.Map; … … 46 47 private int lineNumber; 47 48 49 /** 50 * Constructs a new {@code PresetParsingException}. 51 */ 48 52 public PresetParsingException() { 49 53 super(); … … 274 278 * The queue of already parsed items from the parsing thread. 275 279 */ 276 private Li nkedList<Object> queue = new LinkedList<Object>();280 private List<Object> queue = new LinkedList<Object>(); 277 281 private Iterator<Object> queueIterator = null; 278 282
Note:
See TracChangeset
for help on using the changeset viewer.