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

廃止メソッド(getCount)および未使用プロパティ(ImageInfo#ZipIndex)削除 #24

Conversation

happynow
Copy link

@happynow happynow commented Mar 3, 2024

Remove deprecated ZipArchiveInputStream#getCount method and unused ImageInfo#ZipIndex property.

廃止された ZipArchiveInputStream#getCount メソッドの警告を解消しました。
修正前のプログラムでは getCount の戻り値は最終的に ImageInfo のコンストラクタに渡され、ZipIndexプロパティに設定されます。
しかし、このプロパティは、ソースコードでもテンプレートでも使われていません。
リファクタリングも兼ね、getCountの呼び出しとZipIndexプロパティを削除しました。

(参考) 動作確認の手順

1. Epub3Writer.java の645行目

入力テキストファイル例

画像物語
にんじん
[#画像(test.png)入る]

むかしむかし

表紙: 10 行目までの [先頭の挿絵]
変換前確認: ON
(注意)変換前確認画面で縮尺を変えるなどして図形を編集する必要があります

2. ImageInfoReader.java の235行目

jpgやpngの画像を格納したフォルダを圧縮してドラッグ&ドロップ

Remove deprecated ZipArchiveInputStream#getCount method and unused ImageInfo#ZipIndex property.
@kyukyunyorituryo kyukyunyorituryo merged commit 5715aed into kyukyunyorituryo:master Mar 3, 2024
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