< prev index next >

langtools/test/tools/javadoc/CheckResourceKeys.java

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8000612
  27  * @summary need test program to validate javadoc resource bundles
  28  * @modules jdk.jdeps/com.sun.tools.classfile



  29  */
  30 
  31 import java.io.*;
  32 import java.lang.reflect.Layer;
  33 import java.lang.reflect.Module;
  34 import java.util.*;
  35 import javax.tools.*;
  36 import com.sun.tools.classfile.*;
  37 
  38 /**
  39  * Compare string constants in javadoc classes against keys in javadoc resource bundles.
  40  */
  41 public class CheckResourceKeys {
  42     /**
  43      * Main program.
  44      * Options:
  45      * -finddeadkeys
  46      *      look for keys in resource bundles that are no longer required
  47      * -findmissingkeys
  48      *      look for keys in resource bundles that are missing




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8000612
  27  * @summary need test program to validate javadoc resource bundles
  28  * @modules jdk.javadoc/com.sun.tools.doclets.formats.html.resources:open
  29  *          jdk.javadoc/com.sun.tools.doclets.internal.toolkit.resources:open
  30  *          jdk.javadoc/com.sun.tools.javadoc.resources:open
  31  *          jdk.jdeps/com.sun.tools.classfile
  32  */
  33 
  34 import java.io.*;
  35 import java.lang.reflect.Layer;
  36 import java.lang.reflect.Module;
  37 import java.util.*;
  38 import javax.tools.*;
  39 import com.sun.tools.classfile.*;
  40 
  41 /**
  42  * Compare string constants in javadoc classes against keys in javadoc resource bundles.
  43  */
  44 public class CheckResourceKeys {
  45     /**
  46      * Main program.
  47      * Options:
  48      * -finddeadkeys
  49      *      look for keys in resource bundles that are no longer required
  50      * -findmissingkeys
  51      *      look for keys in resource bundles that are missing


< prev index next >