CPD Results
The following document contains the results of PMD's CPD 3.9.
Duplications
File | Line |
---|
org/apache/geronimo/gshell/whisper/transport/base/BaseTransport.java | 79 |
org/apache/geronimo/gshell/whisper/transport/base/BaseTransportServer.java | 59 |
implements TransportServer.Configuration
{
// TODO:
}
private Configuration config;
protected abstract Configuration createConfiguration();
public synchronized Configuration getConfiguration() {
if (config == null) {
config = createConfiguration();
}
return config;
}
public synchronized void setConfiguration(final Configuration config) {
assert config != null;
this.config = config;
log.debug("Using configuration: {}", config);
}
@Override
protected synchronized BaseConfiguration getBaseConfiguration() {
return (BaseConfiguration) getConfiguration();
}
@Override
protected synchronized ThreadModel createThreadModel() throws Exception {
return new ThreadPoolModel(getClass(), INSTANCE_COUNTER);
}
//
// Acceptor
//
protected abstract T createAcceptor() throws Exception; |