private static boolean canUpdateAllocatedStorage()

in aws-rds-dbinstance/src/main/java/software/amazon/rds/dbinstance/Translator.java [581:593]


    private static boolean canUpdateAllocatedStorage(final String fromAllocatedStorage, final String toAllocatedStorage) {
        if (fromAllocatedStorage == null || toAllocatedStorage == null) {
            return true;
        }
        final int from, to;
        try {
            from = Integer.parseInt(fromAllocatedStorage);
            to = Integer.parseInt(toAllocatedStorage);
        } catch (NumberFormatException e) {
            return true;
        }
        return to >= from;
    }