diff --git a/docs/manual/creating-a-checker.tex b/docs/manual/creating-a-checker.tex index 958d295d2f4..5867a31e7a9 100644 --- a/docs/manual/creating-a-checker.tex +++ b/docs/manual/creating-a-checker.tex @@ -1073,14 +1073,17 @@ \noindent if you define an aggregate checker class. Extend \refclass{framework/source}{AggregateChecker} and override -the \ method, like the following: +the \ method, like the following: \begin{Verbatim} public class MyUnitCheckers extends AggregateChecker { - protected Set> getImmediateSubcheckerClasses() { - return new LinkedHashSet<>(Arrays.asList(DistanceUnitChecker.class, - VelocityUnitChecker.class, - MassUnitChecker.class)); + @Override + protected Collection> getSupportedCheckers() { + Collection> checkers = new ArrayList<>(3); + Collections.addAll( + checkers, + DistanceUnitChecker.class, VelocityUnitChecker.class, MassUnitChecker.class); + return checkers; } } \end{Verbatim}