Getter and @Nonnull
问题 I get a warning from eclipse and I know I can remove it with suppress warning but I'd prefer to understand what makes it thing it could be null. package-info.java @ParametersAreNonnullByDefault package test; import javax.annotation.ParametersAreNonnullByDefault; test.java package test; public class Test { public static void main( final String[ ] args ) { System.out.println( new Test( "a" ).getS( ) ); } private final String s; public Test( final String s ) { this.s = s; } public String getS( )