File tree Expand file tree Collapse file tree
java/src/main/java/io/github/cowwoc/requirements13/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555 <!-- https://stackoverflow.com/a/54468139/14731 -->
5656 <option >--override-methods</option >
5757 <option >summary</option >
58- <option >--no-module-directories</option >
5958 </additionalOptions >
6059 <validateLinks >true</validateLinks >
6160 <links >
Original file line number Diff line number Diff line change 1919 * <p>
2020 * Sample usage:
2121 * {@snippet :
22- * GenericType<List<Integer>> type = new GenericType<List<Integer>>(){};
23- * Object unknown = List.of(1, 2, 3);
24- * List<Integer> actual = requireThat(value, "actual").isList(type).getActual();
22+ * GenericType<List<Integer>> type = new GenericType<>()
23+ * {
24+ * };
25+ * Object unknown = List.of(1, 2, 3);
26+ * List<Integer> actual = requireThat(value, "actual").isList(type).getActual();
2527 *}
2628 *
2729 * @param <T> the type of the class modelled by the {@code GenericType} object. For example, the type of
@@ -231,7 +233,7 @@ public boolean isTypeOf(Object object)
231233
232234 return switch (type )
233235 {
234- case GenericArrayType array -> this .equals (from (object .getClass ()));
236+ case GenericArrayType _ -> this .equals (from (object .getClass ()));
235237 case ParameterizedType parameterizedType -> from (parameterizedType .getRawType ()).
236238 isTypeOf (object );
237239 case Class <?> aClass -> aClass .isInstance (object );
Original file line number Diff line number Diff line change 44 */
55package io .github .cowwoc .requirements13 .java .internal .validator ;
66
7- 7 import io .github .cowwoc .requirements13 .java .ValidationFailure ;
7+ import io .github .cowwoc .requirements13 .java .ValidationFailure ;
88import io .github .cowwoc .requirements13 .java .internal .Configuration ;
99import io .github .cowwoc .requirements13 .java .internal .scope .ApplicationScope ;
1010import io .github .cowwoc .requirements13 .java .internal .util .Arrays ;
Original file line number Diff line number Diff line change 207207 <!-- https://stackoverflow.com/a/54468139/14731 -->
208208 <option >--override-methods</option >
209209 <option >summary</option >
210- <option >--no-module-directories</option >
211210 </additionalOptions >
212211 <validateLinks >true</validateLinks >
213212 <links >
You can’t perform that action at this time.
0 commit comments