remove unnecessary casts (eclipse)

This commit is contained in:
zzz
2012-03-25 20:42:41 +00:00
parent ed13424913
commit 3e889d2747
59 changed files with 141 additions and 141 deletions

View File

@@ -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

View File

@@ -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();
}

View File

@@ -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();
}

View File

@@ -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()