Glowman554 / BetterNudel

Method and field names must be dissimilar JAVA-W1006
Anti-pattern
Minor
2 years ago2 years old
This field and method MultiThreadHelperClassWaiter.complete have very similar names
59
60    public static class MultiThreadHelperClassWaiter {
61        public Object instance;
62        private volatile boolean complete = false;63
64        protected void on_complete() {
65            complete = true;
This field and method MultiThreadHelperLambdaWaiter.complete have very similar names
44    }
45
46    public static class MultiThreadHelperLambdaWaiter {
47        private volatile boolean complete = false;48
49        protected void on_complete() {
50            complete = true;
This field and method UnparsedHexNumber.intValue have very similar names
  6class UnparsedHexNumber extends Number {
  7    private final String number;
  8    private boolean hasIntValue;
  9    private int intValue; 10    private boolean hasLongValue;
 11    private long longValue;
 12    private boolean hasFloatValue;
This field and method UnparsedHexNumber.floatValue have very similar names
 10    private boolean hasLongValue;
 11    private long longValue;
 12    private boolean hasFloatValue;
 13    private float floatValue; 14    private boolean hasDoubleValue;
 15    private double doubleValue;
 16    private BigInteger bigIntValue;
This field and method UnparsedHexNumber.floatValue have very similar names
 10    private boolean hasLongValue;
 11    private long longValue;
 12    private boolean hasFloatValue;
 13    private float floatValue; 14    private boolean hasDoubleValue;
 15    private double doubleValue;
 16    private BigInteger bigIntValue;