Skip to content

fix!: [Java] fix up #802: SupportedDevicesを移動 #991

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

Merged
merged 1 commit into from
Mar 8, 2025

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Feb 9, 2025

内容

TODOを解消する形。

BREAKING-CHANGE: GlobalInfo$SupportedDevicesSupportedDevices

関連 Issue

その他

@qryxip qryxip requested a review from Hiroshiba February 9, 2025 08:33
@qryxip qryxip force-pushed the pr/feat-java-mv-supporteddevices branch from ef311d1 to d4184f2 Compare February 9, 2025 08:35
@Hiroshiba
Copy link
Member

Hiroshiba commented Feb 9, 2025

これは心を鬼にして後回しで…!!!

@qryxip qryxip changed the title feat!: [Java] fix up #802: SupportedDevicesを移動 fix!: [Java] fix up #802: SupportedDevicesを移動 Feb 9, 2025
@qryxip
Copy link
Member Author

qryxip commented Feb 9, 2025

commit prefixを考えなおして、feat!からfix!にしました。SupportedDevicesGlobalInfoの下にあるのは今となってはおかしな状態のはずなので。

@qryxip qryxip mentioned this pull request Feb 9, 2025
69 tasks
@Hiroshiba Hiroshiba requested a review from Copilot March 8, 2025 20:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR moves the SupportedDevices class out of GlobalInfo, addressing TODOs and preparing for a Jackson migration in the future.

  • Created a dedicated SupportedDevices.java to hold device information for ONNX Runtime.
  • Updated usage references in onnxruntime.rs, InfoTest.java, and Onnxruntime.java to reflect the relocation.
  • Removed the nested SupportedDevices class from GlobalInfo to clean up redundant code.

Reviewed Changes

File Description
crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/SupportedDevices.java New file containing the SupportedDevices class with updated Javadoc.
crates/voicevox_core_java_api/src/onnxruntime.rs Updated JNI object instantiation to refer to the new SupportedDevices class.
crates/voicevox_core_java_api/lib/src/test/java/jp/hiroshiba/voicevoxcore/InfoTest.java Updated test references from GlobalInfo.SupportedDevices to SupportedDevices.
crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/blocking/Onnxruntime.java Updated import statement to reference the new SupportedDevices class.
crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/GlobalInfo.java Removed the deprecated nested SupportedDevices class and its related code.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

@Hiroshiba Hiroshiba requested a review from sevenc-nanashi March 8, 2025 20:07
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

たぶんLGTM!!

まあ0.16に入れても良さそう。

@qryxip qryxip merged commit de4c799 into VOICEVOX:main Mar 8, 2025
30 checks passed
@qryxip qryxip deleted the pr/feat-java-mv-supporteddevices branch March 8, 2025 21:33
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