GP-0: Fixing javadoc warning and build (Closes #4754)

This commit is contained in:
Ryan Kurtz
2022-11-17 11:15:03 -05:00
parent 709adf291b
commit 5b1eb8ef32
2 changed files with 8 additions and 2 deletions
@@ -39,7 +39,7 @@ public class GThemeValueMap {
} }
/** /**
* Constructs a new value map, populated by all the values in the given map. Essentailly clones * Constructs a new value map, populated by all the values in the given map. Essentially clones
* the given map. * the given map.
* @param initial the set of values to initialize to * @param initial the set of values to initialize to
*/ */
@@ -135,7 +135,7 @@ public class GThemeValueMap {
/** /**
* Returns a list of all the {@link FontValue}s stored in this map. * Returns a list of all the {@link FontValue}s stored in this map.
* @return a list of all the {@link Fontvalue}s stored in this map. * @return a list of all the {@link FontValue}s stored in this map.
*/ */
public List<FontValue> getFonts() { public List<FontValue> getFonts() {
return new ArrayList<>(fontMap.values()); return new ArrayList<>(fontMap.values());
+6
View File
@@ -134,6 +134,9 @@ task createJavadocs(type: Javadoc, description: 'Generate javadocs for all proje
options.addBooleanOption("html5", true) options.addBooleanOption("html5", true)
options.addBooleanOption('Xdoclint:none', true) options.addBooleanOption('Xdoclint:none', true)
// Some internal packages are not public and need to be exported.
options.addMultilineStringsOption("-add-exports").setValue(["java.desktop/sun.awt=ALL-UNNAMED"])
} }
@@ -188,6 +191,9 @@ task createJsondocs(type: Javadoc, description: 'Generate JSON docs for all proj
// Newer versions of gradle set this to true by default. // Newer versions of gradle set this to true by default.
// The JsonDoclet doesn't have the -notimestamp option so ensure it isn't set. // The JsonDoclet doesn't have the -notimestamp option so ensure it isn't set.
options.setNoTimestamp(false) options.setNoTimestamp(false)
// Some internal packages are not public and need to be exported.
options.addMultilineStringsOption("-add-exports").setValue(["java.desktop/sun.awt=ALL-UNNAMED"])
options.doclet = "JsonDoclet" options.doclet = "JsonDoclet"
doFirst { doFirst {