Skip to content

Camelcase methods should start with lowercase #33

@FDelporte

Description

@FDelporte

By convention in Java methods start with lowercase. They are documented as such in the readme, but wrong in the code (1.0.0).

For instance AddBccshould be addBcc, also many others...


    public void AddRecipient(Recipient recipient) {
        this.recipients.add(recipient);
    }

    public void AddRecipients(Recipient[] recipients) {
        this.recipients.addAll(Arrays.asList(recipients));
    }

    public void AddCc(String name, String email) {
        Recipient recipient = new Recipient(name, email);
        this.cc.add(recipient);
    }

    public void AddCc(Recipient recipient) {
        this.cc.add(recipient);
    }

    public void AddBcc(String name, String email) {
        Recipient recipient = new Recipient(name, email);
        this.bcc.add(recipient);
    }

    public void AddBcc(Recipient recipient) {
        this.bcc.add(recipient);
    }

    public void AddReplyTo(Recipient replyTo) {
        this.replyTo = replyTo;
    }

    public void AddReplyTo(String name, String email) {
        this.replyTo = new Recipient(name, email);
    }

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