Skip to content

Commit

Permalink
IntelliJ wrong Inspection level (#17) (#18)
Browse files Browse the repository at this point in the history
- IntelliJ wrong Inspection level
- update image
  • Loading branch information
nename0 authored Mar 26, 2020
1 parent 49a9b83 commit ed36f18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ public class com.example.JabelExample
#### How to avoid using Java 9+ APIs in IntelliJ IDEA
If you set `--release=8` flag, the compiler will report usages of APIs that were not in Java 8 (e.g. `StackWalker`). But if you wish to see such usages while editing the code, you can make IDEA highlight them for you:

* Open Preferences
* Choose "Editor -> Inspection"
* On the bottom right click on the head with the hat
* Click on "Configure inspections"
* Find "Usages of API which isn't available at the configured language level"
* Click "Higher than", and select "9 - Modules, private method in interfaces etc" from dropdown
* Click "Higher than", and select "8 - Lambdas, type annotations etc." from dropdown

![IntelliJ IDEA Language Level Inspection](docs/images/idea-setting-language-level-inspection.png)
Binary file modified docs/images/idea-setting-language-level-inspection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ed36f18

Please sign in to comment.