Changeset 13174 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-11-28T02:52:05+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/Command.java
r13173 r13174 10 10 import java.util.Objects; 11 11 12 import org.openstreetmap.josm.Main;13 12 import org.openstreetmap.josm.data.coor.EastNorth; 14 13 import org.openstreetmap.josm.data.coor.LatLon; -
trunk/src/org/openstreetmap/josm/data/StructUtils.java
r13173 r13174 197 197 * @return an object of class T, initialized as described above 198 198 */ 199 @SuppressWarnings("deprecation")200 199 public static <T> T deserializeStruct(Map<String, String> hash, Class<T> klass) { 201 200 T struct = null; -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r13173 r13174 181 181 * @author imi 182 182 */ 183 @SuppressWarnings("deprecation")184 183 public class MainApplication extends Main { 185 184 … … 472 471 * Should set {@link #menu} and {@link #mainPanel} 473 472 */ 474 @SuppressWarnings("deprecation")475 473 protected void initializeMainWindow() { 476 474 if (mainFrame != null) { … … 572 570 * @since 12636 (as a replacement to {@code Main.getLayerManager()}) 573 571 */ 574 @SuppressWarnings("deprecation")575 572 public static MainLayerManager getLayerManager() { 576 573 return layerManager; … … 625 622 * @since 12630 (as a replacement to {@code Main.isDisplayingMapView()}) 626 623 */ 627 @SuppressWarnings("deprecation")628 624 public static boolean isDisplayingMapView() { 629 625 return map != null && map.mapView != null; … … 663 659 * @since 12639 (as a replacement to {@code Main.addAndFireMapFrameListener}) 664 660 */ 665 @SuppressWarnings("deprecation")666 661 public static boolean addAndFireMapFrameListener(MapFrameListener listener) { 667 662 return mainPanel != null && mainPanel.addAndFireMapFrameListener(listener); … … 675 670 * @since 12639 (as a replacement to {@code Main.addMapFrameListener}) 676 671 */ 677 @SuppressWarnings("deprecation")678 672 public static boolean addMapFrameListener(MapFrameListener listener) { 679 673 return mainPanel != null && mainPanel.addMapFrameListener(listener); … … 686 680 * @since 12639 (as a replacement to {@code Main.removeMapFrameListener}) 687 681 */ 688 @SuppressWarnings("deprecation")689 682 public static boolean removeMapFrameListener(MapFrameListener listener) { 690 683 return mainPanel != null && mainPanel.removeMapFrameListener(listener); … … 696 689 * @since 12639 (as a replacement to {@code Main.registerActionShortcut}) 697 690 */ 698 @SuppressWarnings("deprecation")699 691 public static void registerActionShortcut(JosmAction action) { 700 692 registerActionShortcut(action, action.getShortcut()); … … 707 699 * @since 12639 (as a replacement to {@code Main.registerActionShortcut}) 708 700 */ 709 @SuppressWarnings("deprecation")710 701 public static void registerActionShortcut(Action action, Shortcut shortcut) { 711 702 KeyStroke keyStroke = shortcut.getKeyStroke(); … … 728 719 * @since 12639 (as a replacement to {@code Main.unregisterShortcut}) 729 720 */ 730 @SuppressWarnings("deprecation")731 721 public static void unregisterShortcut(Shortcut shortcut) { 732 722 contentPanePrivate.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).remove(shortcut.getKeyStroke()); … … 738 728 * @since 12639 (as a replacement to {@code Main.unregisterActionShortcut}) 739 729 */ 740 @SuppressWarnings("deprecation")741 730 public static void unregisterActionShortcut(JosmAction action) { 742 731 unregisterActionShortcut(action, action.getShortcut()); … … 749 738 * @since 12639 (as a replacement to {@code Main.unregisterActionShortcut}) 750 739 */ 751 @SuppressWarnings("deprecation")752 740 public static void unregisterActionShortcut(Action action, Shortcut shortcut) { 753 741 unregisterShortcut(shortcut); … … 761 749 * @since 12639 (as a replacement to {@code Main.getRegisteredActionShortcut}) 762 750 */ 763 @SuppressWarnings("deprecation")764 751 public static Action getRegisteredActionShortcut(Shortcut shortcut) { 765 752 KeyStroke keyStroke = shortcut.getKeyStroke(); … … 845 832 * @param argArray Command-line arguments 846 833 */ 847 @SuppressWarnings("deprecation")848 834 public static void main(final String[] argArray) { 849 835 I18n.init(); -
trunk/src/org/openstreetmap/josm/gui/MainPanel.java
r13173 r13174 44 44 * @param showMap If the map should be displayed. 45 45 */ 46 @SuppressWarnings("deprecation")47 46 protected synchronized void updateContent(boolean showMap) { 48 47 GuiHelper.assertCallFromEdt(); … … 84 83 } 85 84 86 @SuppressWarnings("deprecation")87 85 private MapFrame createNewMapFrame() { 88 86 MapFrame mapFrame = new MapFrame(null); -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java
r13173 r13174 245 245 */ 246 246 @Override 247 @SuppressWarnings("deprecation")248 247 public void configureEditor(ComboBoxEditor cbEditor, Object item) { 249 248 if (item == null) { … … 262 261 */ 263 262 @Override 264 @SuppressWarnings("deprecation")265 263 public void setSelectedItem(Object item) { 266 264 if (item == null) { -
trunk/src/org/openstreetmap/josm/gui/util/AdvancedKeyPressDetector.java
r13173 r13174 147 147 148 148 @Override 149 @SuppressWarnings("deprecation")150 149 public void eventDispatched(AWTEvent e) { 151 150 if (!(e instanceof KeyEvent)) {
Note:
See TracChangeset
for help on using the changeset viewer.