You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NotNullTest.java 389B

123456789101112131415161718192021
  1. package patterntesting.check.runtime;
  2. public class NotNullTest {
  3. private String s2;
  4. private static final String nullString = null;
  5. public NotNullTest() {
  6. }
  7. public NotNullTest(@NotNull String s) {
  8. s2 = s;
  9. }
  10. public static void main(String []argv) {
  11. new NotNullTest("something");
  12. new NotNullTest(nullString);
  13. }
  14. }