Skip to content

Fix deprecated Locale and Thread API usage warnings in sqflite_android#509

Closed
mhosseini-dev wants to merge 2 commits into
Baseflow:developfrom
mhosseini-dev:develop
Closed

Fix deprecated Locale and Thread API usage warnings in sqflite_android#509
mhosseini-dev wants to merge 2 commits into
Baseflow:developfrom
mhosseini-dev:develop

Conversation

@mhosseini-dev

Copy link
Copy Markdown

This PR resolves Java deprecation warnings caused by outdated API usage in the sqflite_android package.

Issues Fixed

  • Replaced deprecated Locale(String, String, String) constructor usage.
  • Removed deprecated Thread.getId() usage.
  • Ensured compatibility with newer Android SDK / Java versions.

Why

Recent Android / Java versions mark:

  • Locale(String, String, String) as deprecated.
  • Thread.getId() as deprecated.

These warnings were appearing during Android builds and could potentially cause stricter compilation issues in future SDK versions.

Result

  • Clean build without deprecation warnings.
  • Improved forward compatibility with newer Android toolchains.
  • No behavioral changes introduced.

@rickdijk

Copy link
Copy Markdown
Contributor

Warnings come from dependency sqflite_android, not this repo. Fixing them means bumping sqflite (or an upstream fix), not silencing lint in the example app.
-Xlint:-deprecation masks every deprecation in the example build, including ones you might want to see.

Closing this PR for above reasons

@rickdijk rickdijk closed this Jul 21, 2026
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