Skip to content

Commit

Permalink
Use imports in FilterVerifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Panov committed Jun 29, 2015
1 parent ee44130 commit 7e423a2
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public static FilterVerifier getInstance() {
*
* @param sFilterCode
* @return a FilterInfo object representing that code
* @throws org.codehaus.groovy.control.CompilationFailedException
* @throws CompilationFailedException
*
* @throws IllegalAccessException
* @throws InstantiationException
*/
public FilterInfo verifyFilter(String sFilterCode) throws org.codehaus.groovy.control.CompilationFailedException, IllegalAccessException, InstantiationException {
public FilterInfo verifyFilter(String sFilterCode) throws CompilationFailedException, IllegalAccessException, InstantiationException {
Class groovyClass = compileGroovy(sFilterCode);
Object instance = instanciateClass(groovyClass);
checkZuulFilterInstance(instance);
Expand All @@ -79,10 +79,10 @@ void checkZuulFilterInstance(Object zuulFilter) throws InstantiationException {
*
* @param sFilterCode
* @return
* @throws org.codehaus.groovy.control.CompilationFailedException
* @throws CompilationFailedException
*
*/
public Class compileGroovy(String sFilterCode) throws org.codehaus.groovy.control.CompilationFailedException {
public Class compileGroovy(String sFilterCode) throws CompilationFailedException {
GroovyClassLoader loader = new GroovyClassLoader();
return loader.parseClass(sFilterCode);
}
Expand Down Expand Up @@ -277,5 +277,3 @@ public void testVerify() {
}

}


0 comments on commit 7e423a2

Please sign in to comment.