From cc8b6d7591095c4b7e5185541bafcaf05e9ba50a Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 9 Jan 2026 14:35:59 +0100 Subject: [PATCH] Update XWPFTheme.java --- .../java/org/apache/poi/xwpf/usermodel/XWPFTheme.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTheme.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTheme.java index b73311ef3f..13d4a07a5d 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTheme.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTheme.java @@ -142,7 +142,7 @@ public class XWPFTheme extends POIXMLDocumentPart { } /** - * @return typeface of the major font to use in a document. + * @return typeface of the major font to use in a document (possibly null). * Typically, the major font is used for heading areas of a document. * */ @@ -154,7 +154,7 @@ public class XWPFTheme extends POIXMLDocumentPart { } /** - * @return typeface of the minor font to use in a document. + * @return typeface of the minor font to use in a document (possibly null). * Typically, the minor font is used for normal text or paragraph areas. * */ @@ -167,7 +167,7 @@ public class XWPFTheme extends POIXMLDocumentPart { /** * @param script a 4-letter script code, e.g. "Latn", "Jpan" - * @return typeface of the major font for the given script + * @return typeface of the major font for the given script (possibly null) * @since 6.0.0 */ public String getMajorFontForScript(String script) { @@ -177,7 +177,7 @@ public class XWPFTheme extends POIXMLDocumentPart { /** * @param script a 4-letter script code, e.g. "Latn", "Jpan" - * @return typeface of the minor font for the given script + * @return typeface of the minor font for the given script (possibly null) * @since 6.0.0 */ public String getMinorFontForScript(String script) {