From 2056e6025a5fb8cb36890fd2ae9f5e54d91a26e0 Mon Sep 17 00:00:00 2001 From: hequan_waynaqua <1669738430@qq.com> Date: Mon, 28 Sep 2020 16:35:31 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/test/com/test/FoodTest.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 waynboot-generator/src/main/test/com/test/FoodTest.java diff --git a/waynboot-generator/src/main/test/com/test/FoodTest.java b/waynboot-generator/src/main/test/com/test/FoodTest.java new file mode 100644 index 0000000..7868d05 --- /dev/null +++ b/waynboot-generator/src/main/test/com/test/FoodTest.java @@ -0,0 +1,40 @@ +package com.test; + +public class FoodTest { + + class Food { + } + + class Fruit extends Food { + } + + class Apple extends Fruit { + } + + class Origin extends Fruit { + } + + class Plate { + private T item; + + public Plate(T t) { + item = t; + } + + public void set(T t) { + item = t; + } + + public T get() { + return item; + } + } + + public static void main(String[] args) { + new FoodTest().test(); + } + + public void test() { + Plate p = new Plate<>(new Apple()); + } +}