Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/DNSName.java

    r8444 r8510  
    8080        //startIndex is the index of the first character of a component
    8181        //endIndex is the index of the last character of a component plus 1
    82         for (int endIndex,startIndex=0; startIndex < name.length(); startIndex = endIndex+1) {
     82        for (int endIndex, startIndex = 0; startIndex < name.length(); startIndex = endIndex+1) {
    8383            endIndex = name.indexOf('.', startIndex);
    8484            if (endIndex < 0) {
     
    8989
    9090            //nonStartIndex: index for characters in the component beyond the first one
    91             for (int nonStartIndex=startIndex+1; nonStartIndex < endIndex; nonStartIndex++) {
     91            for (int nonStartIndex = startIndex+1; nonStartIndex < endIndex; nonStartIndex++) {
    9292                char x = name.charAt(nonStartIndex);
    9393                if ((alphaDigitsAndHyphen).indexOf(x) < 0)
     
    147147            return false;
    148148
    149         DNSName other = (DNSName)obj;
     149        DNSName other = (DNSName) obj;
    150150
    151151        // RFC2459 mandates that these names are
     
    203203        else {
    204204            String inName =
    205                 (((DNSName)inputName).getName()).toLowerCase(Locale.ENGLISH);
     205                (((DNSName) inputName).getName()).toLowerCase(Locale.ENGLISH);
    206206            String thisName = name.toLowerCase(Locale.ENGLISH);
    207207            if (inName.equals(thisName))
     
    236236    @Override
    237237    public int subtreeDepth() {
    238         String subtree=name;
    239         int i=1;
     238        String subtree = name;
     239        int i = 1;
    240240
    241241        /* count dots */
    242242        for (; subtree.lastIndexOf('.') >= 0; i++) {
    243             subtree=subtree.substring(0,subtree.lastIndexOf('.'));
     243            subtree = subtree.substring(0, subtree.lastIndexOf('.'));
    244244        }
    245245
Note: See TracChangeset for help on using the changeset viewer.