Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

These two for loops are the same thing, should be moved into a method #620

Closed
github-actions bot opened this issue Jan 4, 2023 · 1 comment
Closed
Labels

Comments

@github-actions
Copy link

github-actions bot commented Jan 4, 2023

These two for loops are the same thing, should be moved into a method

// TODO: These two for loops are the same thing, should be moved into a method

        String[] programVersionStr = StringUtils.split(programVersion, ".");
        String[] currentVersionStr = StringUtils.split(currentVersion, ".");

        // Loops through the "programVersion" and "currentVersion" strings and replaces letters with numbers as necessary
        for (int i = 0; i < programVersionStr.length; i++) {
            String str1 = "", str2 = "";
            // TODO: These two for loops are the same thing, should be moved into a method
            for (char c : programVersionStr[i].toCharArray()) {
                if (Character.isLetter(c)) {
                    int u = c - 'a' + 1;

89058049a317402cb88b7ce112263b305867a545

@github-actions github-actions bot added the todo label Jan 4, 2023
@OpticFusion1
Copy link
Owner

Changing to a remote server renders this class useless. It'll be removed once the changes are made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant