Author: alessio.soldano(a)jboss.com
Date: 2013-05-29 12:59:39 -0400 (Wed, 29 May 2013)
New Revision: 17629
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/RequestHandlerImpl.java
Log:
No need for lazy instanciating the RequestHandlerImpl
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/RequestHandlerImpl.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/RequestHandlerImpl.java 2013-05-29
16:24:56 UTC (rev 17628)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/RequestHandlerImpl.java 2013-05-29
16:59:39 UTC (rev 17629)
@@ -64,19 +64,15 @@
*/
public class RequestHandlerImpl implements RequestHandler
{
- private static RequestHandlerImpl me;
+ private static RequestHandlerImpl me = new RequestHandlerImpl();
RequestHandlerImpl()
{
//NOOP
}
- static synchronized RequestHandlerImpl getInstance()
+ static RequestHandlerImpl getInstance()
{
- if (me == null)
- {
- me = new RequestHandlerImpl();
- }
return me;
}
Show replies by date