gpt4 book ai didi

java - 显示导入包的名称,但被划掉

转载 作者:行者123 更新时间:2023-12-01 15:39:20 24 4
gpt4 key购买 nike

我将 xercesImpl.jar 导入到我的 Android 项目中。

当我使用它时它似乎能识别它(即列出所有可用的方法),但名称被划掉了。有谁知道这是为什么吗?

最佳答案

因为该类或其方法是@Deprecated .

The @Deprecated annotation indicates that the marked element is deprecated and should no longer be used. The compiler generates a warning whenever a program uses a method, class, or field with the @Deprecated annotation. When an element is deprecated, it should also be documented using the Javadoc @deprecated tag, as shown in the following example. The use of the "@" symbol in both Javadoc comments and in annotations is not coincidental—they are related conceptually. Also, note that the Javadoc tag starts with a lowercase "d" and the annotation starts with an uppercase "D".

http://docs.oracle.com/javase/tutorial/java/javaOO/annotations.html

关于java - 显示导入包的名称,但被划掉,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8333939/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com