Closed PatrykMis closed 1 year ago
app/build.gradle.kts:209:52: 'getter for id: Long' is deprecated. Deprecated in Java
I've seen this before sometimes and I think it might be a bug in the linter. Thread.getId()
isn't deprecated in any version of Java.
@chenxiaolong You've pointed me the right direction searching for solution: https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/lang/Thread.html#getId()
@Deprecated(since="19")
public long getId()
Deprecated.
This method is not final and may be overridden to return a value that is not the thread ID. Use threadId() instead.
Ah, nice find! I only checked JDK 8 and 17.
I've fixed this in #297 by avoiding using the thread ID altogether.
I would correct the following deprecation warning, but it's out of my knowledge / I don't understand this: