Skip to content

Commit

Permalink
fix: spotbug and pmd warings
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Dec 21, 2022
1 parent 29718ff commit 5b0b1ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ConfigurationContext {

private final List<Module> injectionModuleList = new ArrayList<>();

private ClassFinder classFinder = null;
private ClassFinder classFinder;

private final List<EventListener> servletContextEventListenerList = new ArrayList<>();

Expand All @@ -23,7 +23,7 @@ public void addServletContextEventListener(EventListener listener) {
}

public List<EventListener> getServletContextEventListener() {
return this.servletContextEventListenerList;
return Collections.unmodifiableList(this.servletContextEventListenerList);
}

public void addInjectionModule(Module injectionModule) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@

public class InvalidExtensionClass extends ExtensionException {

private Class<? extends Extension> extensionClass;
private final Class<? extends Extension> extensionClass;

private static final long serialVersionUID = 1L;

public InvalidExtensionClass(Class<? extends Extension> extensionClass, String message) {
super(message);
this.extensionClass = extensionClass;
}

public InvalidExtensionClass(Class<? extends Extension> extensionClass, String message, Throwable t) {
super(message, t);
this.extensionClass = extensionClass;
}

public Class<? extends Extension> getExtensionClass() {
Expand Down

0 comments on commit 5b0b1ae

Please sign in to comment.