@@ -55,7 +55,7 @@ public String toString() {
55
55
*/
56
56
public static Class <?> getSenderClass (Object sender ) {
57
57
if (sender == null )
58
- throw new IllegalArgumentException ("sender cannot be NUll ." );
58
+ throw new IllegalArgumentException ("sender cannot be null ." );
59
59
else if (sender instanceof Class <?>)
60
60
return (Class <?>) sender ;
61
61
else
@@ -75,21 +75,21 @@ else if (sender instanceof Class<?>)
75
75
*/
76
76
public static String getReportName (Object sender , ReportType type ) {
77
77
if (sender == null )
78
- throw new IllegalArgumentException ("sender cannot be NUll ." );
78
+ throw new IllegalArgumentException ("sender cannot be null ." );
79
79
return getReportName (getSenderClass (sender ), type );
80
80
}
81
81
82
82
/**
83
83
* Retrieve the full canonical name of a given report type.
84
84
* <p>
85
85
* This is in the format <i>canonical_name_of_class#report_type</i>
86
- * @param clazz - the sender class.
86
+ * @param sender - the sender class.
87
87
* @param type - the report instance.
88
88
* @return The full canonical name.
89
89
*/
90
90
private static String getReportName (Class <?> sender , ReportType type ) {
91
91
if (sender == null )
92
- throw new IllegalArgumentException ("sender cannot be NUll ." );
92
+ throw new IllegalArgumentException ("sender cannot be null ." );
93
93
94
94
// Whether or not we need to retrieve the report name again
95
95
if (type .reportName == null ) {
@@ -138,11 +138,10 @@ public static ReportType[] getReports(Class<?> sender) {
138
138
* @return All associated report fields.
139
139
*/
140
140
private static List <Field > getReportFields (Class <?> clazz ) {
141
- return FuzzyReflection .fromClass (clazz ).getFieldList (
142
- FuzzyFieldContract .newBuilder ().
143
- requireModifier (Modifier .STATIC ).
144
- typeDerivedOf (ReportType .class ).
145
- build ()
146
- );
141
+ return FuzzyReflection .fromClass (clazz , true )
142
+ .getFieldList (FuzzyFieldContract .newBuilder ()
143
+ .requireModifier (Modifier .STATIC )
144
+ .typeDerivedOf (ReportType .class )
145
+ .build ());
147
146
}
148
147
}
0 commit comments