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

查看:250
本文介绍了如何在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.

推荐答案

来自 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 with IntelliJ IDEA,Maven& JSR 305

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

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