Skip to content

Duplicate assignment in MonthCalendar.setYearMonth() #113

@javier-godoy

Description

@javier-godoy

Describe the bug

setYearMonth() contains two identical consecutive assignments:

public void setYearMonth(YearMonth yearMonth) {
    this.yearMonth = Objects.requireNonNull(yearMonth);
    this.yearMonth = Objects.requireNonNull(yearMonth); // duplicate

This is a copy-paste error. The duplication is harmless at runtime but should be removed.

Expected behavior

The assignment appears exactly once.

Add-on Version

4.6.1-SNAPSHOT

Vaadin Version

N/A

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions