Skip to content

Commit

Permalink
Perform clean code of bundles/org.eclipse.equinox.http.servlet
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipse-equinox-bot authored and laeubi committed Jan 30, 2025
1 parent 4b09e8c commit 5bda58e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class ProxyContext {

private final ConcurrentMap<ContextController, ContextAttributes> attributesMap = new ConcurrentHashMap<>();
File proxyContextTempDir;
private ServletContext servletContext;
private final ServletContext servletContext;

public ProxyContext(String contextName, ServletContext servletContext) {
this.servletContext = servletContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public int size() {
return collection.size();
}

private List<String> collection;
private final List<String> collection;

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void remove(List<Class<? extends EventListener>> classes, ListenerRegistr
}
}

private ConcurrentMap<Class<? extends EventListener>, List<ListenerRegistration>> map = new ConcurrentHashMap<>();
private final ConcurrentMap<Class<? extends EventListener>, List<ListenerRegistration>> map = new ConcurrentHashMap<>();

class ListenerList<R extends EventListener> extends AbstractList<R> {

Expand All @@ -107,7 +107,7 @@ public int size() {
return list.size();
}

private List<ListenerRegistration> list;
private final List<ListenerRegistration> list;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Set<java.util.Map.Entry<String, Object>> entrySet() {
return entries;
}

private Set<java.util.Map.Entry<String, Object>> entries;
private final Set<java.util.Map.Entry<String, Object>> entries;

private static class ReferenceEntry implements Map.Entry<String, Object> {

Expand All @@ -63,8 +63,8 @@ public String getKey() {
return key;
}

private String key;
private Object value;
private final String key;
private final Object value;

}

Expand Down

0 comments on commit 5bda58e

Please sign in to comment.