Skip to content

Commit

Permalink
Fix Javadoc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dheid committed Apr 19, 2024
1 parent 132ac1e commit 54affda
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Include the following dependency to your project:
<dependency>
<groupId>org.drjekyll</groupId>
<artifactId>colorpicker</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</dependency>
```

Expand Down Expand Up @@ -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)

Expand Down
13 changes: 7 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down Expand Up @@ -203,6 +199,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<configuration>
<doclint>all,-missing</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -280,9 +279,11 @@
<groupId>org.apache.maven.plugins</groupId>
<version>3.4.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>


</build>


Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bric/colorpicker/ColorPickerDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/com/bric/colorpicker/JVM.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/
package com.bric.colorpicker;

import java.security.AccessControlException;

/**
* Static methods relating to the JVM environment.
Expand All @@ -39,15 +38,15 @@ public class JVM {
private static String getOSName() {
try {
return System.getProperty("os.name").toLowerCase();
} catch (AccessControlException e) {
} catch (Exception e) {
return "unknown";
}
}

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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bric/colorpicker/parts/DialogFooter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 54affda

Please sign in to comment.