@@ -82,7 +82,7 @@ private[soap] class PlayJaxWsProxyFactoryBean extends ClientProxyFactoryBean(new
8282 * @param h
8383 * a <code>List</code> of <code>Handler</code> objects
8484 */
85- def setHandlers (h : JList [Handler [_ <: MessageContext ]]) {
85+ def setHandlers (h : JList [Handler [_ <: MessageContext ]]): Unit = {
8686 handlers.clear()
8787 handlers.addAll(h)
8888 }
@@ -97,7 +97,7 @@ private[soap] class PlayJaxWsProxyFactoryBean extends ClientProxyFactoryBean(new
9797 handlers
9898 }
9999
100- def setLoadHandlers (b : Boolean ) {
100+ def setLoadHandlers (b : Boolean ): Unit = {
101101 loadHandlers = b
102102 }
103103
@@ -123,7 +123,7 @@ private[soap] class PlayJaxWsProxyFactoryBean extends ClientProxyFactoryBean(new
123123 * @return
124124 * the proxy. You must cast the returned object to the approriate class before making remote calls
125125 */
126- override def create : AnyRef = {
126+ override def create () : AnyRef = {
127127 var orig : ClassLoaderUtils .ClassLoaderHolder = null
128128 try {
129129 if (getBus != null ) {
@@ -132,7 +132,7 @@ private[soap] class PlayJaxWsProxyFactoryBean extends ClientProxyFactoryBean(new
132132 orig = ClassLoaderUtils .setThreadContextClassloader(loader)
133133 }
134134 }
135- val obj : AnyRef = super .create
135+ val obj : AnyRef = super .create()
136136
137137 val service : Service = getServiceFactory.getService
138138 if (needWrapperClassInterceptor(service.getServiceInfos.get(0 ))) {
@@ -156,13 +156,10 @@ private[soap] class PlayJaxWsProxyFactoryBean extends ClientProxyFactoryBean(new
156156 if (serviceInfo == null ) {
157157 return false
158158 }
159- import scala .collection .JavaConverters ._
160- for (opInfo <- serviceInfo.getInterface.getOperations.asScala) {
161- if (opInfo.isUnwrappedCapable && opInfo.getProperty(ReflectionServiceFactoryBean .WRAPPERGEN_NEEDED ) != null ) {
162- return true
163- }
164- }
165- return false
159+ import scala .jdk .CollectionConverters ._
160+ serviceInfo.getInterface.getOperations.asScala.exists(opInfo =>
161+ opInfo.isUnwrappedCapable && opInfo.getProperty(ReflectionServiceFactoryBean .WRAPPERGEN_NEEDED ) != null
162+ )
166163 }
167164
168165 private def buildHandlerChain (cp : PlayJaxWsClientProxy ): Unit = {
@@ -185,7 +182,7 @@ private[soap] class PlayJaxWsProxyFactoryBean extends ClientProxyFactoryBean(new
185182 resourceManager = new DefaultResourceManager (resolvers)
186183 resourceManager.addResourceResolver(new WebServiceContextResourceResolver )
187184 val injector : ResourceInjector = new ResourceInjector (resourceManager)
188- import scala .collection . JavaConverters ._
185+ import scala .jdk . CollectionConverters ._
189186 for (h <- chain.asScala) {
190187 if (Proxy .isProxyClass(h.getClass) && getServiceClass != null ) {
191188 injector.inject(h, getServiceClass)
0 commit comments