jdk/test/java/util/Currency/PropertiesTest.java
author alanb
Sun, 02 Dec 2012 16:37:31 +0000
changeset 14697 6ed46ffc2d33
parent 13790 5b29e3921008
child 29524 2dbceeab4b8b
permissions -rw-r--r--
8003846: Override mechanism for currency data should not require creating currency.properties in java.home Reviewed-by: naoto
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
13790
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
     2
 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
import java.io.*;
13790
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
    25
import java.text.*;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
import java.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
import java.util.regex.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
public class PropertiesTest {
14697
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    30
    public static void main(String[] args) throws Exception {
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    31
        if (args.length == 2 && args[0].equals("-d")) {
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    32
            dump(args[1]);
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    33
        } else if (args.length == 4 && args[0].equals("-c")) {
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    34
            compare(args[1], args[2], args[3]);
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    35
        } else {
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    36
            System.err.println("Usage:  java PropertiesTest -d <dumpfile>");
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    37
            System.err.println("        java PropertiesTest -c <beforedump> <afterdump> <propsfile>");
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    38
            System.exit(-1);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    private static void dump(String outfile) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
        File f = new File(outfile);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
        PrintWriter pw;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
            f.createNewFile();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
            pw = new PrintWriter(f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
        } catch (Exception fnfe) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
            throw new RuntimeException(fnfe);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
        for (char c1 = 'A'; c1 <= 'Z'; c1++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
            for (char c2 = 'A'; c2 <= 'Z'; c2++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
                String ctry = new StringBuilder().append(c1).append(c2).toString();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
                try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                    Currency c = Currency.getInstance(new Locale("", ctry));
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                    if (c != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                        pw.printf(Locale.ROOT, "%s=%s,%03d,%1d\n",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                            ctry,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                            c.getCurrencyCode(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                            c.getNumericCode(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                            c.getDefaultFractionDigits());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
                } catch (IllegalArgumentException iae) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                    // invalid country code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                    continue;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        pw.flush();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        pw.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
14697
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    73
    private static void compare(String beforeFile, String afterFile, String propsFile)
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    74
        throws IOException
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    75
    {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        // load file contents
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        Properties before = new Properties();
14697
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    78
        try (Reader reader = new FileReader(beforeFile)) {
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    79
            before.load(reader);
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    80
        }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        Properties after = new Properties();
14697
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    82
        try (Reader reader = new FileReader(afterFile)) {
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
    83
            after.load(reader);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        // remove the same contents from the 'after' properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        Set<String> keys = before.stringPropertyNames();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        for (String key: keys) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
            String beforeVal = before.getProperty(key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
            String afterVal = after.getProperty(key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
            System.out.printf("Removing country: %s. before: %s, after: %s", key, beforeVal, afterVal);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
            if (beforeVal.equals(afterVal)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
                after.remove(key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                System.out.printf(" --- removed\n");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
                System.out.printf(" --- NOT removed\n");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        // now look at the currency.properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        Properties p = new Properties();
14697
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
   102
        try (Reader reader = new FileReader(propsFile)) {
6ed46ffc2d33 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
alanb
parents: 13790
diff changeset
   103
            p.load(reader);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        // test each replacements
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        keys = p.stringPropertyNames();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        Pattern propertiesPattern =
13790
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   109
            Pattern.compile("([A-Z]{3})\\s*,\\s*(\\d{3})\\s*,\\s*" +
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   110
                "([0-3])\\s*,?\\s*(\\d{4}-\\d{2}-\\d{2}T\\d{2}:" +
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   111
                "\\d{2}:\\d{2})?");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        for (String key: keys) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
            String val = p.getProperty(key);
13790
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   114
            try {
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   115
                if (countOccurrences(val, ',') == 3 && !isPastCutoverDate(val)) {
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   116
                    System.out.println("Skipping since date is in future");
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   117
                    continue; // skip since date in future (no effect)
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   118
                }
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   119
            } catch (ParseException pe) {
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   120
                // swallow - currency class should not honour this value
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   121
                continue;
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   122
            }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
            String afterVal = after.getProperty(key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
            System.out.printf("Testing key: %s, val: %s... ", key, val);
13790
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   125
            System.out.println("AfterVal is : " + afterVal);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
            Matcher m = propertiesPattern.matcher(val.toUpperCase(Locale.ROOT));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
            if (!m.find()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                // format is not recognized.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                System.out.printf("Format is not recognized.\n");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                if (afterVal != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                    throw new RuntimeException("Currency data replacement for "+key+" failed: It was incorrectly altered to "+afterVal);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                // ignore this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                continue;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
            Matcher mAfter = propertiesPattern.matcher(afterVal);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
            mAfter.find();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
            String code = m.group(1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
            String codeAfter = mAfter.group(1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
            int numeric = Integer.parseInt(m.group(2));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
            int numericAfter = Integer.parseInt(mAfter.group(2));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
            int fraction = Integer.parseInt(m.group(3));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
            int fractionAfter = Integer.parseInt(mAfter.group(3));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
            if (code.equals(codeAfter) &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                (numeric == numericAfter)&&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
                (fraction == fractionAfter)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                after.remove(key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
                throw new RuntimeException("Currency data replacement for "+key+" failed: actual: (alphacode: "+codeAfter+", numcode: "+numericAfter+", fraction: "+fractionAfter+"), expected:  (alphacode: "+code+", numcode: "+numeric+", fraction: "+fraction+")");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
            System.out.printf("Success!\n");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        if (!after.isEmpty()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
            StringBuilder sb = new StringBuilder()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                .append("Currency data replacement failed.  Unnecessary modification was(were) made for the following currencies:\n");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
            keys = after.stringPropertyNames();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            for (String key : keys) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                sb.append("    country: ")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                .append(key)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                .append(" currency: ")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                .append(after.getProperty(key))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                .append("\n");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            throw new RuntimeException(sb.toString());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    }
13790
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   170
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   171
    private static boolean isPastCutoverDate(String s)
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   172
            throws IndexOutOfBoundsException, NullPointerException, ParseException {
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   173
        String dateString = s.substring(s.lastIndexOf(',')+1, s.length()).trim();
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   174
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.ROOT);
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   175
        format.setTimeZone(TimeZone.getTimeZone("GMT"));
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   176
        format.setLenient(false);
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   177
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   178
        long time = format.parse(dateString).getTime();
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   179
        if (System.currentTimeMillis() - time >= 0L) {
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   180
            return true;
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   181
        } else {
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   182
            return false;
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   183
        }
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   184
    }
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   185
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   186
    private static int countOccurrences(String value, char match) {
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   187
        int count = 0;
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   188
        for (char c : value.toCharArray()) {
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   189
            if (c == match) {
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   190
               ++count;
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   191
            }
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   192
        }
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   193
        return count;
5b29e3921008 7180362: RFE: Implement date cutover functionality for currency.properties file
coffeys
parents: 5506
diff changeset
   194
    }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
}