@Test(expected = IllegalArgumentException.class) public void testInstanceCheckPrimitiveIllegal() { when(typeDescription.isPrimitive()).thenReturn(true); InstanceCheck.of(typeDescription); }
public static StackManipulation of(TypeDescription typeDescription) { if (typeDescription.isPrimitive()) { throw new IllegalArgumentException("Cannot check an instance against a primitive type: " + typeDescription); } return new InstanceCheck(typeDescription); }
InstanceCheck implements StackManipulation { public static StackManipulation of(TypeDescription typeDescription) { if (typeDescription.isPrimitive()) { throw new IllegalArgumentException("Cannot check an instance against a primitive type: " + typeDescription); } return new InstanceCheck(typeDescription); } }
InstanceCheck implements StackManipulation { public static StackManipulation of(TypeDescription typeDescription) { if (typeDescription.isPrimitive()) { throw new IllegalArgumentException("Cannot check an instance against a primitive type: " + typeDescription); } return new InstanceCheck(typeDescription); } protected  InstanceCheck(TypeDescription typeDescription); }
InstanceCheck implements StackManipulation { public static StackManipulation of(TypeDescription typeDescription) { if (typeDescription.isPrimitive()) { throw new IllegalArgumentException("Cannot check an instance against a primitive type: " + typeDescription); } return new InstanceCheck(typeDescription); } protected  InstanceCheck(TypeDescription typeDescription); static StackManipulation of(TypeDescription typeDescription); boolean isValid(); Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext); }
InstanceCheck implements StackManipulation { public static StackManipulation of(TypeDescription typeDescription) { if (typeDescription.isPrimitive()) { throw new IllegalArgumentException("Cannot check an instance against a primitive type: " + typeDescription); } return new InstanceCheck(typeDescription); } protected  InstanceCheck(TypeDescription typeDescription); static StackManipulation of(TypeDescription typeDescription); boolean isValid(); Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext);  }