Changeset 7281 for SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRUExplainRecordDataParser.java
- Timestamp:
- 01/10/22 12:16:20 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRUExplainRecordDataParser.java
r7272 r7281 191 191 } 192 192 193 Set<String> transports = new HashSet< String>();193 Set<String> transports = new HashSet<>(); 194 194 s = XmlStreamReaderUtils.readAttributeValue(reader, null, "transport"); 195 195 if (s != null) { … … 296 296 parseStringI18N(reader, strict, ns, "title", true); 297 297 if (title == null) { 298 title = new ArrayList< LocalizedString>();298 title = new ArrayList<>(); 299 299 } 300 300 title.add(s); … … 326 326 parseStringI18N(reader, strict, ns, "description", true); 327 327 if (description == null) { 328 description = new ArrayList< LocalizedString>();328 description = new ArrayList<>(); 329 329 } 330 330 description.add(s); … … 334 334 parseStringI18N(reader, strict, ns, "author", true); 335 335 if (author == null) { 336 author = new ArrayList< LocalizedString>();336 author = new ArrayList<>(); 337 337 } 338 338 author.add(s); … … 342 342 parseStringI18N(reader, strict, ns, "contact", true); 343 343 if (contact == null) { 344 contact = new ArrayList< LocalizedString>();344 contact = new ArrayList<>(); 345 345 } 346 346 contact.add(s); … … 350 350 parseStringI18N(reader, strict, ns, "extent", true); 351 351 if (extent == null) { 352 extent = new ArrayList< LocalizedString>();352 extent = new ArrayList<>(); 353 353 } 354 354 extent.add(s); … … 358 358 parseStringI18N(reader, strict, ns, "history", true); 359 359 if (history == null) { 360 history = new ArrayList< LocalizedString>();360 history = new ArrayList<>(); 361 361 } 362 362 history.add(s); … … 367 367 parseStringI18N(reader, strict, ns, "restrictions", true); 368 368 if (restrictions == null) { 369 restrictions = new ArrayList< LocalizedString>();369 restrictions = new ArrayList<>(); 370 370 } 371 371 restrictions.add(s); … … 375 375 parseStringI18N(reader, strict, ns, "subjects", true); 376 376 if (subjects == null) { 377 subjects = new ArrayList< LocalizedString>();377 subjects = new ArrayList<>(); 378 378 } 379 379 subjects.add(s); … … 383 383 parseStringI18N(reader, strict, ns, "links", true); 384 384 if (links == null) { 385 links = new ArrayList< LocalizedString>();385 links = new ArrayList<>(); 386 386 } 387 387 links.add(s); … … 392 392 parseStringI18N(reader, strict, ns, "implementation", true); 393 393 if (implementation == null) { 394 implementation = new ArrayList< LocalizedString>();394 implementation = new ArrayList<>(); 395 395 } 396 396 implementation.add(s); … … 439 439 } 440 440 if (titles == null) { 441 titles = new ArrayList< LocalizedString>();441 titles = new ArrayList<>(); 442 442 } 443 443 titles.add(title); … … 446 446 447 447 if (sets == null) { 448 sets = new ArrayList< IndexInfo.Set>();448 sets = new ArrayList<>(); 449 449 } 450 450 sets.add(new IndexInfo.Set(identifier, name, titles)); … … 471 471 } 472 472 if (titles == null) { 473 titles = new ArrayList< LocalizedString>();473 titles = new ArrayList<>(); 474 474 } 475 475 titles.add(title); … … 508 508 if ((set != null) && (name != null)) { 509 509 if (maps == null) { 510 maps = new ArrayList< IndexInfo.Index.Map>();510 maps = new ArrayList<>(); 511 511 } 512 512 maps.add(new IndexInfo.Index.Map(primary, set, name)); … … 531 531 XmlStreamReaderUtils.readEnd(reader, ns, "index"); 532 532 if (indexes == null) { 533 indexes = new ArrayList< IndexInfo.Index>();533 indexes = new ArrayList<>(); 534 534 } 535 535 indexes.add(new IndexInfo.Index(id, titles, can_search, … … 681 681 } 682 682 if (titles == null) { 683 titles = new ArrayList< LocalizedString>();683 titles = new ArrayList<>(); 684 684 } 685 685 titles.add(title); … … 688 688 689 689 if (schemaInfo == null) { 690 schemaInfo = new ArrayList< Schema>();690 schemaInfo = new ArrayList<>(); 691 691 } 692 692 schemaInfo.add(new Schema(identifier, name, location, sort, … … 711 711 if ((type != null) && (value != null)) { 712 712 if (map == null) { 713 map = new HashMap< String, String>();713 map = new HashMap<>(); 714 714 } 715 715 if (map.containsKey(type)) {
Note: See TracChangeset
for help on using the changeset viewer.