Skip to content

Break up the examples in examples/subusers/subusers.java to their own files #378

Closed

Description

@thinkingserious

File subusers.java has 263 lines of code (exceeds 250 allowed). Consider refactoring.

Break up these examples into their own files, named after the action being shown.

https://codeclimate.com/github/sendgrid/sendgrid-java/examples/subusers/subusers.java#issue_59f6aee388b681000100005f

Activity

  1. changed the title [-]Fix "file_lines" issue in examples/subusers/subusers.java[/-] [+]Break up the examples in examples/subusers/subusers.java to their own files[/+] on Oct 30, 2017
  2. huytranrjc commented on Oct 30, 2017

    @huytranrjc
    Contributor

    I create PR379
    Please review

  3. neelalex commented on Nov 1, 2017

    @neelalex

    I am providing a suggestion, correct me if i am wrong @thinkingserious @clee @johnclaus @motdotla
    In users.java same line of code keeps repeating, so why don't we club them together somehow like a base class or a separate functions, so that only the redundant part can be called or imported while part that contains the change only needs to be present; thus significantly reducing the code size from 422.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions