diff --git a/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java b/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java index 8ee32d985fb545d15fc144c64894599bbc4ee8ed..73f273c6a928ba8b8f6d7e3a8a6d417a8b59ed7f 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java +++ b/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java @@ -365,12 +365,12 @@ public class SnarkManager implements CompleteListener { /** * Migrate the old flat config file to the new config dir * containing the config file minus the per-torrent entries, - * the dht file, and 16 subdirs for per-torrent config files + * the dht file, and 64 subdirs for per-torrent config files * Caller must synch. * * @return the new config directory, non-null * @throws RuntimeException on creation fail - * @since 0.9.11 + * @since 0.9.15 */ private File migrateConfig(File oldFile) { File dir = new SecureDirectory(oldFile + CONFIG_DIR_SUFFIX); @@ -478,7 +478,7 @@ public class SnarkManager implements CompleteListener { /** * The config for a torrent * @return non-null, possibly empty - * @since 0.9.11 + * @since 0.9.15 */ private Properties getConfig(Snark snark) { return getConfig(snark.getInfoHash()); @@ -488,7 +488,7 @@ public class SnarkManager implements CompleteListener { * The config for a torrent * @param ih 20-byte infohash * @return non-null, possibly empty - * @since 0.9.11 + * @since 0.9.15 */ private Properties getConfig(byte[] ih) { Properties rv = new OrderedProperties(); @@ -505,7 +505,7 @@ public class SnarkManager implements CompleteListener { * The config file for a torrent * @param confDir the config directory * @param ih 20-byte infohash - * @since 0.9.11 + * @since 0.9.15 */ private static File configFile(File confDir, byte[] ih) { String hex = I2PSnarkUtil.toHex(ih); @@ -1507,7 +1507,7 @@ public class SnarkManager implements CompleteListener { /** * Get the base location for a torrent from the config file. * @return File or null, doesn't necessarily exist - * @since 0.9.11 + * @since 0.9.15 */ private File getSavedBaseFile(byte[] ih) { Properties config = getConfig(ih); diff --git a/apps/i2psnark/java/src/org/klomp/snark/Storage.java b/apps/i2psnark/java/src/org/klomp/snark/Storage.java index 04b9f7c11453f7f6f5e165732f497371ab654104..682d6f700cc9254ac78e5374e3ae579ef53d8487 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/Storage.java +++ b/apps/i2psnark/java/src/org/klomp/snark/Storage.java @@ -744,7 +744,7 @@ public class Storage /** * The base file or directory. * @return the File - * @since 0.9.11 + * @since 0.9.15 */ public File getBase() { return _base; @@ -753,7 +753,7 @@ public class Storage /** * Does not include directories. Unsorted. * @return a new List - * @since 0.9.11 + * @since 0.9.15 */ public List<File> getFiles() { List<File> rv = new ArrayList<File>(_torrentFiles.size()); @@ -767,8 +767,8 @@ public class Storage * Includes the base for a multi-file torrent. * Sorted bottom-up for easy deletion. * Slow. Use for deletion only. - * @since 0.9.11 * @return a new Set or null for a single-file torrent + * @since 0.9.15 */ public SortedSet<File> getDirectories() { if (!_base.isDirectory()) diff --git a/core/java/src/net/i2p/crypto/SigUtil.java b/core/java/src/net/i2p/crypto/SigUtil.java index cbf330ccb49507df3b6e3e1332a82ace95b34dba..09cc3ed781b213980cb2bb804d7d171b67bd2c73 100644 --- a/core/java/src/net/i2p/crypto/SigUtil.java +++ b/core/java/src/net/i2p/crypto/SigUtil.java @@ -212,6 +212,7 @@ public class SigUtil { /** * @return JAVA EdDSA public key! + * @since 0.9.15 */ public static EdDSAPublicKey toJavaEdDSAKey(SigningPublicKey pk) throws GeneralSecurityException { @@ -230,6 +231,7 @@ public class SigUtil { /** * @return JAVA EdDSA private key! + * @since 0.9.15 */ public static EdDSAPrivateKey toJavaEdDSAKey(SigningPrivateKey pk) throws GeneralSecurityException { @@ -246,6 +248,9 @@ public class SigUtil { return rv; } + /** + * @since 0.9.15 + */ private static EdDSAPublicKey cvtToJavaEdDSAKey(SigningPublicKey pk) throws GeneralSecurityException { try { @@ -256,6 +261,9 @@ public class SigUtil { } } + /** + * @since 0.9.15 + */ private static EdDSAPrivateKey cvtToJavaEdDSAKey(SigningPrivateKey pk) throws GeneralSecurityException { try { @@ -266,11 +274,17 @@ public class SigUtil { } } + /** + * @since 0.9.15 + */ public static SigningPublicKey fromJavaKey(EdDSAPublicKey pk, SigType type) throws GeneralSecurityException { return new SigningPublicKey(type, pk.getAbyte()); } + /** + * @since 0.9.15 + */ public static SigningPrivateKey fromJavaKey(EdDSAPrivateKey pk, SigType type) throws GeneralSecurityException { return new SigningPrivateKey(type, pk.getSeed());