I have Test class which has written purely with kotlin
in the library project.
class Test{
@Deprecated(message = "Use other function")
fun testFunction(id: String): Test {
this.testId = id
return this
}
}
I've deprecated testFunction() with Deprecated
annotation. Btw Deprecated
class is under the kotlin package. When i test this deprecated function in kotlin project works as expected(ide shows deprecated warning and strikethrough)
Example: Test(). testFunction("test")
But in the java project it doesn't show warning or strikethrough to function bye ide. When I open the declaration of deprecated function it's like below
@Deprecated(
message = "Use other function"
)
@NotNull
public final Test testFunction(@NotNull String var1) {
Intrinsics.checkParameterIsNotNull(var1, "id");
this.testId = var1;
return this;
}
any help would be appreciated