user2707760
user2707760

Reputation: 129

how to use Intellij annotations in Eclipse IDE?

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.

Upvotes: 6

Views: 3042

Answers (1)

fvu
fvu

Reputation: 32953

From 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.

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.

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

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

Upvotes: 9

Related Questions