From 54affdaabec78e4c00892660d7be4982a99389c2 Mon Sep 17 00:00:00 2001 From: Daniel Heid Date: Fri, 19 Apr 2024 22:06:24 +0200 Subject: [PATCH] Fix Javadoc issues --- README.md | 4 ++-- pom.xml | 13 +++++++------ .../com/bric/colorpicker/ColorPickerDialog.java | 2 +- src/main/java/com/bric/colorpicker/JVM.java | 5 ++--- .../com/bric/colorpicker/parts/DialogFooter.java | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 7c07cfb..cedd8e2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Include the following dependency to your project: org.drjekyll colorpicker - 2.0.0 + 2.0.1 ``` @@ -103,7 +103,7 @@ https://opensource.org/licenses/BSD-3-Clause ## :loudspeaker: Release Notes -### 2.0.0 +### 2.0.1 * [Localization support](https://github.com/dheid/colorpicker/pull/55) diff --git a/pom.xml b/pom.xml index 91d03d2..b489f9e 100644 --- a/pom.xml +++ b/pom.xml @@ -113,10 +113,6 @@ org.apache.maven.plugins maven-source-plugin - - org.apache.maven.plugins - maven-javadoc-plugin - org.apache.maven.plugins maven-gpg-plugin @@ -203,6 +199,9 @@ org.apache.maven.plugins maven-javadoc-plugin 3.6.3 + + all,-missing + attach-javadocs @@ -280,9 +279,11 @@ org.apache.maven.plugins 3.4.1 + + org.apache.maven.plugins + maven-javadoc-plugin + - - diff --git a/src/main/java/com/bric/colorpicker/ColorPickerDialog.java b/src/main/java/com/bric/colorpicker/ColorPickerDialog.java index 68f41e8..c129486 100644 --- a/src/main/java/com/bric/colorpicker/ColorPickerDialog.java +++ b/src/main/java/com/bric/colorpicker/ColorPickerDialog.java @@ -140,7 +140,7 @@ public static Color showDialog(Window owner, Color originalColor, boolean includ * so an {@code IllegalArgumentException} will be thrown if this target is a {@code Window}. * @param originalColor the color the {@code ColorPicker} initially points to. * @param includeOpacity whether to add a control for the opacity of the color. - * @param local the current active local of the app + * @param locale the current active local of the app * @return the {@code Color} the user chooses, or {@code null} if the user cancels the dialog. */ public static Color showDialog(Window owner, Color originalColor, boolean includeOpacity, Locale locale) { diff --git a/src/main/java/com/bric/colorpicker/JVM.java b/src/main/java/com/bric/colorpicker/JVM.java index 684d667..a17c97c 100644 --- a/src/main/java/com/bric/colorpicker/JVM.java +++ b/src/main/java/com/bric/colorpicker/JVM.java @@ -19,7 +19,6 @@ */ package com.bric.colorpicker; -import java.security.AccessControlException; /** * Static methods relating to the JVM environment. @@ -39,7 +38,7 @@ public class JVM { private static String getOSName() { try { return System.getProperty("os.name").toLowerCase(); - } catch (AccessControlException e) { + } catch (Exception e) { return "unknown"; } } @@ -47,7 +46,7 @@ private static String getOSName() { public static boolean isUsingQuartz() { try { return IS_MAC && System.getProperty("apple.awt.graphics.UseQuartz") != null && System.getProperty("apple.awt.graphics.UseQuartz").equals("true"); - } catch (AccessControlException e) { + } catch (Exception e) { return false; } } diff --git a/src/main/java/com/bric/colorpicker/parts/DialogFooter.java b/src/main/java/com/bric/colorpicker/parts/DialogFooter.java index 820be7a..7c71f1f 100644 --- a/src/main/java/com/bric/colorpicker/parts/DialogFooter.java +++ b/src/main/java/com/bric/colorpicker/parts/DialogFooter.java @@ -597,7 +597,7 @@ public static DialogFooter createDialogFooter(JComponent[] leftComponents, int o * @param defaultButton the OPTION field corresponding to the button that * should be the default button, or -1 if there should be no default button. * @param escapeKeyBehavior one of the EscapeKeyBehavior options in this class. - * @param local the current active local of the app + * @param locale the current active local of the app * @return a {@code DialogFooter} */ public static DialogFooter createDialogFooter(JComponent[] leftComponents, int options, int defaultButton, EscapeKeyBehavior escapeKeyBehavior, Locale locale) {