mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
6786682: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - HTML tag should have lang attribute
Reviewed-by: jjg
This commit is contained in:
parent
34719749c5
commit
de73102ff4
8 changed files with 185 additions and 4 deletions
|
@ -36,6 +36,7 @@ import com.sun.tools.javac.code.Symbol;
|
|||
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 @@ public class RootDocImpl extends DocImpl implements RootDoc {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue