]> git.basschouten.com Git - openhab-addons.git/commitdiff
[knx] Fix javadoc errors (#14174)
authorHolger Friedrich <holgerfriedrich@users.noreply.github.com>
Sat, 14 Jan 2023 12:02:31 +0000 (13:02 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Jan 2023 12:02:31 +0000 (13:02 +0100)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
bundles/org.openhab.binding.knx/pom.xml
bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/KNXBindingConstants.java
bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/BusMessageListener.java
bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/config/DeviceConfig.java
bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/handler/IPBridgeThingHandler.java
bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/handler/SerialBridgeThingHandler.java
bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/i18n/KNXTranslationProvider.java

index 48d5d2c6442c97a97cb1cda421e9033db631454f..65d508c0e5f1ed175b9259b06e148c960271e81e 100644 (file)
     </dependency>
   </dependencies>
 
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <configuration>
+            <tags>
+              <tag>
+                <name>apiNote</name>
+                <placement>a</placement>
+                <head>API note:</head>
+              </tag>
+              <tag>
+                <name>implNote</name>
+                <placement>a</placement>
+                <head>Implementation note:</head>
+              </tag>
+            </tags>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
 </project>
index 5ad2739d3a1ed6acdeb7e9261d56a7a92730c8b6..948aae7c83bfd652622029c49b40091972be100e 100644 (file)
@@ -22,7 +22,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
 import org.openhab.core.thing.ThingTypeUID;
 
 /**
- * The {@link KNXBinding} class defines common constants, which are
+ * The {@link KNXBindingConstants} class defines common constants, which are
  * used across the whole binding.
  *
  * @author Karel Goderis - Initial contribution
index 1ed9e64aa89a535b26c7e925e1866b1695fc0fb0..37093dba91611e35767a2d21b4d6ae07a232576e 100644 (file)
@@ -28,7 +28,8 @@ public interface BusMessageListener {
     /**
      * Called when the KNX bridge receives a group write telegram
      *
-     * @param bridge
+     * @param client
+     * @param source
      * @param destination
      * @param asdu
      */
@@ -37,7 +38,8 @@ public interface BusMessageListener {
     /**
      * Called when the KNX bridge receives a group read telegram
      *
-     * @param bridge
+     * @param client
+     * @param source
      * @param destination
      * @param asdu
      */
@@ -46,7 +48,8 @@ public interface BusMessageListener {
     /**
      * Called when the KNX bridge receives a group read response telegram
      *
-     * @param bridge
+     * @param client
+     * @param source
      * @param destination
      * @param asdu
      */
index 99bd463587eb460d8e9810af68a0542c9dfafc3b..5746b6a86d5b13a45de90beefffaabdf03e4f2c6 100644 (file)
@@ -18,7 +18,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
  * Configuration object for the device thing handler.
  *
  * @author Karel Goderis - Initial contribution
- * @author Simon Kaufmann - refactoring & cleanup
+ * @author Simon Kaufmann - refactoring and cleanup
  */
 @NonNullByDefault
 public class DeviceConfig {
index 77ba219f75a99c4f2d07c10149e5482d9a8664fb..f5aa5d6ecc18c2c3c3f16ed01547bd6a63106cfc 100644 (file)
@@ -40,7 +40,7 @@ import tuwien.auto.calimero.secure.KnxSecureException;
  * directly defined on the bridge
  *
  * @author Karel Goderis - Initial contribution
- * @author Simon Kaufmann - Refactoring & cleanup
+ * @author Simon Kaufmann - Refactoring and cleanup
  */
 @NonNullByDefault
 public class IPBridgeThingHandler extends KNXBridgeBaseThingHandler {
index 383ab20862f7c8985b5599861d7964835c13a273..4c598f1fe7d36a2ee60525f14a5879286df620a5 100644 (file)
@@ -32,7 +32,7 @@ import org.slf4j.LoggerFactory;
  * directly defined on the bridge
  *
  * @author Karel Goderis - Initial contribution
- * @author Simon Kaufmann - Refactoring & cleanup
+ * @author Simon Kaufmann - Refactoring and cleanup
  */
 @NonNullByDefault
 public class SerialBridgeThingHandler extends KNXBridgeBaseThingHandler {
index 08ebef1b3378195bb8dbe3c66b0decc52b45785f..c485bd834a2f1cbce7867306fc134043ed2a6d6b 100644 (file)
@@ -26,7 +26,8 @@ import org.osgi.framework.FrameworkUtil;
  * This class provides translations. It is a helper class for i18n / localization efforts.
  *
  * @implNote It is implemented as a static singleton, enforced by the single-element enum pattern.
- * @apiNote @set() must be called to provide tanslation service, otherwise all functions will return untranslated text.
+ * @apiNote {@link #setProvider(LocaleProvider, TranslationProvider)} must be called to provide tanslation service,
+ *          otherwise all functions will return untranslated text.
  *          Thread safety is ensured.
  * @author Holger Friedrich - Initial contribution
  *
@@ -54,7 +55,7 @@ public enum KNXTranslationProvider {
      *         returns original text with substitutions
      */
     public String get(final String text, @Nullable Object @Nullable... arguments) {
-        // ensure thread safety: calls to set(..) should not lead to race condition
+        // ensure thread safety: calls to setProvider(..) should not lead to race condition
         final TranslationProvider translationProvider = this.translationProvider;
         final LocaleProvider localeProvider = this.localeProvider;
         if (translationProvider != null) {
@@ -78,8 +79,8 @@ public enum KNXTranslationProvider {
      * get exception in user readable (and possibly localized) form
      *
      * @param e any exception
-     * @return localized message in form <description (translated)> (<class name>, <e.getLocalizedMessage (not
-     *         translated)>), empty string for null. May possibly change in further releases.
+     * @return localized message in form [description (translated)] [class name], [e.getLocalizedMessage (not
+     *         translated)]), empty string for null. May possibly change in further releases.
      */
     public String getLocalizedException(final Throwable e) {
         StringBuffer res = new StringBuffer();
@@ -115,10 +116,10 @@ public enum KNXTranslationProvider {
     /**
      * Set translation providers. To be called to make any translation work.
      *
-     * @param localeProvider openHAB locale provider, can be generated via \@Activate / \@Reference LocaleProvider in
-     *            handler factory
-     * @param translationProvider openHAB locale provider, can be generated via \@Activate / \@Reference
-     *            TranslationProvider in handler factory
+     * @param localeProvider openHAB locale provider, can be generated via {@literal @}Activate / {@literal @}Reference
+     *            LocaleProvider in handler factory
+     * @param translationProvider openHAB locale provider, can be generated via {@literal @}Activate /
+     *            {@literal @}Reference TranslationProvider in handler factory
      */
     public void setProvider(@Nullable LocaleProvider localeProvider,
             @Nullable TranslationProvider translationProvider) {