Author: markt Date: Sun Apr 30 19:24:05 2017 New Revision: 1793266 URL: http://svn.apache.org/viewvc?rev=1793266&view=rev Log: Refactor to reduce duplicate code
Modified: tomcat/trunk/java/org/apache/tomcat/util/descriptor/web/SecurityCollection.java Modified: tomcat/trunk/java/org/apache/tomcat/util/descriptor/web/SecurityCollection.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/descriptor/web/SecurityCollection.java?rev=1793266&r1=1793265&r2=1793266&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/descriptor/web/SecurityCollection.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/descriptor/web/SecurityCollection.java Sun Apr 30 19:24:05 2017 @@ -34,29 +34,10 @@ import org.apache.tomcat.util.buf.UDecod * * @author Craig R. McClanahan */ -public class SecurityCollection implements Serializable { +public class SecurityCollection extends XmlEncodingBase implements Serializable { private static final long serialVersionUID = 1L; - private String encoding = null; - public void setEncoding(String encoding) { - this.encoding = encoding; - } - /** - * Obtain the encoding of the XML source that was used to populated this - * object. - * - * @return The encoding of the associated XML source or <code>UTF-8</code> - * if the encoding could not be determined - */ - public String getEncoding() { - if (encoding == null || encoding.length() == 0) { - return "UTF-8"; - } - return encoding; - } - - // ----------------------------------------------------------- Constructors --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org