From 84cc5fb1c65b6e4dd9bb66b65e5d85faca298979 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Thu, 3 Aug 2006 17:03:19 +0000 Subject: [PATCH] Fixed casting error. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@4796 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/SmackConfiguration.java | 2 +- source/org/jivesoftware/smack/provider/ProviderManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/org/jivesoftware/smack/SmackConfiguration.java b/source/org/jivesoftware/smack/SmackConfiguration.java index 86d144112..5646b5271 100644 --- a/source/org/jivesoftware/smack/SmackConfiguration.java +++ b/source/org/jivesoftware/smack/SmackConfiguration.java @@ -213,6 +213,6 @@ public final class SmackConfiguration { loaders.add(classLoader); } } - return (ClassLoader[]) loaders.toArray(); + return loaders.toArray(new ClassLoader[loaders.size()]); } } diff --git a/source/org/jivesoftware/smack/provider/ProviderManager.java b/source/org/jivesoftware/smack/provider/ProviderManager.java index d94a8e603..924d1766b 100644 --- a/source/org/jivesoftware/smack/provider/ProviderManager.java +++ b/source/org/jivesoftware/smack/provider/ProviderManager.java @@ -391,7 +391,7 @@ public class ProviderManager { loaders.add(classLoader); } } - return (ClassLoader[]) loaders.toArray(); + return loaders.toArray(new ClassLoader[loaders.size()]); } private ProviderManager() {