From f3dc0cbeb7ab47d4ede8a26ca8592cc6d3922d63 Mon Sep 17 00:00:00 2001 From: Till Schnell Date: Fri, 16 Apr 2021 19:34:49 +0200 Subject: [PATCH] Add diamond expression --- .../inferWildcards/TestClassWildcardsParamType.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/resources/inferWildcards/TestClassWildcardsParamType.java b/src/test/resources/inferWildcards/TestClassWildcardsParamType.java index 702440d7..95582410 100644 --- a/src/test/resources/inferWildcards/TestClassWildcardsParamType.java +++ b/src/test/resources/inferWildcards/TestClassWildcardsParamType.java @@ -11,13 +11,13 @@ public final class TestClassWildcardsParamType { } public static TestClassWildcardsParamType of(T1 first, T2 second) { - return new TestClassWildcardsParamType(first, second); + return new TestClassWildcardsParamType<>(first, second); } public static void main(String[] agrs) { TestClassWildcardsParamType, String> pair = TestClassWildcardsParamType.of(List.class, "hello"); - - //Outout of compiler + + //Output of compiler //TestClassWildcardsParamType, String> pair = TestClassWildcardsParamType.of(List.class, "hello"); } } \ No newline at end of file