此規則會標示使用的 com.ibm.websphere.product.WASProduct 類別。 這個類別在 7.0 版中已淘汰。
請改用 com.ibm.websphere.product.WASDirectory 中下列受支援的方法:
- public WASProductInfo getWASProductInfo(String id)
- public boolean isThisProductInstalled(String id)
- public WASProductInfo[] getWASProductInfoInstances()
- public String getWasLocation()
此外,請勿從舊的 WASProduct API (com.ibm.websphere.product.WASProduct) 取得產品資訊(名稱、版本、建置層次和建置日期),現在應該使用 WASDirectory 類別中的下列方法來取得該資訊:
- 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)
如需相關資訊,請參閱: