Author: jleroux
Date: Thu Nov 5 09:29:51 2009 New Revision: 833025 URL: http://svn.apache.org/viewvc?rev=833025&view=rev Log: A patch from Bob Morley "Resolve java warnings exposed in Eclipse : framework - catalina" (https://issues.apache.org/jira/browse/OFBIZ-3104) - OFBIZ-3104 Modified: ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/OfbizStore.java ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/SSLImpl.java Modified: ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java?rev=833025&r1=833024&r2=833025&view=diff ============================================================================== --- ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java (original) +++ ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java Thu Nov 5 09:29:51 2009 @@ -25,19 +25,12 @@ import java.util.Iterator; import java.util.List; import java.util.Map; + import javax.naming.InitialContext; import javax.naming.NamingException; import javax.xml.parsers.ParserConfigurationException; -import org.ofbiz.base.component.ComponentConfig; -import org.ofbiz.base.container.ClassLoaderContainer; -import org.ofbiz.base.container.Container; -import org.ofbiz.base.container.ContainerConfig; -import org.ofbiz.base.container.ContainerException; -import org.ofbiz.base.container.ContainerConfig.Container.Property; -import org.ofbiz.base.util.*; -import org.ofbiz.entity.Delegator; -import org.ofbiz.entity.DelegatorFactory; +import javolution.util.FastList; import org.apache.catalina.Cluster; import org.apache.catalina.Context; @@ -46,33 +39,42 @@ import org.apache.catalina.LifecycleException; import org.apache.catalina.Manager; import org.apache.catalina.ServerFactory; -import org.apache.catalina.ha.tcp.ReplicationValve; -import org.apache.catalina.ha.tcp.SimpleTcpCluster; -import org.apache.catalina.tribes.Channel; -import org.apache.catalina.tribes.ChannelReceiver; -import org.apache.catalina.tribes.group.GroupChannel; -import org.apache.catalina.tribes.membership.McastService; -import org.apache.catalina.tribes.transport.MultiPointSender; -import org.apache.catalina.tribes.transport.ReplicationTransmitter; -import org.apache.catalina.tribes.transport.nio.NioReceiver; - import org.apache.catalina.connector.Connector; import org.apache.catalina.core.StandardContext; import org.apache.catalina.core.StandardEngine; import org.apache.catalina.core.StandardServer; import org.apache.catalina.core.StandardWrapper; +import org.apache.catalina.ha.tcp.ReplicationValve; +import org.apache.catalina.ha.tcp.SimpleTcpCluster; import org.apache.catalina.realm.MemoryRealm; import org.apache.catalina.session.StandardManager; import org.apache.catalina.startup.Embedded; +import org.apache.catalina.tribes.group.GroupChannel; +import org.apache.catalina.tribes.membership.McastService; +import org.apache.catalina.tribes.transport.MultiPointSender; +import org.apache.catalina.tribes.transport.ReplicationTransmitter; +import org.apache.catalina.tribes.transport.nio.NioReceiver; import org.apache.catalina.util.ServerInfo; import org.apache.catalina.valves.AccessLogValve; import org.apache.catalina.valves.RequestDumperValve; import org.apache.coyote.ProtocolHandler; import org.apache.coyote.http11.Http11Protocol; +import org.ofbiz.base.component.ComponentConfig; +import org.ofbiz.base.container.ClassLoaderContainer; +import org.ofbiz.base.container.Container; +import org.ofbiz.base.container.ContainerConfig; +import org.ofbiz.base.container.ContainerException; +import org.ofbiz.base.container.ContainerConfig.Container.Property; +import org.ofbiz.base.util.Debug; +import org.ofbiz.base.util.SSLUtil; +import org.ofbiz.base.util.UtilURL; +import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.base.util.UtilXml; +import org.ofbiz.entity.Delegator; +import org.ofbiz.entity.DelegatorFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.xml.sax.SAXException; -import javolution.util.FastList; /* * --- Access Log Pattern Information - From Tomcat 5 AccessLogValve.java Modified: ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/OfbizStore.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/OfbizStore.java?rev=833025&r1=833024&r2=833025&view=diff ============================================================================== --- ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/OfbizStore.java (original) +++ ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/OfbizStore.java Thu Nov 5 09:29:51 2009 @@ -18,29 +18,26 @@ *******************************************************************************/ package org.ofbiz.catalina.container; -import java.io.IOException; -import java.io.ObjectInputStream; import java.io.BufferedInputStream; +import java.io.BufferedOutputStream; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import java.io.BufferedOutputStream; import java.util.List; -import java.util.Iterator; +import org.apache.catalina.Container; +import org.apache.catalina.Loader; +import org.apache.catalina.Session; +import org.apache.catalina.Store; +import org.apache.catalina.session.StandardSession; +import org.apache.catalina.session.StoreBase; +import org.apache.catalina.util.CustomObjectInputStream; +import org.ofbiz.base.util.Debug; import org.ofbiz.entity.Delegator; import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; -import org.ofbiz.base.util.UtilMisc; -import org.ofbiz.base.util.Debug; - -import org.apache.catalina.session.StoreBase; -import org.apache.catalina.session.StandardSession; -import org.apache.catalina.Store; -import org.apache.catalina.Session; -import org.apache.catalina.Loader; -import org.apache.catalina.Container; -import org.apache.catalina.util.CustomObjectInputStream; public class OfbizStore extends StoreBase implements Store { Modified: ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/SSLImpl.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/SSLImpl.java?rev=833025&r1=833024&r2=833025&view=diff ============================================================================== --- ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/SSLImpl.java (original) +++ ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/SSLImpl.java Thu Nov 5 09:29:51 2009 @@ -19,19 +19,17 @@ package org.ofbiz.catalina.container; +import java.security.cert.CertificateException; +import java.security.cert.X509Certificate; + +import javax.net.ssl.TrustManager; +import javax.net.ssl.X509TrustManager; + import org.apache.tomcat.util.net.ServerSocketFactory; import org.apache.tomcat.util.net.jsse.JSSEFactory; import org.apache.tomcat.util.net.jsse.JSSEImplementation; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.SSLUtil; -import org.ofbiz.base.config.GenericConfigException; - -import javax.net.ssl.TrustManager; -import javax.net.ssl.X509TrustManager; -import java.security.cert.X509Certificate; -import java.security.cert.CertificateException; -import java.security.GeneralSecurityException; -import java.io.IOException; /** * SSLImpl |
Free forum by Nabble | Edit this page |