changeset 25848 | 3bc09f4676a9 |
child 29294 | 376a915b4ff0 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/make/test/crules/CodingRulesAnalyzerPlugin/Test.java Fri Aug 01 11:09:40 2014 -0700 @@ -0,0 +1,11 @@ +/**@test /nodynamiccopyright/ + * @compile/fail/ref=Test.out -Xplugin:coding_rules -XDrawDiagnostics Test.java + */ + +import com.sun.tools.javac.util.Assert; + +public class Test { + public void check(String value) { + Assert.check(value.trim().length() > 0, "value=" + value); + } +}