diff options
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/whitespacearound/InputWhitespaceAroundGenerics.java')
-rw-r--r-- | src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/whitespacearound/InputWhitespaceAroundGenerics.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/whitespacearound/InputWhitespaceAroundGenerics.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/whitespacearound/InputWhitespaceAroundGenerics.java new file mode 100644 index 000000000..8d4190188 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/whitespacearound/InputWhitespaceAroundGenerics.java @@ -0,0 +1,30 @@ +package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespacearound; + +import java.util.Collection; +import java.util.Map; + +public class InputWhitespaceAroundGenerics<A, B extends Collection<?>, C extends D&E, F extends Collection<? extends InputWhitespaceAroundGenerics[]>> +{ +} + +//No whitespace after commas +class BadCommas < A,B,C extends Map < A,String > > +{ + private java.util.Hashtable < Integer, D > p = + new java.util.Hashtable < Integer, D > (); +} + +class Wildcard +{ + public static void foo(Collection < ? extends Wildcard[] > collection) { + // A statement is important in this method to flush out any + // issues with parsing the wildcard in the signature + collection.size(); + } +} + +// we need these interfaces for generics +interface D { +} +interface E { +} |