Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2014-01-29 02:19:38 +0000
committerRyan D. Brooks2014-01-29 02:19:38 +0000
commit996dc6659e3bc29434887df575ac0ca9488df198 (patch)
tree35bc72c105d4a775e6d6bca37f8e5e4e592bb9be /plugins/org.eclipse.osee.framework.jdk.core
parent766a016fc8f6a8f7c772d603dd86d469da9b64d9 (diff)
downloadorg.eclipse.osee-996dc6659e3bc29434887df575ac0ca9488df198.tar.gz
org.eclipse.osee-996dc6659e3bc29434887df575ac0ca9488df198.tar.xz
org.eclipse.osee-996dc6659e3bc29434887df575ac0ca9488df198.zip
refactor: Allow Collections.toString to accept Iterable
Diffstat (limited to 'plugins/org.eclipse.osee.framework.jdk.core')
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java
index b86d3820a20..44b1967dcb8 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java
@@ -39,7 +39,7 @@ public class Collections {
* @return A String which starts with 'start', followed by the elements in the Collection c separated by 'separator',
* ending with 'end'.
*/
- public static String toString(Collection<?> items, String prefix, String separator, String suffix) {
+ public static String toString(Iterable<?> items, String prefix, String separator, String suffix) {
StringBuilder strB = new StringBuilder();
if (prefix != null) {
@@ -67,7 +67,7 @@ public class Collections {
return toString(separator, Arrays.asList(items));
}
- public static String toString(String separator, Collection<?> c) {
+ public static String toString(String separator, Iterable<?> c) {
return toString(c, null, separator, null);
}

Back to the top