mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 19:32:56 +00:00
deprecate ZipFileComment
This commit is contained in:
1 parent
bfc04178a6
commit
021067dab9
2 files changed
+6
-3
No files matched your search
@@ -23,7 +23,7 @@ import net.i2p.data.SigningPublicKey;
|
||||
import net.i2p.util.Log;
|
||||
import net.i2p.util.SecureFileOutputStream;
|
||||
import net.i2p.util.VersionComparator;
|
||||
import net.i2p.util.ZipFileComment;
|
||||
//import net.i2p.util.ZipFileComment;
|
||||
|
||||
/**
|
||||
* <p>Handles DSA signing and verification of update files.
|
||||
@@ -611,9 +611,10 @@ riCe6OlAEiNpcc6mMyIYYWFICbrDFTrDR3wXqwc/Jkcx6L5VVWoagpSzbo3yGhc=
|
||||
*
|
||||
* @since 0.8.8
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
private boolean verifyVersionMatch(File signedFile) {
|
||||
try {
|
||||
String zipComment = ZipFileComment.getComment(signedFile, VERSION_BYTES, HEADER_BYTES);
|
||||
String zipComment = net.i2p.util.ZipFileComment.getComment(signedFile, VERSION_BYTES, HEADER_BYTES);
|
||||
return zipComment.equals(_newVersion);
|
||||
} catch (IOException ioe) {}
|
||||
return false;
|
||||
|
||||
@@ -19,8 +19,10 @@ import net.i2p.data.DataHelper;
|
||||
* http://www.flattermann.net/2009/01/read-a-zip-file-comment-with-java/
|
||||
* Beerware.
|
||||
*
|
||||
* since 0.8.8
|
||||
* @deprecated scheduled for removal late 2017, not for external use
|
||||
* @since 0.8.8
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class ZipFileComment {
|
||||
|
||||
private static final int BLOCK_LEN = 22;
|
||||
|
||||
Reference in new issue
Block a user