package com.airbnb.epoxy;

import android.content.Context;
import android.support.annotation.Nullable;
import android.view.View;

import java.util.List;

@ModelView(defaultLayout = 1)
public class TestStringOverloadsView extends View {

  public TestStringOverloadsView(Context context) {
    super(context);
  }

  @ModelProp(options = ModelProp.Option.GenerateStringOverloads)
  public void setTitle(CharSequence title) {

  }

  @ModelProp
  public void setTitle(@Nullable List<CharSequence> title) {
    // testing that a nullable overload works correctly
    // test setting options via the value param shortcut
  }
  
  @ModelProp(ModelProp.Option.GenerateStringOverloads)
  public void setTitleViaValueShortcut(CharSequence title) {

  }
}
@@ -614,18 +614,16 @@
 cut%0A  %7D%0A
-  
 %0A  @Mode
@@ -727,18 +727,75 @@
 ce title) %7B%0A
+     // test setting options via the value param shortcut
 %0A  %7D%0A%7D

Fix ambiguity when setting null (#274)