-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
11
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
Anywhere. Not environment specific
A DESCRIPTION OF THE PROBLEM :
Supplier<Integer> integerSupplier = new Supplier<Integer>() {
@Override
public Integer get() {
return 1;
}
};
You need to add a semicolon at the end of the method. It should be by default present when you implement any interface.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Implement any interface.
2. For example, I am implementing supplier interface. When you implement this it will give you error as a semicolon is missing at the end of the method.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Semicolon should also come when you implement any interface.
---------- BEGIN SOURCE ----------
Actual:
Supplier<Integer> integerSupplier = new Supplier<Integer>() {
@Override
public Integer get() {
return 1;
}
}
Expected:
Supplier<Integer> integerSupplier = new Supplier<Integer>() {
@Override
public Integer get() {
return 1;
}
};
---------- END SOURCE ----------
FREQUENCY : always
Anywhere. Not environment specific
A DESCRIPTION OF THE PROBLEM :
Supplier<Integer> integerSupplier = new Supplier<Integer>() {
@Override
public Integer get() {
return 1;
}
};
You need to add a semicolon at the end of the method. It should be by default present when you implement any interface.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Implement any interface.
2. For example, I am implementing supplier interface. When you implement this it will give you error as a semicolon is missing at the end of the method.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Semicolon should also come when you implement any interface.
---------- BEGIN SOURCE ----------
Actual:
Supplier<Integer> integerSupplier = new Supplier<Integer>() {
@Override
public Integer get() {
return 1;
}
}
Expected:
Supplier<Integer> integerSupplier = new Supplier<Integer>() {
@Override
public Integer get() {
return 1;
}
};
---------- END SOURCE ----------
FREQUENCY : always