From efde227b9d0180122362133a750c6b322601c883 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 19 Jul 2007 20:28:20 +0000
Subject: [PATCH] This initial implementation lays most of the groundwork necessary for signaling information and actions to the user during upgrade and reversion. However the only public effect this code has on the current upgrade tool is an informational dialog dialog if an upgrade is attempted from a build prior to one of the issues (2049, 1582, 890).
---
opends/src/server/org/opends/server/util/StaticUtils.java | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/util/StaticUtils.java b/opends/src/server/org/opends/server/util/StaticUtils.java
index f9c77f8..768eefb 100644
--- a/opends/src/server/org/opends/server/util/StaticUtils.java
+++ b/opends/src/server/org/opends/server/util/StaticUtils.java
@@ -3256,7 +3256,26 @@
return stringArray;
}
-
+ /**
+ * Creates a string representation of the elements in the
+ * <code>list</code> separated by <code>separator</code>.
+ *
+ * @param list the list to print
+ * @param separator to use between elements
+ *
+ * @return String representing the list
+ */
+ static public String listToString(List<?> list, String separator)
+ {
+ StringBuffer sb = new StringBuffer();
+ for (int i = 0; i < list.size(); i++) {
+ sb.append(list.get(i));
+ if (i < list.size() - 1) {
+ sb.append(separator);
+ }
+ }
+ return sb.toString();
+ }
/**
* Retrieves an array list containing the contents of the provided array.
--
Gitblit v1.10.0