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

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

將標示的欄位如下:
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)

如需相關資訊,請參閱