此规则会标记是否使用了不推荐的 com.ibm.websphere.product.WASProduct 类。 V7.0 中已不推荐使用此类。
请改用 com.ibm.websphere.product.WASDirectory 中下列受支持的方法:
- public WASProductInfo getWASProductInfo(String id)
- public boolean isThisProductInstalled(String id)
- public WASProductInfo[] getWASProductInfoInstances()
- public String getWasLocation()
此外,您现在应当使用 WASDirectory 类中的下列方法来获取产品信息(名称、版本、构建级别和构建日期),而不是从旧的 WASProduct API (com.ibm.websphere.product.WASProduct) 中获取这些信息:
- com.ibm.websphere.product.WASDirectory.getName(String)
- com.ibm.websphere.product.WASDirectory.getVersion(String)
- com.ibm.websphere.product.WASDirectory.getBuildLevel(String)
- com.ibm.websphere.product.WASDirectory.getBuildDate(String)
有关更多信息,请参阅: