Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
fix bind rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Sloaix committed Jul 5, 2017
1 parent aae45dd commit 64d6f19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class CodeGenerator private constructor(private val apolloDescriptors: ArrayList
fun getSingleBinderStatement(builder: MethodSpec.Builder, descriptor: ApolloDescriptor) {
val ClassType = descriptor.methodElement.enclosingElement.asType().toString().replace(Regex("<.*>"), "")

builder.beginControlFlow("if($GENERATE_METHOD_BIND_OBJECT_NAME.getClass().isAssignableFrom($ClassType.class))")
builder.beginControlFlow("if($ClassType.class.isAssignableFrom($GENERATE_METHOD_BIND_OBJECT_NAME.getClass()))")
.addStatement("$SUBSCRIBER_BINDER_LOCAL_PARAM_NAME.add(" +
getApollo() +
getToFlowableCode(descriptor) +
Expand Down

0 comments on commit 64d6f19

Please sign in to comment.