Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Java code PMD complains as Method should have only one exit point
- public boolean validate(final Beanform[] bagdata) {
- final int length = bagdata.length;
- if (length == 4) {
- return true;
- } else if (length == 1) {
- result = "length==1, Length should be greater than 1";
- return false;
- } else if (length == 3) {
- if (bagdata[0].getCycleType() == null) {
- result = "Cyclic Type is null for length==3";
- return false;
- }
- }
- return true;
- }
Add Comment
Please, Sign In to add comment