Skip to content

Added lombok annotation #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
<groupId>com.vaadin</groupId>
<artifactId>vaadin-cdi</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
Expand Down
42 changes: 2 additions & 40 deletions src/main/java/org/example/domain/ForecastResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
package org.example.domain;

import java.util.ArrayList;
import lombok.Data;

@Data
public class ForecastResponse {

private String cod;
Expand All @@ -11,44 +13,4 @@ public class ForecastResponse {
private Integer cnt;
private java.util.List<Forecast> list = new ArrayList<>();

public String getCod() {
return cod;
}

public void setCod(String cod) {
this.cod = cod;
}

public Double getMessage() {
return message;
}

public void setMessage(Double message) {
this.message = message;
}

public City getCity() {
return city;
}

public void setCity(City city) {
this.city = city;
}

public Integer getCnt() {
return cnt;
}

public void setCnt(Integer cnt) {
this.cnt = cnt;
}

public java.util.List<Forecast> getList() {
return list;
}

public void setList(java.util.List<Forecast> list) {
this.list = list;
}

}