为什么需要将对象类型变量声明为瞬态?

时间:2019-05-28 10:38:41

标签: spring

Component
public class CustomerConfiguration implements Serializable {

  private static final long serialVersionUID = 7193597488669071066L;

  @Id
  private String id;
  private  Object  customerInformation;
}

对于上面的代码SONARLINT给出建议,您应该将customerInformation声明为一个临时变量。但是,对于ID变量    很好。

0 个答案:

没有答案
相关问题