Kotlin suppress ‘condition is always true’
In Kotlin, use ConstantConditionIfto ignore this warning : @Suppress(“ConstantConditionIf”) if(ANDROID_IS_AWESOME) { fml() }
In Kotlin, use ConstantConditionIfto ignore this warning : @Suppress(“ConstantConditionIf”) if(ANDROID_IS_AWESOME) { fml() }
From Comparable.compareTo: @throws NullPointerException if the specified object is null So IntelliJ knows, that the object should not be null and adds a @NotNull annotation automatically: IntelliJ IDEA will look carefully at SDK and libraries bytecode and will infer these annotations automatically so that they can later be used to analyze source code to spot … Read more
There are two separate warnings. One says the field was never assigned a value, which is the one you have disabled. The other says the field was never used, which is the warning you are getting. Add Inject to settings -> editor -> inspections -> java -> declaration redundancy -> unused declarations -> entry points … Read more
It’s the last selected DOM node index. Chrome assigns an index to each DOM node you select. So $0 will always point to the last node you selected, while $1 will point to the node you selected before that. Think of it like a stack of most recently selected nodes. As an example, consider the … Read more
Just use Analyze | Inspect Code with appropriate inspection enabled (Unused declaration under Declaration redundancy group). Using IntelliJ 11 CE you can now “Analyze | Run Inspection by Name … | Unused declaration”