Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-45522] - Address comments from @jglick
  • Loading branch information
oleg-nenashev committed Aug 7, 2017
1 parent 62f3213 commit 158c249
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/hudson/remoting/ClassFilter.java
Expand Up @@ -93,13 +93,15 @@ public final Class check(Class c) {
DEFAULT = createDefaultInstance();
} catch (ClassFilterException ex) {
LOGGER.log(Level.SEVERE, "Default class filter cannot be initialized. Remoting will not start", ex);
throw new IllegalStateException("Default class filter cannot be initialized", ex);
throw new ExceptionInInitializerError(ex);
}
}

/**
* Adds an additional exclusion to {@link #DEFAULT}.
*
* Does nothing if the default list has already been customized via {@link #FILE_OVERRIDE_LOCATION_PROPERTY}.
* This API is not supposed to be used anywhere outside Jenkins core, calls for other sources may be rejected later.
* @param filter a regular expression for {@link Class#getName} which, if matched according to {@link Matcher#matches}, will blacklist the class
* @throws ClassFilterException Filter pattern cannot be applied.
* It means either unexpected processing error or rejection by the internal logic.
Expand Down

0 comments on commit 158c249

Please sign in to comment.