Ignore:
Timestamp:
2015-11-25T01:21:14+01:00 (5 years ago)
Author:
Don-vip
Message:

Sonar - squid:S1941 - Variables should not be declared before they are relevant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/date/PrimaryDateParser.java

    r8870 r9062  
    4141
    4242    private static boolean isDateInShortStandardFormat(String date) {
    43         char[] dateChars;
    4443        // We can only parse the date if it is in a very specific format.
    4544        // eg. 2007-09-23T08:25:43Z
     
    4948        }
    5049
    51         dateChars = date.toCharArray();
     50        char[] dateChars = date.toCharArray();
    5251
    5352        // Make sure any fixed characters are in the correct place.
     
    108107
    109108    private static boolean isDateInLongStandardFormat(String date) {
    110         char[] dateChars;
    111109        // We can only parse the date if it is in a very specific format.
    112110        // eg. 2007-09-23T08:25:43.000Z
     
    116114        }
    117115
    118         dateChars = date.toCharArray();
     116        char[] dateChars = date.toCharArray();
    119117
    120118        // Make sure any fixed characters are in the correct place.
Note: See TracChangeset for help on using the changeset viewer.