Committed by
Gerrit Code Review
Remove redundant type cast
Change-Id: I9bd51cc78bcb8fb4b475aac1e10dd54f901241e7
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -92,7 +92,7 @@ public class FakeIntentManager implements TestableIntentService { | ... | @@ -92,7 +92,7 @@ public class FakeIntentManager implements TestableIntentService { |
92 | // For the fake, we compile using a single level pass | 92 | // For the fake, we compile using a single level pass |
93 | List<Intent> installable = new ArrayList<>(); | 93 | List<Intent> installable = new ArrayList<>(); |
94 | for (Intent compiled : getCompiler(intent).compile(intent, null, null)) { | 94 | for (Intent compiled : getCompiler(intent).compile(intent, null, null)) { |
95 | - installable.add((Intent) compiled); | 95 | + installable.add(compiled); |
96 | } | 96 | } |
97 | executeInstallingPhase(intent, installable); | 97 | executeInstallingPhase(intent, installable); |
98 | 98 | ... | ... |
... | @@ -199,7 +199,7 @@ public class ObjectiveTracker implements ObjectiveTrackerService { | ... | @@ -199,7 +199,7 @@ public class ObjectiveTracker implements ObjectiveTrackerService { |
199 | if (resource instanceof Link) { | 199 | if (resource instanceof Link) { |
200 | intentsByLink.remove(linkKey((Link) resource), intentKey); | 200 | intentsByLink.remove(linkKey((Link) resource), intentKey); |
201 | } else if (resource instanceof ElementId) { | 201 | } else if (resource instanceof ElementId) { |
202 | - intentsByDevice.remove((ElementId) resource, intentKey); | 202 | + intentsByDevice.remove(resource, intentKey); |
203 | } | 203 | } |
204 | } | 204 | } |
205 | } | 205 | } | ... | ... |
-
Please register or login to post a comment