cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Optimizing the BeanParam instantiation code, thanks to shisholik
Date Wed, 15 Oct 2014 13:34:24 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 1496fd48c -> 986aa4da6


Optimizing the BeanParam instantiation code, thanks to shisholik


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/986aa4da
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/986aa4da
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/986aa4da

Branch: refs/heads/master
Commit: 986aa4da6981a43b305792a22103cacc1eb9b060
Parents: 1496fd4
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed Oct 15 14:33:56 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Oct 15 14:33:56 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/986aa4da/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
index d85a26b..d9b757d 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
@@ -82,7 +82,6 @@ import javax.ws.rs.ext.WriterInterceptor;
 import javax.ws.rs.ext.WriterInterceptorContext;
 import javax.xml.namespace.QName;
 
-import org.apache.cxf.common.classloader.ClassLoaderUtils;
 import org.apache.cxf.common.i18n.BundleUtils;
 import org.apache.cxf.common.logging.LogUtils;
 import org.apache.cxf.common.util.PackageUtils;
@@ -1039,7 +1038,7 @@ public final class JAXRSUtils {
         }
         Object instance;
         try {
-            instance = ClassLoaderUtils.loadClass(clazz.getName(), JAXRSUtils.class).newInstance();
+            instance = clazz.newInstance();
         } catch (Throwable t) {
             throw ExceptionUtils.toInternalServerErrorException(t, null); 
         }


Mime
View raw message