Uploaded image for project: 'MRUnit'
  1. MRUnit
  2. MRUNIT-134

Varargs for (fluent?) setter

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Varargs are the closest thing to a list literal in java (with type issues in bonus). Still, sometimes they can avoid a lot of verbose code such as 'asList(a,b,c)'. The aim of this issue is to
      1) find where vargars could be used
      2) propose a patch
      3) see whether the change is useful

      One caveat is that @SafeVarargs can't be used because MRunit should be java 5+ compatible. So using varargs might introduce unintended warning for the consumer of the API.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bdechoux Bertrand Dechoux

            Dates

              Created:
              Updated:

              Slack

                Issue deployment