Skip to content
New issue

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

Bump AGP to 8.0.0 #294

Merged
merged 4 commits into from
Apr 15, 2023
Merged

Bump AGP to 8.0.0 #294

merged 4 commits into from
Apr 15, 2023

Conversation

PatrykMis
Copy link
Contributor

I would correct the following deprecation warning, but it's out of my knowledge / I don't understand this:

app/build.gradle.kts:209:52: 'getter for id: Long' is deprecated. Deprecated in Java

@chenxiaolong
Copy link
Owner

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 chenxiaolong self-assigned this Apr 15, 2023
@chenxiaolong chenxiaolong merged commit 60dcafa into chenxiaolong:master Apr 15, 2023
@PatrykMis
Copy link
Contributor Author

@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.

@PatrykMis PatrykMis deleted the patch-230414 branch April 16, 2023 17:35
chenxiaolong added a commit that referenced this pull request Apr 17, 2023
The method was deprecated in JDK 19. For uniqueness of the name given to
ArchiveCommand.registerFormat(), we can just use the task name instead.
Two instances of the same task will never run concurrently.

Issue: #294

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong
Copy link
Owner

chenxiaolong commented Apr 17, 2023

Ah, nice find! I only checked JDK 8 and 17.

I've fixed this in #297 by avoiding using the thread ID altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants