forked from I2P_Developers/i2p.i2p
remove unnecessary casts (eclipse)
This commit is contained in:
@@ -125,7 +125,7 @@ public class Sha256Standalone extends BaseHashStandalone {
|
||||
this.h6 = md.h6;
|
||||
this.h7 = md.h7;
|
||||
this.count = md.count;
|
||||
this.buffer = (byte[]) md.buffer.clone();
|
||||
this.buffer = md.buffer.clone();
|
||||
}
|
||||
|
||||
// Class methods
|
||||
|
||||
@@ -77,7 +77,7 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl
|
||||
@Override
|
||||
public void seed(byte val[]) {
|
||||
Map props = new HashMap(1);
|
||||
props.put(SEED, (Object)val);
|
||||
props.put(SEED, val);
|
||||
init(props);
|
||||
//fillBlock();
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl
|
||||
|
||||
public void seed(byte val[]) {
|
||||
Map props = new HashMap(1);
|
||||
props.put(SEED, (Object)val);
|
||||
props.put(SEED, val);
|
||||
init(props);
|
||||
fillBlock();
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public class RandomEventStandalone extends EventObject
|
||||
this.poolNumber = poolNumber;
|
||||
if (data.length == 0 || data.length > 32)
|
||||
throw new IllegalArgumentException("random events take between 1 and 32 bytes of data");
|
||||
this.data = (byte[]) data.clone();
|
||||
this.data = data.clone();
|
||||
}
|
||||
|
||||
public byte getSourceNumber()
|
||||
|
||||
Reference in New Issue
Block a user