From 0c99d9ef46225cadf78c5b603edc104aa9bc1005 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 27 Apr 2022 17:32:38 +0200 Subject: [PATCH] Document Builder.augmentation() Builder's augmentation() method needs some javadoc to fix linting warnings. JIRA: MDSAL-755 Change-Id: I1bc62ea6753411159a9d21eca95eaf40b799d2b1 Signed-off-by: Robert Varga (cherry picked from commit 938a70d61dc8948d65e8c7ca64ffcbf4e6162b68) --- .../binding/java/api/generator/BuilderTemplate.xtend | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BuilderTemplate.xtend b/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BuilderTemplate.xtend index 2bbe3530e3..6e9eba483f 100644 --- a/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BuilderTemplate.xtend +++ b/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BuilderTemplate.xtend @@ -534,6 +534,14 @@ class BuilderTemplate extends AbstractBuilderTemplate { } private def generateAugmentation() ''' + /** + * Return the specified augmentation, if it is present in this builder. + * + * @param augmentation type + * @param augmentationType augmentation type class + * @return Augmentation object from this builder, or {@code null} if not present + * @throws «NPE.importedName» if {@code augmentType} is {@code null} + */ @«SUPPRESS_WARNINGS.importedName»({ "unchecked", "checkstyle:methodTypeParameterName"}) public E$$ «AUGMENTABLE_AUGMENTATION_NAME»(«CLASS.importedName» augmentationType) { return (E$$) «AUGMENTATION_FIELD».get(«JU_OBJECTS.importedName».requireNonNull(augmentationType)); -- 2.36.6