private boolean init;
- private synchronized void init() throws Exception {
+ private synchronized void init() {
if (init) return;
Tomcat tomcat = getTomcatInstance();
* any of the {@link HttpServletRequest} getParameterXXX() methods if the
* request is chunked.
*/
- public void testBug37794() throws Exception {
+ public void testBug37794() {
Bug37794Client client = new Bug37794Client();
client.setPort(getPort());
/**
* Simple serialization / de-serialization test for bug 43840.
*/
+ @SuppressWarnings("null")
public void testWriteReadPrincipal() {
// Get a temporary file to use for the serialization test
File file = null;
public class TesterPrincipal implements Principal, Serializable {
+ private static final long serialVersionUID = 1L;
+
private String name;
public TesterPrincipal(String theName) {
a.addBeforeOrder("b");
b.addBeforeOrder("a");
- Exception e = null;
+ Exception exception = null;
try {
WebXml.orderWebFragments(app, fragments);
} catch (Exception e1) {
- e = e1;
+ exception = e1;
}
- assertTrue(e instanceof IllegalArgumentException);
+ assertTrue(exception instanceof IllegalArgumentException);
}
}