Skip to content

Commit ef0586c

Browse files
committed
FIX BUG: change heightInInches data type to String for .properties file read
1 parent 7f93b1a commit ef0586c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Binary file not shown.
Binary file not shown.

src/com/gnguyen92/springdemoannotations/WrestlingCoach.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class WrestlingCoach implements Coach {
2323

2424
// variables for values.properties file injections *********************************
2525
@Value("${height}")
26-
private int heightInInches;
26+
private String heightInInches;
2727
@Value("${name}")
2828
private String name;
2929

@@ -68,11 +68,11 @@ public String getSkillLevel() {
6868

6969

7070
// Getters and Setters to retrieve @Value instance variables
71-
public int getHeightInInches() {
71+
public String getHeightInInches() {
7272
return heightInInches;
7373
}
7474

75-
public void setHeightInInches(int heightInInches) {
75+
public void setHeightInInches(String heightInInches) {
7676
this.heightInInches = heightInInches;
7777
}
7878

0 commit comments

Comments
 (0)