langtools/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/api/JavadocTaskImpl.java
changeset 26266 2d24bda701dc
parent 25874 83c19f00452c
child 34752 9c262a013456
equal deleted inserted replaced
26265:46aacfffd3b5 26266:2d24bda701dc
    33 
    33 
    34 import com.sun.tools.javac.util.Context;
    34 import com.sun.tools.javac.util.Context;
    35 import com.sun.tools.javadoc.Start;
    35 import com.sun.tools.javadoc.Start;
    36 import java.util.Collections;
    36 import java.util.Collections;
    37 
    37 
       
    38 import com.sun.tools.javac.util.DefinedBy;
       
    39 import com.sun.tools.javac.util.DefinedBy.Api;
       
    40 
    38 /**
    41 /**
    39  * Provides access to functionality specific to the JDK documentation tool,
    42  * Provides access to functionality specific to the JDK documentation tool,
    40  * javadoc.
    43  * javadoc.
    41  *
    44  *
    42  * <p><b>This is NOT part of any supported API.
    45  * <p><b>This is NOT part of any supported API.
    63         this.fileObjects = (fileObjects == null) ? Collections.<JavaFileObject>emptySet()
    66         this.fileObjects = (fileObjects == null) ? Collections.<JavaFileObject>emptySet()
    64                 : nullCheck(fileObjects);
    67                 : nullCheck(fileObjects);
    65         setLocale(Locale.getDefault());
    68         setLocale(Locale.getDefault());
    66     }
    69     }
    67 
    70 
       
    71     @DefinedBy(Api.COMPILER)
    68     public void setLocale(Locale locale) {
    72     public void setLocale(Locale locale) {
    69         if (used.get())
    73         if (used.get())
    70             throw new IllegalStateException();
    74             throw new IllegalStateException();
    71         this.locale = locale;
    75         this.locale = locale;
    72     }
    76     }
    73 
    77 
       
    78     @DefinedBy(Api.COMPILER)
    74     public Boolean call() {
    79     public Boolean call() {
    75         if (!used.getAndSet(true)) {
    80         if (!used.getAndSet(true)) {
    76             initContext();
    81             initContext();
    77             Start jdoc = new Start(context);
    82             Start jdoc = new Start(context);
    78             try {
    83             try {