Skip to content

Ghidra is a software reverse engineering (SRE) framework

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

Ryan Kurtz5b1eb8ef3215
diff --git a/Ghidra/Framework/Generic/src/main/java/generic/theme/GThemeValueMap.java b/Ghidra/Framework/Generic/src/main/java/generic/theme/GThemeValueMap.java
index 470d1297ca..17736605f6 100644
--- a/Ghidra/Framework/Generic/src/main/java/generic/theme/GThemeValueMap.java
+++ b/Ghidra/Framework/Generic/src/main/java/generic/theme/GThemeValueMap.java
@@ -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.
* @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.
- * @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() {
return new ArrayList<>(fontMap.values());
diff --git a/gradle/root/distribution.gradle b/gradle/root/distribution.gradle
index 79acfe6f0a..7a17236adc 100644
--- a/gradle/root/distribution.gradle
+++ b/gradle/root/distribution.gradle
@@ -134,6 +134,9 @@ task createJavadocs(type: Javadoc, description: 'Generate javadocs for all proje
options.addBooleanOption("html5", 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.
// The JsonDoclet doesn't have the -notimestamp option so ensure it isn't set.
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"
doFirst {