summaryrefslogtreecommitdiff
path: root/src/main/java/au/id/zancanaro/javacheck/state
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@zancanaro.id.au>2015-07-06 22:46:02 +1000
committerCarlo Zancanaro <carlo@zancanaro.id.au>2015-07-06 22:46:02 +1000
commita7b074875f241d98877de51a93717d56cf2d19e4 (patch)
tree7b5397d3955cbe6bc6a6a2669f9191b657e48591 /src/main/java/au/id/zancanaro/javacheck/state
parent2348f721ba7475b65afeefb108012c564e5653ce (diff)
Fix the warnings from the previous commit
Diffstat (limited to 'src/main/java/au/id/zancanaro/javacheck/state')
-rw-r--r--src/main/java/au/id/zancanaro/javacheck/state/CommandListGenerator.java2
-rw-r--r--src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/au/id/zancanaro/javacheck/state/CommandListGenerator.java b/src/main/java/au/id/zancanaro/javacheck/state/CommandListGenerator.java
index 0eb1793..0aa693d 100644
--- a/src/main/java/au/id/zancanaro/javacheck/state/CommandListGenerator.java
+++ b/src/main/java/au/id/zancanaro/javacheck/state/CommandListGenerator.java
@@ -45,7 +45,7 @@ public class CommandListGenerator<S> implements Generator<CommandList<S>> {
public ShrinkTree<CommandList<S>> generate(Random random, int size) {
int count = random.nextInt(size);
@SuppressWarnings("unchecked")
- ShrinkTree<GeneratedCommand<S, ?, ?>>[] commandTrees = (ShrinkTree<GeneratedCommand<S, ?, ?>>[]) new ShrinkTree[count];
+ ShrinkTree<GeneratedCommand<S, ?, ?>>[] commandTrees = (ShrinkTree<GeneratedCommand<S, ?, ?>>[]) new ShrinkTree<?>[count];
S state = initialState;
for (int i = 0; i < count; ++i) {
commandTrees[i] = commandGenerator(i, state).generate(random, size);
diff --git a/src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java b/src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java
index 85f6fdd..6da9bf2 100644
--- a/src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java
+++ b/src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java
@@ -28,7 +28,7 @@ public class GeneratedCommand<S, A, R> {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
- GeneratedCommand that = (GeneratedCommand) o;
+ GeneratedCommand<?,?,?> that = (GeneratedCommand<?,?,?>) o;
return !(args != null ? !args.equals(that.args) : that.args != null)
&& !(command != null ? !command.equals(that.command) : that.command != null);