changeset 1020:a776afdf1ec5

Cosmetic: Replaced usage of legacy java.util.Stack with java.util.Deque. flys-artifacts/trunk@2475 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 09 Aug 2011 10:23:04 +0000
parents aff2a0a29aa3
children 3d36e6000915
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/QRangeTree.java
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Aug 04 15:32:10 2011 +0000
+++ b/flys-artifacts/ChangeLog	Tue Aug 09 10:23:04 2011 +0000
@@ -1,3 +1,8 @@
+2011-08-09  Sascha L. Teichmann <sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/model/QRangeTree.java:
+	  Cosmetic: Replaced usage of legacy java.util.Stack with java.util.Deque.
+
 2011-08-04  Sascha L. Teichmann <sascha.teichmann@intevation.de>
 
 	* doc/conf/meta-data-user.xml: Use 'CAST(x AS uuid)' instead of 'x::uuid'
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/QRangeTree.java	Thu Aug 04 15:32:10 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/QRangeTree.java	Tue Aug 09 10:23:04 2011 +0000
@@ -167,9 +167,9 @@
         sb.append(name(this));
         sb.append(" {\n");
         if (root != null) {
-            java.util.Stack<Node> stack = new java.util.Stack<Node>();
+            java.util.Deque<Node> stack = new java.util.ArrayDeque<Node>();
             stack.push(root);
-            while (!stack.empty()) {
+            while (!stack.isEmpty()) {
                 Node current = stack.pop();
                 String name = "n" + name(current);
                 sb.append(name);

http://dive4elements.wald.intevation.org