View by Classes

Findings - Overview

code-style IllegalType (Checkstyle)

Further info on the wiki.
Avoid using implementation types (i.e., HashSet); use the interface (i.e, Set) instead


import java.util.*;
public class Bar {

 // should be "private List list"
 private ArrayList list = new ArrayList();

 // should be "public Set getFoo()"
 public HashSet getFoo() {
  return new HashSet();
 }
}

Rationale: Helps reduce coupling on concrete classes. In addition abstract classes should be thought of a convenience base class implementations of interfaces and as such are not types themsleves.

9org.jcoderz.commons.tracing.MethodTracingInjector
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [186:13],
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [203:13],
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [272:13],
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [371:5],
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [403:5],
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [413:5],
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [542:14],
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [719:11],
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [740:11]
1org.jcoderz.guidelines.snippets.SampleSnippets
Declaring variables, return values or parameters of type 'java.util.ArrayList' is not allowed. [87:15]
1org.jcoderz.commons.tracing.ClassTracingInjector
Declaring variables, return values or parameters of type 'AbstractInsnNode' is not allowed. [152:9]