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 'Array brackets at illegal position'
23      protected Pair<Integer, Pair<String, Object>[]> values2b[];
24      // violation above 'Array brackets at illegal position'
25      protected Pair<Integer, Pair<String, Pair<String, Object>>[]> values3ab[];
26      // violation above 'Array brackets at illegal position'
27      protected Pair<
28          Integer,
29          Pair<
30              String,
31              Pair<String, Object>
32          >[]
33      > values3bb[]; // violation 'Array brackets at illegal position'
34  
35      protected static class Pair<L, R> {
36          protected L key;
37          protected R value;
38      }
39  }