Skip to content
Permalink
Browse files

deprecate unused method

  • Loading branch information
bobjacobsen committed Apr 24, 2019
1 parent 0c630be commit e8cf837cf6ca14f01bae01d2ce75770dc277af89
Showing with 8 additions and 23 deletions.
  1. +8 −17 java/src/jmri/managers/AbstractManager.java
  2. +0 −6 java/src/jmri/managers/AbstractSensorManager.java
@@ -106,30 +106,21 @@ public void dispose() {
private ArrayList<E> cachedNamedBeanList = null;

/**
* Locate an instance based on a system name. Returns null if no instance
* already exists. This is intended to be used by concrete classes to
* implement their getBySystemName method. We can't call it that here
* because Java doesn't have polymorphic return types.
*
* @param systemName the system name
* @return requested NamedBean object or null if none exists
* Now obsolete. Used {@link getBeanBySystemName} instead.
* @deprecated 4.15.6
*/
@Deprecated // since 4.15.6
protected E getInstanceBySystemName(String systemName) {
return _tsys.get(systemName);
return getBeanBySystemName(systemName);
}

/**
* Locate an instance based on a user name. Returns null if no instance
* already exists. This is intended to be used by concrete classes to
* implement their getBySystemName method. We cant call it that here because
* Java doesn't have polymorphic return types.
*
* @param userName the user name
* @return requested E (NamedBean, i.e. Turnout) object or null if none exists
* Now obsolete. Used {@link getBeanByUserName} instead.
* @deprecated 4.15.6
*/
@Deprecated // since 4.15.6
protected E getInstanceByUserName(String userName) {
String normalizedUserName = NamedBean.normalizeUserName(userName);
return normalizedUserName != null ? _tuser.get(normalizedUserName) : null;
return getBeanByUserName(userName);
}

/** {@inheritDoc} */
@@ -94,12 +94,6 @@ String normalizeSystemName(@Nonnull String inputName) {
return inputName.toUpperCase().trim();
}

/** {@inheritDoc} */
@Override
protected Sensor getInstanceBySystemName(String systemName) {
return getBySystemName(systemName);
}

/** {@inheritDoc} */
@Override
public Sensor getByUserName(String key) {

0 comments on commit e8cf837

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