WatchdogJavaInteropExtension

open class WatchdogJavaInteropExtension @Inject constructor(objectFactory: ObjectFactory)(source)

The Java-interop diagnostic group of WatchdogGradleExtension. The enabled off-switch disables every diagnostic of the group at once, regardless of the individual severities.

Constructors

Link copied to clipboard
@Inject
constructor(objectFactory: ObjectFactory)

Properties

Link copied to clipboard

Severity of COMPANION_API_WITHOUT_JVM_STATIC: companion functions Java reaches through the instance.

Link copied to clipboard

Severity of COMPANION_CONSTANT_WITHOUT_JVM_FIELD: companion constants Java reads through the instance.

Link copied to clipboard

Severity of DEFAULT_PARAMETERS_WITHOUT_JVM_OVERLOADS: defaults that don't exist for Java callers.

Link copied to clipboard
val enabled: Property<Boolean>

Whether the Java-interop diagnostics run at all. true by default. A library with a Kotlin-only audience sets it to false instead of disabling the six diagnostics one by one - the switch wins over the individual severities.

Link copied to clipboard

Severity of KOTLIN_ONLY_API_WITHOUT_JVM_SYNTHETIC: Kotlin-only shapes visible to Java.

Link copied to clipboard

Severity of MANGLED_JVM_NAME_PUBLIC_API: value classes mangling public JVM signatures.

Link copied to clipboard

Severity of TOP_LEVEL_API_WITHOUT_JVM_NAME: file facades leaking the file name to Java.