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:
Bhavesh Patel 2009-01-15 17:21:11 -08:00
parent 34719749c5
commit de73102ff4
8 changed files with 185 additions and 4 deletions

View file

@ -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;
}
}