I\'m trying to use a java.lang.function.Function in my java 8 code base, but i keep getting the following error in Intellij.
java.lang.function.Function
Usage of API
I just fixed it as follows:
Right click the project -> Open Module Settings -> Modules -> Sources -> 8 or higher
And then
If still encounter the error and using maven, you have to add the build configuration in your pom.xml:
pom.xml
org.apache.maven.plugins maven-compiler-plugin 1.8 1.8