comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java @ 823:499cfbbb61bc

Removed obsolet SuppressWarnings-Annotations. gnv-artifacts/trunk@910 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 13 Apr 2010 08:25:34 +0000
parents cda3bede32f8
children 3ab5754e72e3
comparison
equal deleted inserted replaced
822:ac1b9f00603f 823:499cfbbb61bc
663 */ 663 */
664 protected Document writeStatistics2XML( Collection<StatisticSet> statistic) { 664 protected Document writeStatistics2XML( Collection<StatisticSet> statistic) {
665 ArtifactXMLUtilities xmlUtilities = new ArtifactXMLUtilities(); 665 ArtifactXMLUtilities xmlUtilities = new ArtifactXMLUtilities();
666 Document doc = XMLUtils.newDocument(); 666 Document doc = XMLUtils.newDocument();
667 if (statistic != null) { 667 if (statistic != null) {
668 @SuppressWarnings("static-access")
669 Node statisticResults = ArtifactXMLUtilities.createArtifactElement(doc, 668 Node statisticResults = ArtifactXMLUtilities.createArtifactElement(doc,
670 "statistics"); 669 "statistics");
671 doc.appendChild(statisticResults); 670 doc.appendChild(statisticResults);
672 Iterator<StatisticSet> it = statistic.iterator(); 671 Iterator<StatisticSet> it = statistic.iterator();
673 while (it.hasNext()) { 672 while (it.hasNext()) {
674 StatisticSet set = it.next(); 673 StatisticSet set = it.next();
675 @SuppressWarnings("static-access")
676 Element setElement = ArtifactXMLUtilities.createArtifactElement(doc, 674 Element setElement = ArtifactXMLUtilities.createArtifactElement(doc,
677 "statistic"); 675 "statistic");
678 setElement.setAttribute("name", set.getName()); 676 setElement.setAttribute("name", set.getName());
679 677
680 Iterator<Statistic> sit = set.getStatistics().iterator(); 678 Iterator<Statistic> sit = set.getStatistics().iterator();
681 while (sit.hasNext()){ 679 while (sit.hasNext()){
682 Statistic s = sit.next(); 680 Statistic s = sit.next();
683 @SuppressWarnings("static-access")
684 Element result = ArtifactXMLUtilities.createArtifactElement(doc, 681 Element result = ArtifactXMLUtilities.createArtifactElement(doc,
685 "statistic-value"); 682 "statistic-value");
686 result.setAttribute("name", s.getKey()); 683 result.setAttribute("name", s.getKey());
687 result.setAttribute("value", s.getStringValue()); 684 result.setAttribute("value", s.getStringValue());
688 setElement.appendChild(result); 685 setElement.appendChild(result);

http://dive4elements.wald.intevation.org