Changeset 30737 in osm for applications/editors/josm/plugins/geochat/src
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/geochat/src/geochat
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/geochat/src/geochat/ChatPaneManager.java
r29851 r30737 30 30 this.tabs = tabs; 31 31 this.collapsed = panel.isDialogInCollapsedView(); 32 chatPanes = new HashMap< String, ChatPane>();32 chatPanes = new HashMap<>(); 33 33 createChatPane(null); 34 34 tabs.addChangeListener(new ChangeListener() { … … 196 196 197 197 public void closePrivateChatPanes() { 198 List<String> entries = new ArrayList< String>(chatPanes.keySet());198 List<String> entries = new ArrayList<>(chatPanes.keySet()); 199 199 for( String user : entries ) 200 200 if( !user.equals(PUBLIC_PANE) ) -
applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java
r30513 r30737 43 43 userId = 0; 44 44 userName = null; 45 listeners = new HashSet< ChatServerConnectionListener>();45 listeners = new HashSet<>(); 46 46 requestThread = new LogRequest(); 47 47 new Thread(requestThread).start(); … … 398 398 399 399 private List<ChatMessage> parseMessages( JsonArray messages, boolean priv ) { 400 List<ChatMessage> result = new ArrayList< ChatMessage>();400 List<ChatMessage> result = new ArrayList<>(); 401 401 for( int i = 0; i < messages.size(); i++ ) { 402 402 try { … … 423 423 424 424 private Map<String, LatLon> parseUsers( JsonArray users ) { 425 Map<String, LatLon> result = new HashMap< String, LatLon>();425 Map<String, LatLon> result = new HashMap<>(); 426 426 for( int i = 0; i < users.size(); i++ ) { 427 427 try { -
applications/editors/josm/plugins/geochat/src/geochat/GeoChatPanel.java
r30513 r30737 65 65 createLayout(gcPanel, false, null); 66 66 67 users = new TreeMap< String, LatLon>();67 users = new TreeMap<>(); 68 68 // Start threads 69 69 connection = ChatServerConnection.getInstance();
Note:
See TracChangeset
for help on using the changeset viewer.