View Javadoc
1   /*
2   ArrayTypeStyle
3   javaStyle = (default)true
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.arraytypestyle;
9   
10  public class InputArrayTypeStyleNestedGenerics {
11      protected Pair<Integer, Object>[] values1;
12      protected Pair<Integer, Pair<String, Object>[]>[] values2;
13      protected Pair<Integer, Pair<String, Pair<String, Object>>[]>[] values3a;
14      protected Pair<
15          Integer,
16          Pair<
17              String,
18              Pair<String, Object>
19          >[]
20      >[] values3b;
21  
22      protected Pair<Integer, Object> values1b[]; // violation
23      protected Pair<Integer, Pair<String, Object>[]> values2b[]; // violation
24      protected Pair<Integer, Pair<String, Pair<String, Object>>[]> values3ab[]; // violation
25      protected Pair<
26          Integer,
27          Pair<
28              String,
29              Pair<String, Object>
30          >[]
31      > values3bb[]; // violation
32  
33      protected static class Pair<L, R> {
34          protected L key;
35          protected R value;
36      }
37  }