- Timestamp:
- 2015-10-13T23:50:14+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 87 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r8863 r8870 1265 1265 } 1266 1266 1267 private void handleComponentEvent(ComponentEvent e) { 1267 private static void handleComponentEvent(ComponentEvent e) { 1268 1268 Component c = e.getComponent(); 1269 1269 if (c instanceof JFrame && c.isVisible()) { -
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r8510 r8870 111 111 } 112 112 113 private JScrollPane createScrollPane(JosmTextArea area) { 113 private static JScrollPane createScrollPane(JosmTextArea area) { 114 114 area.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 115 115 area.setOpaque(false); -
trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
r8840 r8870 291 291 * @return List of nodes with more than one referrer 292 292 */ 293 private List<Node> collectNodesWithExternReferers(List<Way> ways) { 293 private static List<Node> collectNodesWithExternReferers(List<Way> ways) { 294 294 List<Node> withReferrers = new ArrayList<>(); 295 295 for (Way w: ways) { … … 308 308 * @return Nodes anticlockwise ordered 309 309 */ 310 private List<Node> collectNodesAnticlockwise(List<Way> ways) { 310 private static List<Node> collectNodesAnticlockwise(List<Way> ways) { 311 311 List<Node> nodes = new ArrayList<>(); 312 312 Node firstNode = ways.get(0).firstNode(); … … 355 355 * @return true if action can be done 356 356 */ 357 private boolean actionAllowed(Collection<Node> nodes) { 357 private static boolean actionAllowed(Collection<Node> nodes) { 358 358 boolean outside = false; 359 359 for (Node n: nodes) { -
trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java
r8836 r8870 82 82 * @return A array of two nodes. 83 83 */ 84 private Node[] nodePairFurthestApart(List<Node> nodes) { 84 private static Node[] nodePairFurthestApart(List<Node> nodes) { 85 85 // Detect if selected nodes are on the same way. 86 86 … … 134 134 * @return An array containing the two most distant nodes. 135 135 */ 136 private Node[] nodeFurthestAppart(List<Node> nodes) { 136 private static Node[] nodeFurthestAppart(List<Node> nodes) { 137 137 Node node1 = null, node2 = null; 138 138 double minSqDistance = 0; … … 214 214 * @throws InvalidSelection If the nodes have same coordinates. 215 215 */ 216 private Command alignOnlyNodes(List<Node> nodes) throws InvalidSelection { 216 private static Command alignOnlyNodes(List<Node> nodes) throws InvalidSelection { 217 217 // Choose nodes used as anchor points for projection. 218 218 Node[] anchors = nodePairFurthestApart(nodes); … … 232 232 * @throws InvalidSelection if a polygon is selected, or if a node is used by 3 or more ways 233 233 */ 234 private Command alignMultiWay(Collection<Way> ways) throws InvalidSelection { 234 private static Command alignMultiWay(Collection<Way> ways) throws InvalidSelection { 235 235 // Collect all nodes and compute line equation 236 236 Set<Node> nodes = new HashSet<>(); … … 270 270 * @throws InvalidSelection if a node got more than 4 neighbours (self-crossing way) 271 271 */ 272 private List<Line> getInvolvedLines(Node node, List<Way> refWays) throws InvalidSelection { 272 private static List<Line> getInvolvedLines(Node node, List<Way> refWays) throws InvalidSelection { 273 273 List<Line> lines = new ArrayList<>(); 274 274 List<Node> neighbors = new ArrayList<>(); … … 327 327 * @throws InvalidSelection if more than 2 lines 328 328 */ 329 private Command alignSingleNode(Node node, List<Line> lines) throws InvalidSelection { 329 private static Command alignSingleNode(Node node, List<Line> lines) throws InvalidSelection { 330 330 if (lines.size() == 1) 331 331 return lines.get(0).projectionCommand(node); -
trunk/src/org/openstreetmap/josm/actions/CopyAction.java
r8510 r8870 86 86 } 87 87 88 private boolean isEmptySelection() { 88 private static boolean isEmptySelection() { 89 89 Collection<OsmPrimitive> sel = getCurrentDataSet().getSelected(); 90 90 if (sel.isEmpty()) { -
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r8513 r8870 248 248 * @return Modified nodes list ordered according hand traffic. 249 249 */ 250 private List<Node> orderNodesByTrafficHand(List<Node> nodes) { 250 private static List<Node> orderNodesByTrafficHand(List<Node> nodes) { 251 251 boolean rightHandTraffic = true; 252 252 for (Node n: nodes) { … … 268 268 * @return Modified nodes list with same direction as way. 269 269 */ 270 private List<Node> orderNodesByWay(List<Node> nodes, Way way) { 270 private static List<Node> orderNodesByWay(List<Node> nodes, Way way) { 271 271 List<Node> wayNodes = way.getNodes(); 272 272 if (!way.isClosed()) { -
trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
r8795 r8870 172 172 } 173 173 174 private Relation getSelectedMultipolygonRelation() { 174 private static Relation getSelectedMultipolygonRelation() { 175 175 return getSelectedMultipolygonRelation(getCurrentDataSet().getSelectedWays(), getCurrentDataSet().getSelectedRelations()); 176 176 } -
trunk/src/org/openstreetmap/josm/actions/DistributeAction.java
r8795 r8870 112 112 * @return true in this case 113 113 */ 114 private boolean checkDistributeWay(Collection<Way> ways, Collection<Node> nodes) { 114 private static boolean checkDistributeWay(Collection<Way> ways, Collection<Node> nodes) { 115 115 if (ways.size() == 1 && nodes.size() <= 2) { 116 116 Way w = ways.iterator().next(); … … 137 137 * @return Collection of command to be executed. 138 138 */ 139 private Collection<Command> distributeWay(Collection<Way> ways, 139 private static Collection<Command> distributeWay(Collection<Way> ways, 140 140 Collection<Node> nodes) { 141 141 Way w = ways.iterator().next(); … … 201 201 * @return true in this case 202 202 */ 203 private Boolean checkDistributeNodes(Collection<Way> ways, Collection<Node> nodes) { 203 private static Boolean checkDistributeNodes(Collection<Way> ways, Collection<Node> nodes) { 204 204 return ways.isEmpty() && nodes.size() >= 3; 205 205 } … … 284 284 * @return Set of nodes without coordinates 285 285 */ 286 private Set<Node> removeNodesWithoutCoordinates(Collection<Node> col) { 286 private static Set<Node> removeNodesWithoutCoordinates(Collection<Node> col) { 287 287 Set<Node> result = new HashSet<>(); 288 288 for (Iterator<Node> it = col.iterator(); it.hasNext();) { -
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r8840 r8870 963 963 * @return list of node paths to produce. 964 964 */ 965 private List<List<Node>> buildNodeChunks(Way way, Collection<Node> splitNodes) { 965 private static List<List<Node>> buildNodeChunks(Way way, Collection<Node> splitNodes) { 966 966 List<List<Node>> result = new ArrayList<>(); 967 967 List<Node> curList = new ArrayList<>(); -
trunk/src/org/openstreetmap/josm/actions/MapRectifierWMSmenuAction.java
r8855 r8870 233 233 * @see WMSLayer#checkGrabberType 234 234 */ 235 private void addWMSLayer(String title, String url) { 235 private static void addWMSLayer(String title, String url) { 236 236 WMSLayer layer = new WMSLayer(new ImageryInfo(title, url)); 237 237 Main.main.addLayer(layer); -
trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
r8510 r8870 310 310 } 311 311 312 private boolean hasOnlyIncompleteMembers(Relation r, Collection<OsmPrimitive> toPurge, Collection<? extends OsmPrimitive> moreToPurge) { 312 private static boolean hasOnlyIncompleteMembers( 313 Relation r, Collection<OsmPrimitive> toPurge, Collection<? extends OsmPrimitive> moreToPurge) { 313 314 for (RelationMember m : r.getMembers()) { 314 315 if (!m.getMember().isIncomplete() && !toPurge.contains(m.getMember()) && !moreToPurge.contains(m.getMember())) -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r8846 r8870 303 303 * </ul> 304 304 */ 305 private Way modifyWay(Node originalNode, Way w, List<Command> cmds, List<Node> newNodes) { 305 private static Way modifyWay(Node originalNode, Way w, List<Command> cmds, List<Node> newNodes) { 306 306 // clone the node for the way 307 307 Node newNode = new Node(originalNode, true /* clear OSM ID */); … … 396 396 * @param newNodes New created nodes by this set of command 397 397 */ 398 private void execCommands(List<Command> cmds, List<Node> newNodes) { 398 private static void execCommands(List<Command> cmds, List<Node> newNodes) { 399 399 Main.main.undoRedo.add(new SequenceCommand(/* for correct i18n of plural forms - see #9110 */ 400 400 trn("Dupe into {0} node", "Dupe into {0} nodes", newNodes.size() + 1, newNodes.size() + 1), cmds)); -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r8840 r8870 169 169 * removes any highlighting that may have been set beforehand. 170 170 */ 171 private void removeHighlighting() { 171 private static void removeHighlighting() { 172 172 highlightHelper.clear(); 173 173 DataSet ds = getCurrentDataSet(); -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r8855 r8870 831 831 } 832 832 833 private void showStatusInfo(double angle, double hdg, double distance, boolean activeFlag) { 833 private static void showStatusInfo(double angle, double hdg, double distance, boolean activeFlag) { 834 834 Main.map.statusLine.setAngle(angle); 835 835 Main.map.statusLine.activateAnglePanel(activeFlag); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r8846 r8870 561 561 * @param e current mouse point 562 562 */ 563 private void addNewNode(MouseEvent e) { 563 private static void addNewNode(MouseEvent e) { 564 564 // Should maybe do the same as in DrawAction and fetch all nearby segments? 565 565 WaySegment ws = Main.map.mapView.getNearestWaySegment(e.getPoint(), OsmPrimitive.isSelectablePredicate); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ModifiersSpec.java
r8470 r8870 45 45 } 46 46 47 private boolean match(final int a, final int knownValue) { 47 private static boolean match(final int a, final int knownValue) { 48 48 assert knownValue == ON | knownValue == OFF; 49 49 return a == knownValue || a == UNKNOWN; 50 50 } 51 51 52 private boolean match(final int a, final boolean knownValue) { 52 private static boolean match(final int a, final boolean knownValue) { 53 53 return a == (knownValue ? ON : OFF) || a == UNKNOWN; 54 54 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
r8808 r8870 362 362 } 363 363 364 private void removeWayHighlighting(Collection<Way> ways) { 364 private static void removeWayHighlighting(Collection<Way> ways) { 365 365 if (ways == null) 366 366 return; … … 566 566 } 567 567 568 private String prefKey(String subKey) { 568 private static String prefKey(String subKey) { 569 569 return "edit.make-parallel-way-action." + subKey; 570 570 } 571 571 572 private String getStringPref(String subKey, String def) { 572 private static String getStringPref(String subKey, String def) { 573 573 return Main.pref.get(prefKey(subKey), def); 574 574 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r8846 r8870 772 772 } 773 773 774 private boolean doesImpactStatusLine(Collection<Node> affectedNodes, Collection<Way> selectedWays) { 774 private static boolean doesImpactStatusLine(Collection<Node> affectedNodes, Collection<Way> selectedWays) { 775 775 for (Way w : selectedWays) { 776 776 for (Node n : w.getNodes()) { … … 798 798 * Obtain command in undoRedo stack to "continue" when dragging 799 799 */ 800 private Command getLastCommand() { 800 private static Command getLastCommand() { 801 801 Command c = !Main.main.undoRedo.commands.isEmpty() 802 802 ? Main.main.undoRedo.commands.getLast() : null; -
trunk/src/org/openstreetmap/josm/actions/upload/ApiPreconditionCheckerHook.java
r8510 r8870 50 50 } 51 51 52 private boolean checkMaxNodes(Collection<OsmPrimitive> primitives, long maxNodes) { 52 private static boolean checkMaxNodes(Collection<OsmPrimitive> primitives, long maxNodes) { 53 53 for (OsmPrimitive osmPrimitive : primitives) { 54 54 for (String key: osmPrimitive.keySet()) { -
trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java
r8380 r8870 109 109 * if the user requested cancel. 110 110 */ 111 private boolean displayErrorScreen(List<TestError> errors) { 111 private static boolean displayErrorScreen(List<TestError> errors) { 112 112 JPanel p = new JPanel(new GridBagLayout()); 113 113 ValidatorTreePanel errorPanel = new ValidatorTreePanel(errors); -
trunk/src/org/openstreetmap/josm/data/AutosaveTask.java
r8846 r8870 118 118 } 119 119 120 private String getFileName(String layerName, int index) { 120 private static String getFileName(String layerName, int index) { 121 121 String result = layerName; 122 122 for (char illegalCharacter : ILLEGAL_CHARACTERS) { -
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r8846 r8870 614 614 } 615 615 616 private void processPluginInstallElement(Element elem) { 616 private static void processPluginInstallElement(Element elem) { 617 617 String install = elem.getAttribute("install"); 618 618 String uninstall = elem.getAttribute("remove"); … … 739 739 } 740 740 741 private String normalizeDirName(String dir) { 741 private static String normalizeDirName(String dir) { 742 742 String s = dir.replace('\\', '/'); 743 743 if (s.endsWith("/")) s = s.substring(0, s.length()-1); -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r8846 r8870 689 689 } 690 690 691 private void addPossibleResourceDir(Set<String> locations, String s) { 691 private static void addPossibleResourceDir(Set<String> locations, String s) { 692 692 if (s != null) { 693 693 if (!s.endsWith(File.separator)) { … … 867 867 } 868 868 869 private void setCorrectPermissions(File file) { 869 private static void setCorrectPermissions(File file) { 870 870 if (!file.setReadable(false, false) && Main.isDebugEnabled()) { 871 871 Main.debug(tr("Unable to set file non-readable {0}", file.getAbsolutePath())); … … 1337 1337 } 1338 1338 1339 private <T> Collection<Map<String, String>> serializeListOfStructs(Collection<T> l, Class<T> klass) { 1339 private static <T> Collection<Map<String, String>> serializeListOfStructs(Collection<T> l, Class<T> klass) { 1340 1340 if (l == null) 1341 1341 return null; -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r8824 r8870 247 247 248 248 // some additional checks to respect extended URLs in preferences (legacy workaround) 249 private boolean isSimilar(String a, String b) { 249 private static boolean isSimilar(String a, String b) { 250 250 return Objects.equals(a, b) || (a != null && b != null && !a.isEmpty() && !b.isEmpty() && (a.contains(b) || b.contains(a))); 251 251 } -
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r8855 r8870 969 969 } 970 970 971 private void deleteWay(Way way) { 971 private static void deleteWay(Way way) { 972 972 way.setNodes(null); 973 973 way.setDeleted(true); … … 1099 1099 } 1100 1100 1101 private void reindexRelation(Relation relation) { 1101 private static void reindexRelation(Relation relation) { 1102 1102 BBox before = relation.getBBox(); 1103 1103 relation.updatePosition(); -
trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java
r8565 r8870 218 218 } 219 219 220 private void resetPrimitive(OsmPrimitive osm) { 220 private static void resetPrimitive(OsmPrimitive osm) { 221 221 if (osm instanceof Way) { 222 222 ((Way) osm).setNodes(null); -
trunk/src/org/openstreetmap/josm/data/osm/FilterMatcher.java
r8811 r8870 136 136 * when hidden is false, returns whether the primitive is disabled or hidden 137 137 */ 138 private boolean isFiltered(OsmPrimitive primitive, boolean hidden) { 138 private static boolean isFiltered(OsmPrimitive primitive, boolean hidden) { 139 139 return hidden ? primitive.isDisabledAndHidden() : primitive.isDisabled(); 140 140 } … … 147 147 * @return true, if at least one non-inverted filter applies to the primitive 148 148 */ 149 private boolean isFilterExplicit(OsmPrimitive primitive, boolean hidden) { 149 private static boolean isFilterExplicit(OsmPrimitive primitive, boolean hidden) { 150 150 return hidden ? primitive.getHiddenType() : primitive.getDisabledType(); 151 151 } … … 162 162 * (c) at least one of the parent ways is explicitly filtered 163 163 */ 164 private boolean allParentWaysFiltered(OsmPrimitive primitive, boolean hidden) { 164 private static boolean allParentWaysFiltered(OsmPrimitive primitive, boolean hidden) { 165 165 List<OsmPrimitive> refs = primitive.getReferrers(); 166 166 boolean isExplicit = false; … … 175 175 } 176 176 177 private boolean oneParentWayNotFiltered(OsmPrimitive primitive, boolean hidden) { 177 private static boolean oneParentWayNotFiltered(OsmPrimitive primitive, boolean hidden) { 178 178 List<OsmPrimitive> refs = primitive.getReferrers(); 179 179 for (OsmPrimitive p: refs) { … … 185 185 } 186 186 187 private boolean allParentMultipolygonsFiltered(OsmPrimitive primitive, boolean hidden) { 187 private static boolean allParentMultipolygonsFiltered(OsmPrimitive primitive, boolean hidden) { 188 188 boolean isExplicit = false; 189 189 for (Relation r : new SubclassFilteredCollection<OsmPrimitive, Relation>( … … 196 196 } 197 197 198 private boolean oneParentMultipolygonNotFiltered(OsmPrimitive primitive, boolean hidden) { 198 private static boolean oneParentMultipolygonNotFiltered(OsmPrimitive primitive, boolean hidden) { 199 199 for (Relation r : new SubclassFilteredCollection<OsmPrimitive, Relation>( 200 200 primitive.getReferrers(), OsmPrimitive.multipolygonPredicate)) { … … 205 205 } 206 206 207 private FilterType test(List<FilterInfo> filters, OsmPrimitive primitive, boolean hidden) { 207 private static FilterType test(List<FilterInfo> filters, OsmPrimitive primitive, boolean hidden) { 208 208 209 209 if (primitive.isIncomplete()) -
trunk/src/org/openstreetmap/josm/data/osm/NoteData.java
r8840 r8870 279 279 } 280 280 281 private User getCurrentUser() { 281 private static User getCurrentUser() { 282 282 JosmUserIdentityManager userMgr = JosmUserIdentityManager.getInstance(); 283 283 return User.createOsmUser(userMgr.getUserId(), userMgr.getUserName()); -
trunk/src/org/openstreetmap/josm/data/osm/Storage.java
r8855 r8870 266 266 * Additional mixing of hash 267 267 */ 268 private int rehash(int h) { 268 private static int rehash(int h) { 269 269 return 1103515245*h >> 2; 270 270 } -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r8846 r8870 81 81 * Prevent directly following identical nodes in ways. 82 82 */ 83 private List<Node> removeDouble(List<Node> nodes) { 83 private static List<Node> removeDouble(List<Node> nodes) { 84 84 Node last = null; 85 85 int count = nodes.size(); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r8846 r8870 363 363 } 364 364 365 private Polygon buildPolygon(Point center, int radius, int sides, double rotation) { 365 private static Polygon buildPolygon(Point center, int radius, int sides, double rotation) { 366 366 Polygon polygon = new Polygon(); 367 367 for (int i = 0; i < sides; i++) { … … 1500 1500 } 1501 1501 1502 private double[] pointAt(double t, Polygon poly, double pathLength) { 1502 private static double[] pointAt(double t, Polygon poly, double pathLength) { 1503 1503 double totalLen = t * pathLength; 1504 1504 double curLen = 0; -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java
r8855 r8870 276 276 } 277 277 278 private boolean isNodeTagged(Node n) { 278 private static boolean isNodeTagged(Node n) { 279 279 return n.isTagged() || n.isAnnotated(); 280 280 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java
r8512 r8870 77 77 } 78 78 79 private void setNormalized(Collection<String> literals, List<String> target) { 79 private static void setNormalized(Collection<String> literals, List<String> target) { 80 80 target.clear(); 81 81 for (String l: literals) { -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java
r8739 r8870 202 202 } 203 203 204 private void dispatchEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) { 204 private static void dispatchEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) { 205 205 for (Map<Relation, Multipolygon> map : maps) { 206 206 Multipolygon m = map.get(r); … … 217 217 } 218 218 219 private void removeMultipolygonFrom(Relation r, Collection<Map<Relation, Multipolygon>> maps) { 219 private static void removeMultipolygonFrom(Relation r, Collection<Map<Relation, Multipolygon>> maps) { 220 220 for (Map<Relation, Multipolygon> map : maps) { 221 221 map.remove(r); -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
r8510 r8870 83 83 private NTV2SubGrid lastSubGrid; 84 84 85 private void readBytes(InputStream in, byte[] b) throws IOException { 85 private static void readBytes(InputStream in, byte[] b) throws IOException { 86 86 if (in.read(b) < b.length) { 87 87 Main.error("Failed to read expected amount of bytes ("+ b.length +") from stream"); … … 167 167 * @return an array of top level Sub Grids with lower level Sub Grids set. 168 168 */ 169 private NTV2SubGrid[] createSubGridTree(NTV2SubGrid[] subGrid) { 169 private static NTV2SubGrid[] createSubGridTree(NTV2SubGrid[] subGrid) { 170 170 int topLevelCount = 0; 171 171 Map<String, List<NTV2SubGrid>> subGridMap = new HashMap<>(); -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java
r8512 r8870 149 149 } 150 150 151 private void readBytes(InputStream in, byte[] b) throws IOException { 151 private static void readBytes(InputStream in, byte[] b) throws IOException { 152 152 if (in.read(b) < b.length) { 153 153 Main.error("Failed to read expected amount of bytes ("+ b.length +") from stream"); … … 209 209 * @return interpolated value 210 210 */ 211 private double interpolate(float a, float b, float c, float d, double x, double y) { 211 private static double interpolate(float a, float b, float c, float d, double x, double y) { 212 212 return a + (((double) b - (double) a) * x) + (((double) c - (double) a) * y) + 213 213 (((double) a + (double) d - b - c) * x * y); -
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r8840 r8870 162 162 * Check if plugin directory exists (store ignored errors file) 163 163 */ 164 private void checkValidatorDir() { 164 private static void checkValidatorDir() { 165 165 try { 166 166 File pathDir = new File(getValidatorDir()); … … 173 173 } 174 174 175 private void loadIgnoredErrors() { 175 private static void loadIgnoredErrors() { 176 176 ignoredErrors.clear(); 177 177 if (Main.pref.getBoolean(ValidatorPreference.PREF_USE_IGNORE, true)) { -
trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
r8510 r8870 218 218 } 219 219 220 private String chompLeadingDot(String str) { 220 private static String chompLeadingDot(String str) { 221 221 if (str.startsWith(".")) { 222 222 return str.substring(1); -
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r8777 r8870 91 91 } 92 92 93 private GeneralPath createPath(List<Node> nodes) { 93 private static GeneralPath createPath(List<Node> nodes) { 94 94 GeneralPath result = new GeneralPath(); 95 95 result.moveTo((float) nodes.get(0).getCoor().lat(), (float) nodes.get(0).getCoor().lon()); … … 109 109 } 110 110 111 private Intersection getPolygonIntersection(GeneralPath outer, List<Node> inner) { 111 private static Intersection getPolygonIntersection(GeneralPath outer, List<Node> inner) { 112 112 boolean inside = false; 113 113 boolean outside = false; … … 292 292 } 293 293 294 private void addRelationIfNeeded(TestError error, Relation r) { 294 private static void addRelationIfNeeded(TestError error, Relation r) { 295 295 // Fix #8212 : if the error references only incomplete primitives, 296 296 // add multipolygon in order to let user select something and fix the error -
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r8863 r8870 297 297 * @param s string to check 298 298 */ 299 private boolean containsLow(String s) { 299 private static boolean containsLow(String s) { 300 300 if (s == null) 301 301 return false; … … 454 454 } 455 455 456 private Map<String, String> getPossibleValues(Set<String> values) { 456 private static Map<String, String> getPossibleValues(Set<String> values) { 457 457 // generate a map with common typos 458 458 Map<String, String> map = new HashMap<>(); … … 666 666 public boolean valueBool; 667 667 668 private Pattern getPattern(String str) throws PatternSyntaxException { 668 private static Pattern getPattern(String str) throws PatternSyntaxException { 669 669 if (str.endsWith("/i")) 670 670 return Pattern.compile(str.substring(1, str.length()-2), Pattern.CASE_INSENSITIVE); -
trunk/src/org/openstreetmap/josm/data/validation/tests/WayConnectedToArea.java
r8510 r8870 84 84 } 85 85 86 private boolean isArea(OsmPrimitive p) { 86 private static boolean isArea(OsmPrimitive p) { 87 87 return (p.hasKey("landuse") || p.hasKey("natural")) 88 88 && ElemStyles.hasAreaElemStyle(p, false); -
trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
r8863 r8870 422 422 } 423 423 424 private String getRelationTypeName(IRelation relation) { 424 private static String getRelationTypeName(IRelation relation) { 425 425 String name = trc("Relation type", relation.get("type")); 426 426 if (name == null) { … … 455 455 } 456 456 457 private String getNameTagValue(IRelation relation, String nameTag) { 457 private static String getNameTagValue(IRelation relation, String nameTag) { 458 458 if ("name".equals(nameTag)) { 459 459 if (Main.pref.getBoolean("osm-primitives.localize-name", true)) … … 509 509 } 510 510 511 private String buildDefaultToolTip(long id, Map<String, String> tags) { 511 private static String buildDefaultToolTip(long id, Map<String, String> tags) { 512 512 StringBuilder sb = new StringBuilder(); 513 513 sb.append("<html><strong>id</strong>=") -
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r8848 r8870 34 34 import org.openstreetmap.josm.Main; 35 35 import org.openstreetmap.josm.actions.OpenFileAction; 36 import org.openstreetmap.josm.gui.FileDrop.TransferableObject; 36 37 37 38 // CHECKSTYLE.OFF: HideUtilityClassConstructor … … 227 228 228 229 /** Determine if the dragged data is a file list. */ 229 private boolean isDragOk(final DropTargetDragEvent evt) { 230 private static boolean isDragOk(final DropTargetDragEvent evt) { 230 231 boolean ok = false; 231 232 -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r8846 r8870 617 617 } 618 618 619 private void handleAutosave() { 619 private static void handleAutosave() { 620 620 if (AutosaveTask.PROP_AUTOSAVE_ENABLED.get()) { 621 621 AutosaveTask autosaveTask = new AutosaveTask(); -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r8863 r8870 909 909 * @param result resulting list ofmenu items 910 910 */ 911 private void findMenuItems(final JMenu menu, final String textToFind, final List<JMenuItem> result) { 911 private static void findMenuItems(final JMenu menu, final String textToFind, final List<JMenuItem> result) { 912 912 for (int i = 0; i < menu.getItemCount(); i++) { 913 913 JMenuItem menuItem = menu.getItem(i); -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r8856 r8870 207 207 } 208 208 209 private EastNorth calculateDefaultCenter() { 209 private static EastNorth calculateDefaultCenter() { 210 210 Bounds b = DownloadDialog.getSavedDownloadBounds(); 211 211 if (b == null) { -
trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
r8557 r8870 368 368 } 369 369 370 private void selectionAreaChanged() { 370 private static void selectionAreaChanged() { 371 371 // Trigger a redraw of the map view. 372 372 // A nicer way would be to provide change events for the temporary layer. … … 436 436 } 437 437 438 private Polygon rectToPolygon(Rectangle r) { 438 private static Polygon rectToPolygon(Rectangle r) { 439 439 Polygon poly = new Polygon(); 440 440 -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r8856 r8870 288 288 * @return List of primitives whose filtering can be affected by change in source primitives 289 289 */ 290 private Collection<OsmPrimitive> getAffectedPrimitives(Collection<? extends OsmPrimitive> primitives) { 290 private static Collection<OsmPrimitive> getAffectedPrimitives(Collection<? extends OsmPrimitive> primitives) { 291 291 // Filters can use nested parent/child expression so complete tree is necessary 292 292 Set<OsmPrimitive> result = new HashSet<>(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java
r8846 r8870 422 422 } 423 423 424 private String getSort(StyleSource s) { 424 private static String getSort(StyleSource s) { 425 425 if (s instanceof XmlStyleSource) { 426 426 return tr("xml"); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r8863 r8870 226 226 * @return {@code true} if the user accepts to overwrite key, {@code false} otherwise 227 227 */ 228 private boolean warnOverwriteKey(String action, String togglePref) { 228 private static boolean warnOverwriteKey(String action, String togglePref) { 229 229 ExtendedDialog ed = new ExtendedDialog( 230 230 Main.parent, -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableLinkedCellRenderer.java
r8510 r8870 191 191 } 192 192 193 private void setDotted(Graphics g) { 193 private static void setDotted(Graphics g) { 194 194 ((Graphics2D) g).setStroke(new BasicStroke( 195 195 1f, … … 201 201 } 202 202 203 private void unsetDotted(Graphics g) { 203 private static void unsetDotted(Graphics g) { 204 204 ((Graphics2D) g).setStroke(new BasicStroke()); 205 205 } -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r8855 r8870 788 788 } 789 789 790 private User getCurrentUser() { 790 private static User getCurrentUser() { 791 791 UserInfo info = JosmUserIdentityManager.getInstance().getUserInfo(); 792 792 return info == null ? User.getAnonymous() : User.createOsmUser(info.getId(), info.getDisplayName()); -
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r8836 r8870 568 568 } 569 569 570 private String getLastChangesetTagFromHistory(String historyKey, List<String> def) { 570 private static String getLastChangesetTagFromHistory(String historyKey, List<String> def) { 571 571 Collection<String> history = Main.pref.getCollection(historyKey, def); 572 572 int age = (int) (System.currentTimeMillis() / 1000 - Main.pref.getInteger(BasicUploadSettingsPanel.HISTORY_LAST_USED_KEY, 0)); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r8846 r8870 1273 1273 } 1274 1274 1275 private int getLastIndexOfListBefore(List<ImageEntry> images, long searchedTime) { 1275 private static int getLastIndexOfListBefore(List<ImageEntry> images, long searchedTime) { 1276 1276 int lstSize = images.size(); 1277 1277 … … 1307 1307 } 1308 1308 1309 private String formatTimezone(double timezone) { 1309 private static String formatTimezone(double timezone) { 1310 1310 StringBuilder ret = new StringBuilder(); 1311 1311 … … 1326 1326 } 1327 1327 1328 private double parseTimezone(String timezone) throws ParseException { 1328 private static double parseTimezone(String timezone) throws ParseException { 1329 1329 1330 1330 if (timezone.isEmpty()) … … 1397 1397 } 1398 1398 1399 private long parseOffset(String offset) throws ParseException { 1399 private static long parseOffset(String offset) throws ParseException { 1400 1400 String error = tr("Error while parsing offset.\nExpected format: {0}", "number"); 1401 1401 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r8846 r8870 444 444 } 445 445 446 private Dimension scaledDimension(Image thumb) { 446 private static Dimension scaledDimension(Image thumb) { 447 447 final double d = Main.map.mapView.getDist100Pixel(); 448 448 final double size = 10 /*meter*/; /* size of the photo on the map */ -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r8840 r8870 559 559 } 560 560 561 private Point getCenterImgCoord(Rectangle visibleRect) { 561 private static Point getCenterImgCoord(Rectangle visibleRect) { 562 562 return new Point(visibleRect.x + visibleRect.width / 2, 563 563 visibleRect.y + visibleRect.height / 2); … … 630 630 } 631 631 632 private void checkVisibleRectPos(Image image, Rectangle visibleRect) { 632 private static void checkVisibleRectPos(Image image, Rectangle visibleRect) { 633 633 if (visibleRect.x < 0) { 634 634 visibleRect.x = 0; … … 645 645 } 646 646 647 private void checkVisibleRectSize(Image image, Rectangle visibleRect) { 647 private static void checkVisibleRectSize(Image image, Rectangle visibleRect) { 648 648 if (visibleRect.width > image.getWidth(null)) { 649 649 visibleRect.width = image.getWidth(null); -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportAudioAction.java
r8848 r8870 57 57 } 58 58 59 private void warnCantImportIntoServerLayer(GpxLayer layer) { 59 private static void warnCantImportIntoServerLayer(GpxLayer layer) { 60 60 String msg = tr("<html>The data in the GPX layer ''{0}'' has been downloaded from the server.<br>" + 61 61 "Because its way points do not include a timestamp we cannot correlate them with audio data.</html>", -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportImagesAction.java
r8510 r8870 33 33 } 34 34 35 private void warnCantImportIntoServerLayer(GpxLayer layer) { 35 private static void warnCantImportIntoServerLayer(GpxLayer layer) { 36 36 String msg = tr("<html>The data in the GPX layer ''{0}'' has been downloaded from the server.<br>"+ 37 37 "Because its way points do not include a timestamp we cannot correlate them with images.</html>", … … 41 41 } 42 42 43 private void addRecursiveFiles(List<File> files, File[] sel) { 43 private static void addRecursiveFiles(List<File> files, File[] sel) { 44 44 for (File f : sel) { 45 45 if (f.isDirectory()) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java
r8836 r8870 69 69 } 70 70 71 private boolean mapHasGpxorMarkerLayer() { 71 private static boolean mapHasGpxorMarkerLayer() { 72 72 for (Layer layer : Main.map.mapView.getAllLayers()) { 73 73 if (layer instanceof GpxLayer || layer instanceof MarkerLayer) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r8846 r8870 309 309 } 310 310 311 private boolean conditionRequiresKeyPresence(KeyMatchType matchType) { 311 private static boolean conditionRequiresKeyPresence(KeyMatchType matchType) { 312 312 return matchType != KeyMatchType.REGEX; 313 313 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSource.java
r8846 r8870 141 141 * @param mc side effect: update the valid region for the current MultiCascade 142 142 */ 143 private boolean requiresUpdate(Prototype current, Prototype candidate, Double scale, MultiCascade mc) { 143 private static boolean requiresUpdate(Prototype current, Prototype candidate, Double scale, MultiCascade mc) { 144 144 if (current == null || candidate.priority >= current.priority) { 145 145 if (scale == null) -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r8846 r8870 684 684 } 685 685 686 private void appendRow(StringBuilder s, String th, String td) { 686 private static void appendRow(StringBuilder s, String th, String td) { 687 687 s.append("<tr><th>").append(th).append("</th><td>").append(td).append("</td</tr>"); 688 688 } … … 1426 1426 } 1427 1427 1428 private String fromSourceEntry(SourceEntry entry) { 1428 private static String fromSourceEntry(SourceEntry entry) { 1429 1429 if (entry == null) 1430 1430 return null; -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java
r8836 r8870 195 195 } 196 196 197 private File[] askUserForCustomSettingsFiles(boolean saveFileFlag, String title) { 197 private static File[] askUserForCustomSettingsFiles(boolean saveFileFlag, String title) { 198 198 FileFilter filter = new FileFilter() { 199 199 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java
r8846 r8870 143 143 } 144 144 145 private String getName(String o) { 145 private static String getName(String o) { 146 146 return Main.pref.getColorName(o); 147 147 } … … 262 262 * Add all missing color entries. 263 263 */ 264 private void fixColorPrefixes() { 264 private static void fixColorPrefixes() { 265 265 PaintColors.getColors(); 266 266 ConflictColors.getColors(); -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java
r8769 r8870 172 172 } 173 173 174 private Long getCacheSize(CacheAccess<String, BufferedImageCacheEntry> cache) { 174 private static Long getCacheSize(CacheAccess<String, BufferedImageCacheEntry> cache) { 175 175 ICacheStats stats = cache.getStatistics(); 176 176 for (IStats cacheStats: stats.getAuxiliaryCacheStats()) { … … 242 242 } 243 243 244 private DefaultTableModel getTableModel(final CacheAccess<String, BufferedImageCacheEntry> cache) { 244 private static DefaultTableModel getTableModel(final CacheAccess<String, BufferedImageCacheEntry> cache) { 245 245 final DefaultTableModel tableModel = new DefaultTableModel( 246 246 getCacheStats(cache), -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r8836 r8870 99 99 } 100 100 101 private void addSettingsSection(final JPanel p, String name, JPanel section, GBC gbc) { 101 private static void addSettingsSection(final JPanel p, String name, JPanel section, GBC gbc) { 102 102 final JLabel lbl = new JLabel(name); 103 103 lbl.setFont(lbl.getFont().deriveFont(Font.BOLD)); -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
r8836 r8870 164 164 } 165 165 166 private JComponent build() { 166 private static JComponent build() { 167 167 StringBuilder s = new StringBuilder(); 168 168 s.append("<b>+proj=...</b> - <i>").append(tr("Projection name")) -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
r8554 r8870 471 471 } 472 472 473 private Collection<String> getSubprojectionPreference(ProjectionChoice pc) { 473 private static Collection<String> getSubprojectionPreference(ProjectionChoice pc) { 474 474 return Main.pref.getCollection("projection.sub."+pc.getId(), null); 475 475 } -
trunk/src/org/openstreetmap/josm/gui/preferences/validator/ValidatorTagCheckerRulesPreference.java
r8836 r8870 160 160 } 161 161 162 private void addDefault(List<ExtendedSourceEntry> defaults, String filename, String title, String description) { 162 private static void addDefault(List<ExtendedSourceEntry> defaults, String filename, String title, String description) { 163 163 ExtendedSourceEntry i = new ExtendedSourceEntry(filename+".mapcss", "resource://data/validator/"+filename+".mapcss"); 164 164 i.title = title; -
trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
r8840 r8870 53 53 private boolean cancelable; 54 54 55 private void doInEDT(Runnable runnable) { 55 private static void doInEDT(Runnable runnable) { 56 56 // This must be invoke later even if current thread is EDT because inside there is dialog.setVisible 57 57 // which freeze current code flow until modal dialog is closed -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetMenu.java
r8863 r8870 65 65 } 66 66 67 private Component copyMenuComponent(Component menuComponent) { 67 private static Component copyMenuComponent(Component menuComponent) { 68 68 if (menuComponent instanceof JMenu) { 69 69 JMenu menu = (JMenu) menuComponent; -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSelector.java
r8863 r8870 162 162 } 163 163 164 private int isMatching(Collection<String> values, String[] searchString) { 164 private static int isMatching(Collection<String> values, String[] searchString) { 165 165 int sum = 0; 166 166 for (String word: searchString) { -
trunk/src/org/openstreetmap/josm/gui/util/AdvancedKeyPressDetector.java
r8846 r8870 198 198 } 199 199 200 private boolean isFocusInMainWindow() { 200 private static boolean isFocusInMainWindow() { 201 201 Component focused = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); 202 202 return focused != null && SwingUtilities.getWindowAncestor(focused) instanceof JFrame; -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
r8846 r8870 312 312 } 313 313 314 private Dimension sizeWithInsets(Container parent, Dimension size) { 314 private static Dimension sizeWithInsets(Container parent, Dimension size) { 315 315 Insets insets = parent.getInsets(); 316 316 int width = size.width + insets.left + insets.right; … … 331 331 } 332 332 333 private Rectangle boundsWithYandHeight(Rectangle bounds, double y, double height) { 333 private static Rectangle boundsWithYandHeight(Rectangle bounds, double y, double height) { 334 334 Rectangle r = new Rectangle(); 335 335 r.setBounds((int) (bounds.getX()), (int) y, (int) (bounds.getWidth()), (int) height); … … 337 337 } 338 338 339 private Rectangle boundsWithXandWidth(Rectangle bounds, double x, double width) { 339 private static Rectangle boundsWithXandWidth(Rectangle bounds, double x, double width) { 340 340 Rectangle r = new Rectangle(); 341 341 r.setBounds((int) x, (int) (bounds.getY()), (int) width, (int) (bounds.getHeight())); -
trunk/src/org/openstreetmap/josm/io/GpxExporter.java
r8849 r8870 27 27 import org.openstreetmap.josm.data.gpx.GpxConstants; 28 28 import org.openstreetmap.josm.data.gpx.GpxData; 29 import org.openstreetmap.josm.data.osm.DataSet;30 29 import org.openstreetmap.josm.gui.ExtendedDialog; 31 30 import org.openstreetmap.josm.gui.layer.GpxLayer; … … 173 172 gpxData = ((GpxLayer) layer).data; 174 173 } else { 175 gpxData = OsmDataLayer.toGpxData(getCurrentDataSet(), file); 174 gpxData = OsmDataLayer.toGpxData(Main.main.getCurrentDataSet(), file); 176 175 } 177 176 … … 337 336 authorNameListener.keyReleased(null); 338 337 } 339 340 /**341 * Replies the current dataset342 *343 * @return the current dataset. null, if no current dataset exists344 */345 private DataSet getCurrentDataSet() {346 return Main.main.getCurrentDataSet();347 }348 338 } -
trunk/src/org/openstreetmap/josm/io/InvalidXmlCharacterFilter.java
r8387 r8870 61 61 } 62 62 63 private char filter(char in) { 63 private static char filter(char in) { 64 64 if (in < 0x20 && INVALID_CHARS[in]) { 65 65 if (firstWarning) { -
trunk/src/org/openstreetmap/josm/io/JpgImporter.java
r8846 r8870 88 88 } 89 89 90 private void addRecursiveFiles(List<File> files, Set<String> visitedDirs, List<File> sel, ProgressMonitor progressMonitor) 90 private static void addRecursiveFiles(List<File> files, Set<String> visitedDirs, List<File> sel, ProgressMonitor progressMonitor) 91 91 throws IOException { 92 92 -
trunk/src/org/openstreetmap/josm/io/NmeaReader.java
r8840 r8870 448 448 } 449 449 450 private LatLon parseLatLon(String ns, String ew, String dlat, String dlon) 450 private static LatLon parseLatLon(String ns, String ew, String dlat, String dlon) 451 451 throws NumberFormatException { 452 452 String widthNorth = dlat.trim(); -
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r8846 r8870 210 210 } 211 211 212 private InputStream fixEncoding(InputStream stream, String encoding) throws IOException { 212 private static InputStream fixEncoding(InputStream stream, String encoding) throws IOException { 213 213 if ("gzip".equalsIgnoreCase(encoding)) { 214 214 stream = new GZIPInputStream(stream); -
trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java
r8854 r8870 54 54 } 55 55 56 private String completeOverpassQuery(String query) { 56 private static String completeOverpassQuery(String query) { 57 57 int firstColon = query.indexOf(';'); 58 58 if (firstColon == -1) { -
trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java
r8846 r8870 303 303 } 304 304 305 private boolean isProjSupported(String crs) { 305 private static boolean isProjSupported(String crs) { 306 306 for (ProjectionChoice pc : ProjectionPreference.getProjectionChoices()) { 307 307 if (pc.getPreferencesFromCode(crs) != null) return true; -
trunk/src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java
r8846 r8870 354 354 * When error 355 355 */ 356 private void sendHeader(Writer out, String status, String contentType, 356 private static void sendHeader(Writer out, String status, String contentType, 357 357 boolean endHeaders) throws IOException { 358 358 out.write("HTTP/1.1 " + status + "\r\n"); -
trunk/src/org/openstreetmap/josm/io/session/GeoImageSessionExporter.java
r8510 r8870 124 124 } 125 125 126 private void addAttr(String name, String value, Element element, SessionWriter.ExportSupport support) { 127 128 129 126 private static void addAttr(String name, String value, Element element, SessionWriter.ExportSupport support) { 127 Element attrElem = support.createElement(name); 128 attrElem.appendChild(support.createTextNode(value)); 129 element.appendChild(attrElem); 130 130 } 131 131 } -
trunk/src/org/openstreetmap/josm/tools/AlphanumComparator.java
r8419 r8870 64 64 * calculate it once) * 65 65 */ 66 private String getChunk(String s, int slength, int marker) { 66 private static String getChunk(String s, int slength, int marker) { 67 67 StringBuilder chunk = new StringBuilder(); 68 68 char c = s.charAt(marker); -
trunk/src/org/openstreetmap/josm/tools/MultikeyActionsHandler.java
r8846 r8870 208 208 } 209 209 210 private String formatMenuText(KeyStroke keyStroke, String index, String description) { 210 private static String formatMenuText(KeyStroke keyStroke, String index, String description) { 211 211 String shortcutText = KeyEvent.getKeyModifiersText(keyStroke.getModifiers()) + '+' 212 212 + KeyEvent.getKeyText(keyStroke.getKeyCode()) + ',' + index; -
trunk/src/org/openstreetmap/josm/tools/WikiReader.java
r8849 r8870 106 106 } 107 107 108 private String readNormal(BufferedReader in, boolean html) throws IOException { 108 private static String readNormal(BufferedReader in, boolean html) throws IOException { 109 109 StringBuilder b = new StringBuilder(); 110 110 for (String line = in.readLine(); line != null; line = in.readLine()) { -
trunk/src/org/openstreetmap/josm/tools/date/PrimaryDateParser.java
r8372 r8870 40 40 } 41 41 42 private boolean isDateInShortStandardFormat(String date) { 42 private static boolean isDateInShortStandardFormat(String date) { 43 43 char[] dateChars; 44 44 // We can only parse the date if it is in a very specific format. … … 107 107 } 108 108 109 private boolean isDateInLongStandardFormat(String date) { 109 private static boolean isDateInLongStandardFormat(String date) { 110 110 char[] dateChars; 111 111 // We can only parse the date if it is in a very specific format.
Note:
See TracChangeset
for help on using the changeset viewer.