~ken-vandine/+junk/libphonenumber-7.1.0-4ubuntu1

« back to all changes in this revision

Viewing changes to tools/java/java-build/src/com/google/i18n/phonenumbers/BuildMetadataProtoFromXml.java

  • Committer: Package Import Robot
  • Author(s): Daniel Pocock
  • Date: 2014-09-03 07:12:50 UTC
  • Revision ID: package-import@ubuntu.com-20140903071250-wzcgxhpc7w5k9pbb
Tags: 6.3~svn698-3
More patches for JDK 1.5 build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        String regionCode = metadata.getId();
152
152
        // For non-geographical country calling codes (e.g. +800), or for alternate formats, use the
153
153
        // country calling codes instead of the region code to form the file name.
154
 
        if (regionCode.equals("001") || regionCode.isEmpty()) {
 
154
        if (regionCode.equals("001") || regionCode.length() == 0) {
155
155
          regionCode = Integer.toString(metadata.getCountryCode());
156
156
        }
157
157
        PhoneMetadataCollection outMetadataCollection = new PhoneMetadataCollection();
196
196
    // calling codes listed in it.
197
197
    boolean hasRegionCodes = false;
198
198
    for (List<String> listWithRegionCode : countryCodeToRegionCodeMap.values()) {
199
 
      if (!listWithRegionCode.isEmpty()) {
 
199
      if (listWithRegionCode.size() > 0) {
200
200
        hasRegionCodes = true;
201
201
        break;
202
202
      }