Ignore:
Timestamp:
01/10/22 12:16:20 (2 years ago)
Author:
Oliver Schonefeld
Message:
  • cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRUExplainRecordDataParser.java

    r7272 r7281  
    191191        }
    192192
    193         Set<String> transports = new HashSet<String>();
     193        Set<String> transports = new HashSet<>();
    194194        s = XmlStreamReaderUtils.readAttributeValue(reader, null, "transport");
    195195        if (s != null) {
     
    296296                        parseStringI18N(reader, strict, ns, "title", true);
    297297                if (title == null) {
    298                     title = new ArrayList<LocalizedString>();
     298                    title = new ArrayList<>();
    299299                }
    300300                title.add(s);
     
    326326                        parseStringI18N(reader, strict, ns, "description", true);
    327327                if (description == null) {
    328                     description = new ArrayList<LocalizedString>();
     328                    description = new ArrayList<>();
    329329                }
    330330                description.add(s);
     
    334334                        parseStringI18N(reader, strict, ns, "author", true);
    335335                if (author == null) {
    336                     author = new ArrayList<LocalizedString>();
     336                    author = new ArrayList<>();
    337337                }
    338338                author.add(s);
     
    342342                        parseStringI18N(reader, strict, ns, "contact", true);
    343343                if (contact == null) {
    344                     contact = new ArrayList<LocalizedString>();
     344                    contact = new ArrayList<>();
    345345                }
    346346                contact.add(s);
     
    350350                        parseStringI18N(reader, strict, ns, "extent", true);
    351351                if (extent == null) {
    352                     extent = new ArrayList<LocalizedString>();
     352                    extent = new ArrayList<>();
    353353                }
    354354                extent.add(s);
     
    358358                        parseStringI18N(reader, strict, ns, "history", true);
    359359                if (history == null) {
    360                     history = new ArrayList<LocalizedString>();
     360                    history = new ArrayList<>();
    361361                }
    362362                history.add(s);
     
    367367                        parseStringI18N(reader, strict, ns, "restrictions", true);
    368368                if (restrictions == null) {
    369                     restrictions = new ArrayList<LocalizedString>();
     369                    restrictions = new ArrayList<>();
    370370                }
    371371                restrictions.add(s);
     
    375375                        parseStringI18N(reader, strict, ns, "subjects", true);
    376376                if (subjects == null) {
    377                     subjects = new ArrayList<LocalizedString>();
     377                    subjects = new ArrayList<>();
    378378                }
    379379                subjects.add(s);
     
    383383                        parseStringI18N(reader, strict, ns, "links", true);
    384384                if (links == null) {
    385                     links = new ArrayList<LocalizedString>();
     385                    links = new ArrayList<>();
    386386                }
    387387                links.add(s);
     
    392392                        parseStringI18N(reader, strict, ns, "implementation", true);
    393393                if (implementation == null) {
    394                     implementation = new ArrayList<LocalizedString>();
     394                    implementation = new ArrayList<>();
    395395                }
    396396                implementation.add(s);
     
    439439                    }
    440440                    if (titles == null) {
    441                         titles = new ArrayList<LocalizedString>();
     441                        titles = new ArrayList<>();
    442442                    }
    443443                    titles.add(title);
     
    446446
    447447                if (sets == null) {
    448                     sets = new ArrayList<IndexInfo.Set>();
     448                    sets = new ArrayList<>();
    449449                }
    450450                sets.add(new IndexInfo.Set(identifier, name, titles));
     
    471471                    }
    472472                    if (titles == null) {
    473                         titles = new ArrayList<LocalizedString>();
     473                        titles = new ArrayList<>();
    474474                    }
    475475                    titles.add(title);
     
    508508                        if ((set != null) && (name != null)) {
    509509                            if (maps == null) {
    510                                 maps = new ArrayList<IndexInfo.Index.Map>();
     510                                maps = new ArrayList<>();
    511511                            }
    512512                            maps.add(new IndexInfo.Index.Map(primary, set, name));
     
    531531                XmlStreamReaderUtils.readEnd(reader, ns, "index");
    532532                if (indexes == null) {
    533                     indexes = new ArrayList<IndexInfo.Index>();
     533                    indexes = new ArrayList<>();
    534534                }
    535535                indexes.add(new IndexInfo.Index(id, titles, can_search,
     
    681681                }
    682682                if (titles == null) {
    683                     titles = new ArrayList<LocalizedString>();
     683                    titles = new ArrayList<>();
    684684                }
    685685                titles.add(title);
     
    688688
    689689            if (schemaInfo == null) {
    690                 schemaInfo = new ArrayList<Schema>();
     690                schemaInfo = new ArrayList<>();
    691691            }
    692692            schemaInfo.add(new Schema(identifier, name, location, sort,
     
    711711        if ((type != null) && (value != null)) {
    712712            if (map == null) {
    713                 map = new HashMap<String, String>();
     713                map = new HashMap<>();
    714714            }
    715715            if (map.containsKey(type)) {
Note: See TracChangeset for help on using the changeset viewer.