View Javadoc
1   /*
2   GenericWhitespace
3   
4   
5   */
6   
7   package com.puppycrawl.tools.checkstyle.checks.whitespace.genericwhitespace;
8   import java.util.function.Supplier;
9   public class InputGenericWhitespaceMethodRef1
10  {
11    public static class SomeClass {
12      public static class Nested<V> {
13        private Nested() {
14        }
15      }
16    }
17  
18    public static class Nested2<V> {
19    }
20  
21    public <V> void methodName(V value) {
22      Supplier<?> t = Nested2<V>::new;
23      Supplier<SomeClass.Nested<V>> passes = SomeClass.Nested::new;
24      Supplier<SomeClass.Nested<V>> fails = SomeClass.Nested<V>::new;
25    }
26  }