--- a/langtools/src/share/classes/com/sun/tools/javadoc/RootDocImpl.java Tue Jan 13 13:31:35 2009 +0000
+++ b/langtools/src/share/classes/com/sun/tools/javadoc/RootDocImpl.java Thu Jan 15 17:21:11 2009 -0800
@@ -36,6 +36,7 @@
import com.sun.tools.javac.util.List;
import com.sun.tools.javac.util.ListBuffer;
import com.sun.tools.javac.util.Position;
+import java.util.Locale;
/**
* This class holds the information from one run of javadoc.
@@ -351,4 +352,11 @@
null :
SourcePositionImpl.make(path, Position.NOPOS, null);
}
+
+ /**
+ * Return the locale provided by the user or the default locale value.
+ */
+ public Locale getLocale() {
+ return env.doclocale.locale;
+ }
}