comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java @ 3876:c0a15547ad76

Use generics aware Collections.emptyList(). flys-artifacts/trunk@5511 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 18 Sep 2012 16:24:51 +0000
parents db6bb4c1f41f
children 1dc658c3306b
comparison
equal deleted inserted replaced
3875:d12f108ccc9c 3876:c0a15547ad76
558 558
559 public List<Segment> getSegments() { 559 public List<Segment> getSegments() {
560 StateData wqValues = getData("wq_values"); 560 StateData wqValues = getData("wq_values");
561 if (wqValues == null) { 561 if (wqValues == null) {
562 logger.warn("no wq_values given"); 562 logger.warn("no wq_values given");
563 return Collections.emptyList(); 563 return Collections.<Segment>emptyList();
564 } 564 }
565 String input = (String) wqValues.getValue(); 565 String input = (String) wqValues.getValue();
566 if (input == null || (input = input.trim()).length() == 0) { 566 if (input == null || (input = input.trim()).length() == 0) {
567 logger.warn("wq_values are empty"); 567 logger.warn("wq_values are empty");
568 return Collections.emptyList(); 568 return Collections.<Segment>emptyList();
569 } 569 }
570 return Segment.parseSegments(input); 570 return Segment.parseSegments(input);
571 } 571 }
572 572
573 573

http://dive4elements.wald.intevation.org