Skip to content

Commit

Permalink
Merge pull request #95 from sclassen/enforceJavadoc
Browse files Browse the repository at this point in the history
fix javadoc warnings and set failOnError and failOnWarning to true
  • Loading branch information
martinfrancois committed Aug 28, 2019
2 parents d3c5d52 + 79c3cec commit 0c1469b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion preferencesfx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<failOnError>false</failOnError>
<failOnError>true</failOnError>
<failOnWarnings>true</failOnWarnings>
<force>true</force>
<windowtitle>PreferencesFX API</windowtitle>
<additionalJOption>-J-Djavafx.javadoc=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ public PreferencesBasedStorageHandler(Class<?> saveClass) {
* Objects.equals(x, deserialize(serialize(x), X.class)
* </pre>
*
* @param <T> the type of object into which to deserialze the string
* @param serialized the string to deserialze
* @param type the class into which to deserialize the string
* @param type the class into which to deserialize the string
* @return string representation of the object for storage
*/
protected abstract <T> T deserialize(String serialized, Class<? extends T> type);
Expand Down Expand Up @@ -285,6 +286,7 @@ private String deprecatedHash(String key) {
* to save / load as the key in {@link Preferences}, since those are guaranteed to be
* maximum 64 chars long.
*
* @param key the string for which to calculate the hash
* @return SHA-256 representation of breadcrumb
*/
public String hash(String key) {
Expand Down

0 comments on commit 0c1469b

Please sign in to comment.