Ignore:
Timestamp:
2016-03-17T01:50:12+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - Local variable and method parameter names should comply with a naming convention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java

    r9070 r10001  
    119119        int i; // iterates through s
    120120        int j; // iterates through t
    121         char s_i; // ith character of s
    122         char t_j; // jth character of t
     121        char si; // ith character of s
     122        char tj; // jth character of t
    123123        int cost; // cost
    124124
     
    143143        for (i = 1; i <= n; i++) {
    144144
    145             s_i = s.charAt(i - 1);
     145            si = s.charAt(i - 1);
    146146
    147147            // Step 4
    148148            for (j = 1; j <= m; j++) {
    149149
    150                 t_j = t.charAt(j - 1);
     150                tj = t.charAt(j - 1);
    151151
    152152                // Step 5
    153                 if (s_i == t_j) {
     153                if (si == tj) {
    154154                    cost = 0;
    155155                } else {
Note: See TracChangeset for help on using the changeset viewer.