forked from I2P_Developers/i2p.i2p
lint redundant cast all over
This commit is contained in:
@ -317,7 +317,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl
|
||||
seeded = false;
|
||||
Arrays.fill(key, (byte) 0);
|
||||
Arrays.fill(counter, (byte) 0);
|
||||
byte[] seed = (byte[]) attributes.get(SEED);
|
||||
byte[] seed = attributes.get(SEED);
|
||||
if (seed != null)
|
||||
addRandomBytes(seed);
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public class EepGetNamingService extends DummyNamingService {
|
||||
|
||||
// lookup
|
||||
for (int i = 0; i < URLs.size(); i++) {
|
||||
String url = (String)URLs.get(i);
|
||||
String url = URLs.get(i);
|
||||
String key = fetchAddr(url, hostname);
|
||||
if (key != null) {
|
||||
_log.error("Success: " + url + hostname);
|
||||
|
@ -425,7 +425,7 @@ public class BlockFile {
|
||||
*/
|
||||
public BSkipList getIndex(String name, Serializer key, Serializer val) throws IOException {
|
||||
// added I2P
|
||||
BSkipList bsl = (BSkipList) openIndices.get(name);
|
||||
BSkipList bsl = openIndices.get(name);
|
||||
if (bsl != null)
|
||||
return bsl;
|
||||
|
||||
@ -465,7 +465,7 @@ public class BlockFile {
|
||||
* Added I2P
|
||||
*/
|
||||
public void closeIndex(String name) {
|
||||
BSkipList bsl = (BSkipList) openIndices.remove(name);
|
||||
BSkipList bsl = openIndices.remove(name);
|
||||
if (bsl != null)
|
||||
bsl.flush();
|
||||
}
|
||||
|
Reference in New Issue
Block a user