We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Similar to #270 and #205 (both fixed apparently)
This happens with local vals (and vars) and using the when (and if) expressions in Kotlin.
val
var
when
if
Example:
return try { val clazz = classLoader.loadClass(className) as Class<out M> val constructor = clazz.getConstructor(Parameter::class.java) constructor.newInstance(arg) } catch (t: Throwable) { val message = when(t) { is ClassNotFoundException -> "Class ($className) not found" is NoSuchMethodException -> "Matching constructor not found." is InvocationTargetException -> "Constructor Invocation failed" else -> "Unknown Error while instantiating Class" } // Use single-argument log method instead of null/empty message Timber.e(t, message) throw ReflectionException(message, t) }
The text was updated successfully, but these errors were encountered:
+1 also seeing this false positive with a local val.
Sorry, something went wrong.
No branches or pull requests
Similar to #270 and #205 (both fixed apparently)
This happens with local
val
s (andvar
s) and using thewhen
(andif
) expressions in Kotlin.Example:
The text was updated successfully, but these errors were encountered: