Changeset 15034 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2019-05-02T04:33:57+02:00 (6 years ago)
Author:
Don-vip
Message:

checkstyle/PMD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r15015 r15034  
    595595        }
    596596
    597         private static String lc(String s) {
     597        private static String lower(String s) {
    598598            return s.toLowerCase(Locale.ENGLISH);
    599599        }
    600600
    601601        static String validateUploadTag(String uploadValue, String preferencePrefix, List<String> defMandatory, List<String> defForbidden) {
    602             String uploadValueLc = lc(uploadValue);
     602            String uploadValueLc = lower(uploadValue);
    603603            // Check mandatory terms
    604604            List<String> missingTerms = Config.getPref().getList(preferencePrefix+".mandatory-terms", defMandatory)
    605                 .stream().map(UploadAction::lc).filter(x -> !uploadValueLc.contains(x)).collect(Collectors.toList());
     605                .stream().map(UploadAction::lower).filter(x -> !uploadValueLc.contains(x)).collect(Collectors.toList());
    606606            if (!missingTerms.isEmpty()) {
    607607                return tr("The following required terms are missing: {0}", missingTerms);
     
    609609            // Check forbidden terms
    610610            List<String> forbiddenTerms = Config.getPref().getList(preferencePrefix+".forbidden-terms", defForbidden)
    611                     .stream().map(UploadAction::lc).filter(uploadValueLc::contains).collect(Collectors.toList());
     611                    .stream().map(UploadAction::lower).filter(uploadValueLc::contains).collect(Collectors.toList());
    612612            if (!forbiddenTerms.isEmpty()) {
    613613                return tr("The following forbidden terms have been found: {0}", forbiddenTerms);
Note: See TracChangeset for help on using the changeset viewer.