Turn off an annoying Inspection, in Android Studio

前端 未结 1 1127
悲哀的现实
悲哀的现实 2021-01-13 02:26

I\'m working with Android Lollypop\'s JobScheduler. Android Studio is flagging this code:

JobScheduler js = (JobScheduler) getSystemService(Con         


        
1条回答
  •  广开言路
    2021-01-13 02:56

    General way to disable inspections you don't want in IntelliJ based IDEs:

    1. Navigate to the part of the code which shows warning caused by the inspection
    2. Hit Alt + Enter
    3. From that menu you can navigate to Edit inspection profile setting
    4. There you can either change the level of inspection (error/warning/info/...) or disable it entirely

    Alternatively you can find list of all inspections in Settings/Inspections.

    0 讨论(0)
提交回复
热议问题