提交 4852c0fc authored 作者: Thomas Mueller's avatar Thomas Mueller

Support spellchecking assertThrows

上级 ee722777
...@@ -15,6 +15,7 @@ import java.util.StringTokenizer; ...@@ -15,6 +15,7 @@ import java.util.StringTokenizer;
import org.h2.build.BuildBase; import org.h2.build.BuildBase;
import org.h2.util.StringUtils; import org.h2.util.StringUtils;
import org.h2.util.Utils;
/** /**
* The spell checker makes sure that each word used in the source code * The spell checker makes sure that each word used in the source code
...@@ -48,12 +49,12 @@ public class SpellChecker { ...@@ -48,12 +49,12 @@ public class SpellChecker {
* @param args the command line parameters * @param args the command line parameters
*/ */
public static void main(String... args) throws IOException { public static void main(String... args) throws IOException {
String dir = "src"; String dir = Utils.getProperty("spellcheckDir", "src");
new SpellChecker().run("tools/org/h2/build/doc/dictionary.txt", dir); new SpellChecker().run("src/tools/org/h2/build/doc/dictionary.txt", dir);
} }
private void run(String dictionaryFileName, String dir) throws IOException { private void run(String dictionaryFileName, String dir) throws IOException {
process(new File(dir + "/" + dictionaryFileName)); process(new File(dictionaryFileName));
process(new File(dir)); process(new File(dir));
if (printDictionary) { if (printDictionary) {
System.out.println("USED WORDS"); System.out.println("USED WORDS");
......
...@@ -686,4 +686,8 @@ mcleod decade experience travel willing scjp himself routinely tsi retrieving ...@@ -686,4 +686,8 @@ mcleod decade experience travel willing scjp himself routinely tsi retrieving
multiplied ross judson closeable watcher enqueued referent refs watch tracked multiplied ross judson closeable watcher enqueued referent refs watch tracked
preserving disallowed restrictive dst regions kiritimati flow wider nanosecond preserving disallowed restrictive dst regions kiritimati flow wider nanosecond
march april cutover julian transitions enderbury kwajalein viewport onscroll march april cutover julian transitions enderbury kwajalein viewport onscroll
umlaut reconstruct inclusive proxies verifier slept umlaut reconstruct inclusive proxies verifier slept superclasses
verifying predicate signers verifies handlers kiwi callbacks traditionally
unusual apfel caught overcareful tricky nodep junit eventually concrete
enhancer banana nit cglib challenging intercepted banane assertthrows
objenesis prepend
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论