/**
* Custom mappings of login methods to authenticators
*/
- protected HashMap<String,Authenticator> authenticators;
+ protected volatile HashMap<String,Authenticator> authenticators;
/**
// Keeping a reference to the thread object here does not prevent
// GC'ing, as the reference is removed from the Map in the finally clause
- Long key = new Long(Thread.currentThread().getId());
+ Long key = Long.valueOf(Thread.currentThread().getId());
StringBuffer requestUrl = request.getRequestURL();
if(request.getQueryString()!=null) {
requestUrl.append("?");
return result;
}
- private class MonitoredThread {
+ private static class MonitoredThread {
/**
* Reference to the thread to get a stack trace from background task
}
}
- private class CompletedStuckThread {
+ private static class CompletedStuckThread {
private String threadName;
private long totalActiveTime;
assertFalse("No threads should be waiting", latch.hasQueuedThreads());
}
- private class TestThread extends Thread {
+ private static class TestThread extends Thread {
private int holdTime;
private LimitLatch latch;