Skip to content

Commit c7d62da

Browse files
committed
-version-6-fix-bugs
1 parent 210caac commit c7d62da

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,21 @@
4242
<groupId>org.springframework.boot</groupId>
4343
<artifactId>spring-boot-maven-plugin</artifactId>
4444
</plugin>
45-
<plugin>
45+
<plugin>
4646
<groupId>org.apache.maven.plugins</groupId>
4747
<artifactId>maven-compiler-plugin</artifactId>
4848
<version>3.13.0</version>
4949
<configuration>
50-
<source>${java.version}</source>
51-
<target>${java.version}</target>
50+
<source>15</source>
51+
<target>15</target>
5252
</configuration>
5353
</plugin>
5454
<plugin>
5555
<groupId>org.apache.maven.plugins</groupId>
5656
<artifactId>maven-javadoc-plugin</artifactId>
5757
<version>3.4.0</version>
5858
<configuration>
59-
<source>${java.version}</source>
59+
<source>21</source>
6060
<encoding>UTF-8</encoding>
6161
<docencoding>UTF-8</docencoding>
6262
<charset>UTF-8</charset>
@@ -77,4 +77,4 @@
7777
<url>https://maven.pkg.github.com/Omkaarr1/Spring-Boot-REST-API</url>
7878
</repository>
7979
</repositories>
80-
</project>
80+
</project>

src/main/java/com/godmode/rest/model/CloudClientUser.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,19 @@ public void setEmail(String email) {
5050
}
5151
public String getPhoneNumber() {
5252
return phoneNumber;
53-
}
53+
}
54+
5455
public void setPhoneNumber(String phoneNumber) {
5556
this.phoneNumber = phoneNumber;
5657
}
5758

5859
@Override
5960
public String toString() {
60-
return """
61-
{
62-
"username": "%s",
63-
"email": "%s",
64-
"password": "%s",
65-
"user_id": "%s",
66-
"phonenNumber": "%s"
67-
}
68-
""".formatted(username, email, password, user_id,phoneNumber);
69-
}
61+
return String.format(
62+
"{\n \"username\": \"%s\",\n \"email\": \"%s\",\n \"password\": \"%s\",\n \"user_id\": \"%s\",\n \"phoneNumber\": \"%s\"\n}",
63+
username, email, password, user_id, phoneNumber
64+
);
65+
}
66+
7067

7168
}

0 commit comments

Comments
 (0)