What does "Usage of API documented as @since 1.6+ less..." mean?

Answered

The IDE shows an error with the following import,

I don't understand what this error says. Can somebody explain it to me?

1
2 comments

If you develop with Java 6 or later and your code needs to run on Java 5 or below, this inspection will report APIs that are not available in Java below version 6. If it's not applicable to your project, disable the inspection.

1
Avatar
Permanently deleted user

Project Settings > Modules > Language Level was set to 5.0. I change it to 8, and now the error is gone.

2

Please sign in to leave a comment.