qn.java 2.39 KB
import com.google.common.base.Preconditions;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import javax.annotation.Nullable;

public class qn
{
  public final Object a;
  public final Method b;
  
  qn(Object paramObject, Method paramMethod)
  {
    Preconditions.checkNotNull(paramObject, "EventSubscriber target cannot be null.");
    Preconditions.checkNotNull(paramMethod, "EventSubscriber method cannot be null.");
    this.a = paramObject;
    this.b = paramMethod;
    paramMethod.setAccessible(true);
  }
  
  public void a(Object paramObject)
    throws InvocationTargetException
  {
    Preconditions.checkNotNull(paramObject);
    try
    {
      this.b.invoke(this.a, new Object[] { paramObject });
      return;
    }
    catch (IllegalArgumentException localIllegalArgumentException)
    {
      paramObject = String.valueOf(String.valueOf(paramObject));
      throw new Error(((String)paramObject).length() + 33 + "Method rejected target/argument: " + (String)paramObject, localIllegalArgumentException);
    }
    catch (IllegalAccessException localIllegalAccessException)
    {
      paramObject = String.valueOf(String.valueOf(paramObject));
      throw new Error(((String)paramObject).length() + 28 + "Method became inaccessible: " + (String)paramObject, localIllegalAccessException);
    }
    catch (InvocationTargetException paramObject)
    {
      if ((((InvocationTargetException)paramObject).getCause() instanceof Error)) {
        throw ((Error)((InvocationTargetException)paramObject).getCause());
      }
      throw ((Throwable)paramObject);
    }
  }
  
  public boolean equals(@Nullable Object paramObject)
  {
    boolean bool2 = false;
    boolean bool1 = bool2;
    if ((paramObject instanceof qn))
    {
      paramObject = (qn)paramObject;
      bool1 = bool2;
      if (this.a == ((qn)paramObject).a)
      {
        bool1 = bool2;
        if (this.b.equals(((qn)paramObject).b)) {
          bool1 = true;
        }
      }
    }
    return bool1;
  }
  
  public int hashCode()
  {
    return (this.b.hashCode() + 31) * 31 + System.identityHashCode(this.a);
  }
  
  public String toString()
  {
    String str = String.valueOf(String.valueOf(this.b));
    return str.length() + 10 + "[wrapper " + str + "]";
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/qn.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */