0

I've been trying to search how others tell Java compilator to show those warnings.

So far I noticed it (while making a plugin) that eclipse uses it and I know Java uses it for just about everything inside sun.misc.

I've been trying to find how can I do this for my own code but I can't find it. I was suspecting an annotation but, when reading the source code, I can't find any annotation that leads me to conclude it is an annotation that triggers it.

So, how to I show the "is not API" warning for the users of a library I do?

Here's an excerpt of code that makes the warning to pop up:

System.out.println(sun.misc.SharedSecrets.getJavaIOFileDescriptorAccess().get(new FileDescriptor()));

Sorry about it being incomplete. Did this help?

Bruno A
  • 11
  • 1
  • 1
    Include more details please What is this `is not API`? Please include real exceptions with real codes. – Alireza Mohamadi May 10 '16 at 08:25
  • 1
    Possible dup of https://stackoverflow.com/questions/25222811/access-restriction-the-type-application-is-not-api-restriction-on-required-l ? – sisyphus May 10 '16 at 08:26
  • Welcome to StackOverflow! Please take the [tour](http://stackoverflow.com/tour) and read [How do I ask a good question?](http://stackoverflow.com/help/how-to-ask). Then come back and edit your question accordingly. – Jan May 10 '16 at 08:26
  • @Jan did that change help? I don't really know what do you need in order to understand me. – Bruno A May 13 '16 at 07:59
  • @AlirezaMohamadi did that change help? I don't really know what do you need in order to understand me. – Bruno A May 27 '16 at 10:14

0 Answers0