1.美图 2.背景 因为做flink流处理,然后里面处理每条数据的时候使用了instanceof来判断类型,因为最后性能不好,想看看是不是这个引起的。 3.案例 3.1 案例1 public class Test{ public static void main(String[] args