1   package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespaceafter;
2   
3   import java.util.Collection;
4   import java.util.Map;
5   
6   public class InputWhitespaceAfterGenerics<A, B extends Collection<?>,
7          C extends D&E, F extends Collection<? extends InputWhitespaceAfterGenerics[]>>
8   {
9   }
10  
11  //No whitespace after commas
12  class BadCommas < A,B,C extends Map < A,String > >
13  {
14      private java.util.Hashtable < Integer, D > p =
15          new java.util.Hashtable < Integer, D > ();
16  }
17  
18  class Wildcard
19  {
20      public static void foo(Collection < ? extends Wildcard[] > collection) {
21          // A statement is important in this method to flush out any
22          // issues with parsing the wildcard in the signature
23          collection.size();
24      }
25  }
26  
27  // we need these interfaces for generics
28  interface D {
29  }
30  interface E {
31  }