Skip to content

Commit 9667122

Browse files
committed
Update Customer.java
1 parent adfa9cb commit 9667122

File tree

1 file changed

+5
-5
lines changed
  • spring-all/src/main/java/org/baeldung/caching/example

1 file changed

+5
-5
lines changed

spring-all/src/main/java/org/baeldung/caching/example/Customer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public class Customer {
55
private String name;
66
private String customerAddress;
77

8-
Customer(){
8+
public Customer(){
99
this.name="";
1010
this.customerAddress="";
1111
}
@@ -26,15 +26,15 @@ public void setId(int id) {
2626
public String getName() {
2727
return name;
2828
}
29+
30+
public void setName(String name) {
31+
this.name = name;
32+
}
2933

3034
public String getCustomerAddress() {
3135
return this.customerAddress;
3236
}
3337

34-
public void setName(String name) {
35-
this.name = name;
36-
}
37-
3838
public void setCustomerAddress(String address) {
3939
this.customerAddress = this.name + "," + address;
4040
}

0 commit comments

Comments
 (0)