警告信息-Comparing unrelated types

解决方案

使用equals 来比较不相关的类和接口

  

原文地址:https://www.cnblogs.com/QuestionsZhang/p/11893077.html