private int threadCount = 0;
private boolean triggerNewInstanceCreation;
- TestingFixedThreadPoolModule(ModuleIdentifier name,
- @Nullable AutoCloseable oldCloseable,
- @Nullable TestingFixedThreadPool oldInstance) {
+ TestingFixedThreadPoolModule(final ModuleIdentifier name,
+ @Nullable final AutoCloseable oldCloseable,
+ @Nullable final TestingFixedThreadPool oldInstance) {
this.name = name;
this.oldCloseable = oldCloseable;
this.oldInstance = oldInstance;
// attributes
@Override
- public void setThreadCount(int threadCount) {
+ public void setThreadCount(final int threadCount) {
this.threadCount = threadCount;
}
}
@Override
- public void setTriggerNewInstanceCreation(boolean triggerNewInstanceCreation) {
+ public void setTriggerNewInstanceCreation(final boolean triggerNewInstanceCreation) {
this.triggerNewInstanceCreation = triggerNewInstanceCreation;
}
if (oldCloseable != null) {
try {
oldCloseable.close();
- } catch (Exception e) {
+ } catch (final Exception e) {
throw new RuntimeException(e);
}
}