Skip to content
Permalink
Browse files

remove deprecated methods in json package

  • Loading branch information...
bobjacobsen committed Jul 12, 2019
1 parent 3554864 commit f4959da972d0177128ef78fac16bab0d6cacdb69
Showing with 0 additions and 23 deletions.
  1. +0 −12 java/src/jmri/jmris/json/JsonServer.java
  2. +0 −11 java/src/jmri/jmris/json/JsonServerPreferences.java
@@ -37,18 +37,6 @@
private static final Logger log = LoggerFactory.getLogger(JsonServer.class);
private ObjectMapper mapper;

/**
* Get the default JsonServer, creating it if needed.
*
* @return the default JsonServer instance
* @deprecated since 4.9.4; use
* {@link jmri.InstanceManager#getDefault(java.lang.Class)} instead
*/
@Deprecated
public static JsonServer getDefault() {
return InstanceManager.getDefault(JsonServer.class);
}

/**
* Create a new server using the default port.
*/
@@ -40,17 +40,6 @@
private int asLoadedPort = DEFAULT_PORT;
private final static Logger log = LoggerFactory.getLogger(JsonServerPreferences.class);

/**
*
* @return the default instance of this class
* @deprecated since 4.9.4; use
* {@link jmri.InstanceManager#getDefault(java.lang.Class)} instead
*/
@Deprecated
public static JsonServerPreferences getDefault() {
return InstanceManager.getDefault(JsonServerPreferences.class);
}

public JsonServerPreferences(String fileName) {
boolean migrate = false;
Preferences sharedPreferences = ProfileUtils.getPreferences(ProfileManager.getDefault().getActiveProfile(), this.getClass(), true);

0 comments on commit f4959da

Please sign in to comment.
You can’t perform that action at this time.