package org.apache.catalina.deploy;
+import java.io.Serializable;
+
/**
* Representation of a the multipart configuration for a servlet.
*/
-public class MultipartDef {
+public class MultipartDef implements Serializable {
+
+ private static final long serialVersionUID = 1L;
// ------------------------------------------------------------- Properties
private String location;
private static final long serialVersionUID = 1L;
// Logger
- private final Log log = LogFactory.getLog(JspServlet.class);
+ private final transient Log log = LogFactory.getLog(JspServlet.class);
- private ServletContext context;
+ private transient ServletContext context;
private ServletConfig config;
- private Options options;
- private JspRuntimeContext rctxt;
+ private transient Options options;
+ private transient JspRuntimeContext rctxt;
//jspFile for a jsp configured explicitly as a servlet, in environments where this configuration is
//translated into an init-param for this servlet.
private String jspFile;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
+import java.io.Serializable;
/**
* This class represents a stack map entry recording the types of
* @see StackMap
* @see StackMapType
*/
-public final class StackMapEntry implements Cloneable {
+public final class StackMapEntry implements Cloneable, Serializable {
+
+ private static final long serialVersionUID = 1L;
private int byte_code_offset;
private int number_of_locals;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
+import java.io.Serializable;
import org.apache.tomcat.util.bcel.Constants;
* @see StackMap
* @see StackMapType
*/
-public final class StackMapTableEntry implements Cloneable {
+public final class StackMapTableEntry implements Cloneable, Serializable {
+
+ private static final long serialVersionUID = 1L;
private int frame_type;
private int byte_code_offset_delta;
import java.io.DataInput;
import java.io.DataOutputStream;
import java.io.IOException;
+import java.io.Serializable;
import org.apache.tomcat.util.bcel.Constants;
* @see StackMap
* @see Constants
*/
-public final class StackMapType implements Cloneable {
+public final class StackMapType implements Cloneable, Serializable {
+
+ private static final long serialVersionUID = 1L;
private byte type;
private int index = -1; // Index to CONSTANT_Class or offset
<Bug code="Dm" />
</Match>
<Match>
+ <!-- Field is only modified during Servlet load -->
+ <Class name="org.apache.catalina.manager.host.HostManagerServlet" />
+ <Bug code="MSF" />
+ </Match>
+ <Match>
<!-- Sleep is short, needs to keep lock -->
<Class name="org.apache.catalina.startup.HostConfig" />
<Method name="checkResources" />
<Bug code="Nm" />
</Match>
<Match>
+ <!-- Field by field copy is fine for clone in thos case -->
+ <Class name="org.apache.tomcat.util.bcel.classfile.StackMapType"/>
+ <Bug code="CN" />
+ </Match>
+ <Match>
<!-- Returning null here is fine -->
<Class name="org.apache.tomcat.util.buf.MessageBytes"/>
<Method name="toString"/>