File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/org/jruby/rack Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,8 @@ protected RackLogger createLogger(final String loggerClass) {
184184 Constructor <?> ctor = klass .getConstructor (String .class );
185185 return (RackLogger ) ctor .newInstance ( getLoggerName () );
186186 }
187- catch (NoSuchMethodException | IllegalAccessException retry ) {
188- return newLoggerInstance (klass , retry );
187+ catch (NoSuchMethodException | IllegalAccessException ignore ) {
188+ return newLoggerInstance (klass );
189189 }
190190 catch (InstantiationException e ) {
191191 throw new RackException ("could not create logger: '" + loggerClass + "'" , e );
@@ -203,9 +203,9 @@ protected RackLogger createLogger(final String loggerClass) {
203203 return null ;
204204 }
205205
206- private static RackLogger newLoggerInstance (final Class <?> klass , final Exception retry ) {
206+ private static RackLogger newLoggerInstance (final Class <?> klass ) {
207207 try {
208- return (RackLogger ) klass .newInstance ();
208+ return (RackLogger ) klass .getDeclaredConstructor (). newInstance ();
209209 }
210210 catch (Exception e ) { // InstantiationException, IllegalAccessException
211211 throw new RackException ("could not create logger: '" + klass .getName () +
You can’t perform that action at this time.
0 commit comments