Sho SHIMIZU
Committed by Gerrit Code Review

Remove redundant type cast

Change-Id: I9bd51cc78bcb8fb4b475aac1e10dd54f901241e7
......@@ -92,7 +92,7 @@ public class FakeIntentManager implements TestableIntentService {
// For the fake, we compile using a single level pass
List<Intent> installable = new ArrayList<>();
for (Intent compiled : getCompiler(intent).compile(intent, null, null)) {
installable.add((Intent) compiled);
installable.add(compiled);
}
executeInstallingPhase(intent, installable);
......
......@@ -199,7 +199,7 @@ public class ObjectiveTracker implements ObjectiveTrackerService {
if (resource instanceof Link) {
intentsByLink.remove(linkKey((Link) resource), intentKey);
} else if (resource instanceof ElementId) {
intentsByDevice.remove((ElementId) resource, intentKey);
intentsByDevice.remove(resource, intentKey);
}
}
}
......