jjzjj

WarningDemo

全部标签

java - 使用 -Xlint :unchecked for details 重新编译

在编译java程序时,我们得到“使用-Xlint重新编译:未检查详细信息”。为什么我们会收到此错误? 最佳答案 可能是因为您没有正确使用泛型。也许您将遗留代码与通用代码混合在一起。这是来自theofficialtrailontypeerasure的引述:Note:WarningDemo.javausesuncheckedorunsafeoperations.Note:Recompilewith-Xlint:uncheckedfordetails.ThiscanhappenwhenusinganolderAPIthatoperates