eclipse - 如何在Eclipse IDE中使用Intellij注释?

标签 eclipse intellij-idea annotations

有没有办法在 Eclipse 中使用 jetbrains 注释 @notnull 和 @nullable ?我试图在网上搜索 jar 但找不到它们。如有任何帮助,我们将不胜感激。

最佳答案

来自the JetBrains website :

These annotations are proprietary ones and included in the bundled JAR. We at JetBrains suggested to include these annotations in the standard Java SDK. The issue is still pending.

Currently the annotations are distributed under the Apache license. The source code is supplied as well.

因此,您不仅可以在 Eclipse 中使用它们,而且可以在不违反某些商业许可的情况下使用它们。它们甚至可以在 Maven 中找到。 .

但是,您可能想在此处阅读一些相关问题:

@Nullable/@NotNull with IntelliJ IDEA, Maven & JSR 305

关于eclipse - 如何在Eclipse IDE中使用Intellij注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20549153/

相关文章:

java - Gradle Eclipse 依赖项

java - 如何创建包含未知枚举数组的 Java 注释?

php - 如何在 PHP5 对象中查找注解?

java - Spring MVC : Advanced annotation based mapping

java - IntelliJ IDEA : Tomcat 8. 5.13 和 9.0.0.M19 — 工件部署期间出错。有关详细信息,请参阅服务器日志

java - Grails/IntelliJ IDEA 在哪里存储 .class 文件?

java - Eclipse 自动生成项目结构

eclipse - 如何在 Eclipse e4 中打开另一个零件

java - 包不存在

java - Eclipse 工作区元数据日志崩溃错误