Details
Description
An updated PMD flagged this bug (see output below).
This line:
index.remove(key, task);
should be:
index.remove(key, Tasks.id(task));
Code Warning GC org.apache.aurora.scheduler.storage.entities.IScheduledTask is incompatible with expected argument type String in org.apache.aurora.scheduler.storage.mem.MemTaskStore$SecondaryIndex.remove(IScheduledTask) Bug type GC_UNRELATED_TYPES (click for details) In class org.apache.aurora.scheduler.storage.mem.MemTaskStore$SecondaryIndex In method org.apache.aurora.scheduler.storage.mem.MemTaskStore$SecondaryIndex.remove(IScheduledTask) Actual type org.apache.aurora.scheduler.storage.entities.IScheduledTask Expected String Called method com.google.common.collect.Multimap.remove(Object, Object) Invoked on org.apache.aurora.scheduler.storage.mem.MemTaskStore$SecondaryIndex.index task passed as argument org.apache.aurora.scheduler.storage.entities.IScheduledTask.equals(Object) used to determine equality At MemTaskStore.java:[line 399]
Attachments
Issue Links
- blocks
-
AURORA-1306 Upgrade to gradle 2.4
- Resolved