Code review

mail@pastecode.io avatar
unknown
java
3 years ago
441 B
2
Indexable
Never
public static boolean method(Integer number) {
    methodName = "isValidNumber";
    Logger logger = LoggingHelper.getLogger(LOGGER);
    logger.entering(CLASS, methodName);
    try {
        Integer.parseInt(number.toString());
    } catch(Exception ex) {
        logger.fine(methodName + " returns false");
        return false;
    }
    logger.fine(methodName + " returns true");
    logger.exiting(CLASS, methodName);
    return true;
}