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

Static_Field_Not_Final.java 399 B

3 years ago
1234567891011121314
  1. package Static_Field_Not_Final;
  2. public class Static_Field_Not_Final
  3. {
  4. /* FLAW: public static fields should be marked final */
  5. public static final String defaultError = "The value you entered was not understood. Please try again."; // bad 非final的public static字段
  6. public static final String defaultRight = "GOOD"; // good 非final的public static字段
  7. public void bad() { }
  8. }

No Description

Contributors (1)