Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3679232
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:26:06+00:00 2026-05-19T03:26:06+00:00

I never encountered the case and now I’m wondering: what happens when/if two different

  • 0

I never encountered the case and now I’m wondering: what happens when/if two different annotations have the same name? (I’ll give here an example using an annotation provided by IntelliJ but the question is really generic so I’m not tagging it ‘IntelliJ’)

For example the first sentence here:

http://youtrack.jetbrains.net/issue/IDEABKL-4959

says:

Many libraries have their own @NotNull
annotations (intellij,
hibernate-validation, ..).

What happens exactly if I wanted to use, say, both IntelliJ’s @NotNull and Hibernate’s @NotNull? (once again @NotNull is just an example where I happen to find a clash)

Are they incompatible? If they’re incompatible, is it for the whole project?

This is something I’m really not familiar with…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:26:07+00:00Added an answer on May 19, 2026 at 3:26 am

    There is no ambiguity, because the annotation’s package name will be specified in an import or on the annotation itself.

    JSR-305 addresses your specific example. It seeks a standard set of annotations, and refers specifically to FindBugs’ and IntelliJ’s nullability annotations.

    Nullness annotations (e.g., @NonNull
    and @CheckForNull). Both FindBugs and
    IntelliJ already support their own
    versions of nullness annotations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can honestly say I've never encountered this one before: I have two .ascx
Here's one I've never encountered before. Is it possible to make a font scale
OK, for those who have never encountered the term, a quine is a self-replicating
While using ' CASE ' I encountered with problem that I'D never heard. The
I have a strange problem that I've never encountered before, I have data in
I am encountering a problem which I have never encountered before. I am working
I'm having a strange issue that I've never encountered before. I have a partial
I have never encountered an error like this before. I was using prepared statements
I have never encountered this sort of problem in Java before. All this code
This problem is bizarre. I have never encountered anything like it before. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.