01: package com.puppycrawl.tools.checkstyle;
02:
03: import java.util.Collection;
04: import java.util.Map;
05:
06: public class InputGenerics<A, B extends Collection<?>, C extends D & E, F extends Collection<? extends InputGenerics[]>> {
07: }
08:
09: //No whitespace after commas
10: class BadCommas<A, B, C extends Map<A, String>> {
11: private java.util.Hashtable<Integer, D> p = new java.util.Hashtable<Integer, D>();
12: }
13:
14: class Wildcard {
15: public static void foo(Collection<? extends Wildcard[]> collection) {
16: // A statement is important in this method to flush out any
17: // issues with parsing the wildcard in the signature
18: collection.size();
19: }
20: }
21:
22: // we need these interfaces for generics
23: interface D {
24: }
25:
26: interface E {
27: }
|