FINERACT-2081: Remove redundant toString() calls
This commit is contained in:
+6
-6
@@ -32,21 +32,21 @@ public class GLClosureInvalidException extends AbstractPlatformDomainRuleExcepti
|
|||||||
FUTURE_DATE, ACCOUNTING_CLOSED;
|
FUTURE_DATE, ACCOUNTING_CLOSED;
|
||||||
|
|
||||||
public String errorMessage() {
|
public String errorMessage() {
|
||||||
if (name().toString().equalsIgnoreCase("FUTURE_DATE")) {
|
if (name().equalsIgnoreCase("FUTURE_DATE")) {
|
||||||
return "Accounting closures cannot be made for a future date";
|
return "Accounting closures cannot be made for a future date";
|
||||||
} else if (name().toString().equalsIgnoreCase("ACCOUNTING_CLOSED")) {
|
} else if (name().equalsIgnoreCase("ACCOUNTING_CLOSED")) {
|
||||||
return "Accounting Closure for this branch has already been defined for a greater date";
|
return "Accounting Closure for this branch has already been defined for a greater date";
|
||||||
}
|
}
|
||||||
return name().toString();
|
return name();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String errorCode() {
|
public String errorCode() {
|
||||||
if (name().toString().equalsIgnoreCase("FUTURE_DATE")) {
|
if (name().equalsIgnoreCase("FUTURE_DATE")) {
|
||||||
return "error.msg.glclosure.invalid.future.date";
|
return "error.msg.glclosure.invalid.future.date";
|
||||||
} else if (name().toString().equalsIgnoreCase("ACCOUNTING_CLOSED")) {
|
} else if (name().equalsIgnoreCase("ACCOUNTING_CLOSED")) {
|
||||||
return "error.msg.glclosure.invalid.accounting.closed";
|
return "error.msg.glclosure.invalid.accounting.closed";
|
||||||
}
|
}
|
||||||
return name().toString();
|
return name();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user