emit a lint warning for cases like:

class Test {
    String! m(String s) { return ""; }
}
class Sub extends Test {
    @Override
    String m(String s) { return null; }
}

or:

class Test {
    String m(String! s) { return ""; }
}
class Sub extends Test {
    @Override
    String m(String s) { return null; }
}

-------------

Commit messages:
 - [bworld] Emit lint warnings if overriding method does not have same 
nullability

Changes: https://git.openjdk.org/valhalla/pull/2058/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2058&range=00
  Stats: 100 lines in 5 files changed: 91 ins; 0 del; 9 mod
  Patch: https://git.openjdk.org/valhalla/pull/2058.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2058/head:pull/2058

PR: https://git.openjdk.org/valhalla/pull/2058

Reply via email to