pepperWorkflowInstance

pepperWorkflowInstance

我在一个类上运行IntelliJ的代码分析器(IntelliJ 11.1.4),并收到以下警告:



它提示的代码是:

List<String> targetDocumentIds = pepperWorkflowInstance.getTargetDocumentIds();

以供引用:
public class PepperWorkflowInstance<T extends PepperWorkflowInstanceData> implements Serializable {

   private List<String>            targetDocumentIds = new ArrayList<String>();
   ...
   public List<String> getTargetDocumentIds() {
      return targetDocumentIds;
   }
   ...
}

所以类型匹配...那为什么我需要“检查”作业?

最佳答案

确保pepperWorkflowInstance具有参数:

pepperWorkflowInstance = new PepperWorkflowInstance<SomeClass>();

参见IDEA-6254

关于java - 为什么要检查从一种类型到同一类型的分配?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13477640/

10-09 05:50