Fix peer review issues

This commit is contained in:
René Pfeuffer
2020-06-02 21:31:33 +02:00
parent 273bcb6f1a
commit a32bd01c45
6 changed files with 12 additions and 101 deletions

View File

@@ -45,7 +45,7 @@ public class WorkingCopyPoolModule extends AbstractModule {
Class<? extends WorkingCopyPool> strategyClass = (Class<? extends WorkingCopyPool>) classLoader.loadClass(workingCopyPoolStrategy);
bind(WorkingCopyPool.class).to(strategyClass);
} catch (Exception e) {
throw new RuntimeException("could not instantiate class for working copy pool: " + workingCopyPoolStrategy, e);
throw new IllegalStateException("could not instantiate class for working copy pool: " + workingCopyPoolStrategy, e);
}
}
}