Skip to content

Commit

Permalink
Cleanup: Removed declared exceptions which were not thrown
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Nov 14, 2022
1 parent 041f3da commit ba84fad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -80,7 +80,7 @@ public JavaURLContext(SimpleJndiName name) {
/**
* Create a context with the specified environment.
*/
public JavaURLContext(Hashtable<Object, Object> environment) throws NamingException {
public JavaURLContext(Hashtable<Object, Object> environment) {
this.myEnv = getMyEnv(environment);
this.myName = new SimpleJndiName("");
this.serialContext = null;
Expand All @@ -91,7 +91,7 @@ public JavaURLContext(Hashtable<Object, Object> environment) throws NamingExcept
* Create a context with the specified name+environment.
* Called only from GlassfishNamingManager.
*/
public JavaURLContext(SimpleJndiName name, Hashtable<Object, Object> environment) throws NamingException {
public JavaURLContext(SimpleJndiName name, Hashtable<Object, Object> environment) {
this.myEnv = getMyEnv(environment);
this.myName = Objects.requireNonNull(name, "name");
this.serialContext = null;
Expand All @@ -101,7 +101,7 @@ public JavaURLContext(SimpleJndiName name, Hashtable<Object, Object> environment
/**
* this constructor is called from SerialContext class
*/
public JavaURLContext(Hashtable<Object, Object> environment, SerialContext serialContext) throws NamingException {
public JavaURLContext(Hashtable<Object, Object> environment, SerialContext serialContext) {
this.myEnv = getMyEnv(environment);
this.myName = new SimpleJndiName("");
this.serialContext = serialContext;
Expand Down
Expand Up @@ -197,7 +197,7 @@ void clear() {
* All name arguments to operations are prepended by the component id.
* Initializes the object reference to the remote provider object.
*/
public SerialContext(String name, Hashtable<Object, Object> environment, ServiceLocator h) throws NamingException {
public SerialContext(String name, Hashtable<Object, Object> environment, ServiceLocator h) {
services = h;
myEnv = environment == null ? new Hashtable<>() : (Hashtable<Object, Object>) environment.clone();

Expand Down

0 comments on commit ba84fad

Please sign in to comment.