如何在 Eclipse IDE 中使用 Intellij 注释? [英] how to use Intellij annotations in Eclipse IDE?

查看:30
本文介绍了如何在 Eclipse IDE 中使用 Intellij 注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 eclipse 中使用 jetbrains 注释 @notnull 和 @nullable ?我试图在网上搜索罐子,但找不到它们.任何帮助表示赞赏.

Is there a way we can use the jetbrains annotations @notnull and @nullable in eclipse ? i tried to search for jars online but could not find them. any help is appreciated.

推荐答案

来自 the JetBrains网站:

这些注释是专有的,包含在捆绑的 JAR 中.我们 JetBrains 建议在标准 Java SDK 中包含这些注释.该问题仍然悬而未决.

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.

目前注释是在 Apache 许可下分发的.还提供了源代码.

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

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

So, not only you can use them in Eclipse, you can do so without violating some commercial license. And they're even available in Maven.

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

However, you may want to read some related questions here on SO:

@Nullable/@NotNull 与 IntelliJ IDEA、Maven &JSR 305

这篇关于如何在 Eclipse IDE 中使用 Intellij 注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆