Scala warnings, IntelliJ and compiler flags

前端 未结 3 1682
悲哀的现实
悲哀的现实 2021-02-20 04:26

I\'m currently giving the IntelliJ Scala plugin a spin and one thing is bugging me a wee-bit. I get 3 warnings when compiling.

Warning: scala: Recompiling 4 file         


        
3条回答
  •  失恋的感觉
    2021-02-20 04:48

    In IntelliJ 14:

    1. Bring up preferences Intellij IDEA > Preferences or cmd + ,
    2. Look up Scala Compiler. Alternatively, it's under Build, Execution, Deployment > Compiler > Scala Compiler
    3. Check the option for Deprecation warnings

    Rebuild your project!

    Screenshot of preferences to enable deprecation flag.

提交回复
热议问题