View Javadoc
1   package com.github.sevntu.checkstyle.checks.coding;
2   public class InputNoNullForCollectionReturnCheck3
3   {
4       public Object[] scrollTo(String revision) throws Throwable {
5           Object[] record = null;
6   
7           if (true) {
8               if (true) {
9                   record = new Object[10];
10                  for (int index = 0; index < record.length; ++index) {
11                      if (true) {
12                          record[index] = "";
13                          return null; //!!
14                      } else {
15                          record[index] = "";
16                          return null; //!!
17                      }
18                  }
19              }
20              record = new Object[6];
21          } else {
22              record = new Object[6];
23          }
24  
25          return record; 
26      }
27      
28      public String[] method2()
29      {
30          String[] result = null;
31          if (true) {
32              result = new String[] {  };
33          } else {
34              result = new String[] {  };
35          }
36          return result;
37      }
38  }