With regard to this, without the annotation there's no way you can declare
a bean or list to get its definition transposed.

With the annotation

public void myMethod(@Transpose User user) {
  ...
}

Without the annotation
public void myMethod(DataTable user) {
  user = user.transpose();
  // how can we get the user type now?
}

Il giorno sabato 23 novembre 2013, Aslak Hellesøy ha scritto:

> In core/src/main/java/cucumber/api/Transpose.java:
>
> > @@ -0,0 +1,39 @@
> > +package cucumber.api;
> > +
> > +import java.lang.annotation.ElementType;
> > +import java.lang.annotation.Retention;
> > +import java.lang.annotation.RetentionPolicy;
> > +import java.lang.annotation.Target;
> > +
> > +/**
> > + * <p>
> > + * This annotation can be specified on step definition method parameters to give Cucumber a hint
>
> If DataTable has a transpose() method I'm not convinced we should add an
> annotation so that the table gets auto-transposed. This complicates the
> codebase quite a bit for very little benefit. The user can just call
> transpose() in the stepdef rather than adding an annotation.
>
> I think we should remove the annotation.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cucumber/cucumber-jvm/pull/635/files#r7874925>
> .
>