From a1017f9f12074b4d1bad0ce082454b64c35b23f6 Mon Sep 17 00:00:00 2001 From: Tomas Peiretti Date: Thu, 22 Aug 2024 08:11:54 -0300 Subject: [PATCH] docs: update javadoc to improve readability --- .../vaadin/addons/localecombobox/LocaleComboBox.java | 10 +++++----- .../addons/localecombobox/LocaleCountryConverter.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleComboBox.java b/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleComboBox.java index 8b308f3..1688d44 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleComboBox.java +++ b/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleComboBox.java @@ -47,7 +47,7 @@ public class LocaleComboBox extends ComboBox { private static final String DEFAULT_FLAG_CODE = "un"; /** - * Display mode representing the built-in display modes in LocaleComboBox + * Display mode representing the built-in display modes in {@link LocaleComboBox} *

* These enums can be used in {@link #setDisplayMode(DisplayMode)} to easily switch between the * built-in display modes. @@ -82,7 +82,7 @@ public enum DisplayMode { private Locale customDisplayLocale = Locale.getDefault(); /** - * Creates a new instance of LocaleComboBox. + * Creates a new instance of {@code LocaleComboBox}. */ public LocaleComboBox() { setItemLabelGenerator(item -> item.getDisplayName(getLocaleForDisplay())); @@ -91,9 +91,9 @@ public LocaleComboBox() { } /** - * Creates a new instance of LocaleComboBox with the desired locales + * Creates a new instance of {@code LocaleComboBox} with the desired locales * - * @param locales the {@link Collection} of locales to include in the combobox + * @param locales the {@code Collection} of {@code Locale} to include in the combobox */ public LocaleComboBox(Collection items) { this(); @@ -119,7 +119,7 @@ public void setDisplayMode(DisplayMode displayMode) { * selected as the display mode. If the display mode is any other than {@link DisplayMode#CUSTOM}, * this setting is ignored. * - * @param displayLocale the locale to use for formatting. + * @param displayLocale the {@code Locale} to use for formatting. */ public void setDisplayLocale(Locale displayLocale) { this.customDisplayLocale = displayLocale == null ? Locale.getDefault() : displayLocale; diff --git a/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleCountryConverter.java b/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleCountryConverter.java index 3131328..7436a38 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleCountryConverter.java +++ b/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleCountryConverter.java @@ -105,7 +105,7 @@ public class LocaleCountryConverter { * @param countryCode The country code to be converted. This can be in ISO 3166-1 alpha-2 format * (e.g., "AR"), ISO 3166-1 alpha-3 format (e.g., "ARG"), or numeric-3 format (e.g., * "032"). - * @return An {@link Optional} containing the ISO 3166-1 alpha-2 code if the conversion is + * @return An {@code Optional} containing the ISO 3166-1 alpha-2 code if the conversion is * successful. */ public static Optional convertToISO3166Code(String countryCode) {