Changeset 5009 in josm
- Timestamp:
- 2012-02-20T22:50:09+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControl.java
r4861 r5009 7 7 /** 8 8 * Manager class for remote control operations. 9 *10 * To allow API there is a @see getVersion() method.11 9 * 12 10 * IMPORTANT! increment the minor version on compatible API extensions … … 20 18 */ 21 19 public static final BooleanProperty PROP_REMOTECONTROL_ENABLED = new BooleanProperty("remotecontrol.enabled", false); 22 23 /** API version24 * IMPORTANT! update the version number on API changes.25 */26 static final int apiMajorVersion = 1;27 static final int apiMinorVersion = 0;28 20 29 21 /** … … 43 35 * 44 36 * @return array of integer version numbers: 45 * apiMajorVersion, apiMinorVersion, protocolMajorVersion, protocolMajorVersion 37 * apiMajorVersion (obsolete), apiMinorVersion (obsolete), protocolMajorVersion, protocolMajorVersion 46 38 */ 39 @Deprecated 47 40 public int[] getVersion() 48 41 { 49 int versions[] = { apiMajorVersion, apiMinorVersion, protocolMajorVersion, protocolMajorVersion};42 int versions[] = {1, 0, protocolMajorVersion, protocolMajorVersion}; 50 43 return versions; 51 44 }
Note:
See TracChangeset
for help on using the changeset viewer.