避免使用已淘汰的 DumpNameSpace 建構子和欄位

此規則會標示是否使用類別中的建構子和兩個欄位 com.ibm.websphere.naming.DumpNameSpace 在 7.0版中已淘汰。 二進位應用程式掃描器不會標示這些欄位的參照,因為應用程式二進位檔僅包含已解析的整數值。

將標示的欄位如下:
com.ibm.websphere.naming.DumpNamespace.LONG
com.ibm.websphere.naming.DumpNamespace.SHORT

請改用下列欄位:
com.ibm.websphere.naming.DumpNamespace.ReportFormat.LONG
com.ibm.websphere.naming.DumpNamespace.ReportFormat.SHORT

將標示的建構子如下:
DumpNameSpace(java.io.PrintStream outStream, int reportFormat)

請改用下列建構子:
DumpNameSpace(java.io.PrintStream outStream, DumpNameSpace.ReportFormat reportFormat)

如需相關資訊,請參閱