Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
566056fd
Commit
566056fd
authored
Jul 28, 2018
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
ce9c053c
9ca9a491
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
15 deletions
+15
-15
HotelSummary.java
...pa/src/main/java/sample/data/jpa/domain/HotelSummary.java
+1
-1
HotelServiceImpl.java
...c/main/java/sample/data/jpa/service/HotelServiceImpl.java
+1
-1
VehicleIdentificationNumber.java
.../java/sample/test/domain/VehicleIdentificationNumber.java
+5
-5
VehicleDetails.java
...est/src/main/java/sample/test/service/VehicleDetails.java
+5
-5
DefaultEchoService.java
...java/samples/websocket/jetty/echo/DefaultEchoService.java
+1
-1
DefaultEchoService.java
...ava/samples/websocket/tomcat/echo/DefaultEchoService.java
+1
-1
DefaultEchoService.java
...a/samples/websocket/undertow/echo/DefaultEchoService.java
+1
-1
No files found.
spring-boot-samples/spring-boot-sample-data-jpa/src/main/java/sample/data/jpa/domain/HotelSummary.java
View file @
566056fd
...
...
@@ -25,7 +25,7 @@ public interface HotelSummary {
Double
getAverageRating
();
default
Integer
getAverageRatingRounded
()
{
return
(
getAverageRating
()
!=
null
?
(
int
)
Math
.
round
(
getAverageRating
())
:
null
)
;
return
(
getAverageRating
()
!=
null
)
?
(
int
)
Math
.
round
(
getAverageRating
())
:
null
;
}
}
spring-boot-samples/spring-boot-sample-data-jpa/src/main/java/sample/data/jpa/service/HotelServiceImpl.java
View file @
566056fd
...
...
@@ -91,7 +91,7 @@ class HotelServiceImpl implements HotelService {
@Override
public
long
getNumberOfReviewsWithRating
(
Rating
rating
)
{
Long
count
=
this
.
ratingCount
.
get
(
rating
);
return
(
count
!=
null
?
count
:
0
)
;
return
(
count
!=
null
)
?
count
:
0
;
}
}
...
...
spring-boot-samples/spring-boot-sample-test/src/main/java/sample/test/domain/VehicleIdentificationNumber.java
View file @
566056fd
...
...
@@ -33,11 +33,6 @@ public final class VehicleIdentificationNumber {
this
.
vin
=
vin
;
}
@Override
public
int
hashCode
()
{
return
this
.
vin
.
hashCode
();
}
@Override
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
this
)
{
...
...
@@ -49,6 +44,11 @@ public final class VehicleIdentificationNumber {
return
this
.
vin
.
equals
(((
VehicleIdentificationNumber
)
obj
).
vin
);
}
@Override
public
int
hashCode
()
{
return
this
.
vin
.
hashCode
();
}
@Override
public
String
toString
()
{
return
this
.
vin
;
...
...
spring-boot-samples/spring-boot-sample-test/src/main/java/sample/test/service/VehicleDetails.java
View file @
566056fd
...
...
@@ -49,11 +49,6 @@ public class VehicleDetails {
return
this
.
model
;
}
@Override
public
int
hashCode
()
{
return
this
.
make
.
hashCode
()
*
31
+
this
.
model
.
hashCode
();
}
@Override
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
this
)
{
...
...
@@ -66,4 +61,9 @@ public class VehicleDetails {
return
this
.
make
.
equals
(
other
.
make
)
&&
this
.
model
.
equals
(
other
.
model
);
}
@Override
public
int
hashCode
()
{
return
this
.
make
.
hashCode
()
*
31
+
this
.
model
.
hashCode
();
}
}
spring-boot-samples/spring-boot-sample-websocket-jetty/src/main/java/samples/websocket/jetty/echo/DefaultEchoService.java
View file @
566056fd
...
...
@@ -21,7 +21,7 @@ public class DefaultEchoService implements EchoService {
private
final
String
echoFormat
;
public
DefaultEchoService
(
String
echoFormat
)
{
this
.
echoFormat
=
(
echoFormat
!=
null
?
echoFormat
:
"%s"
)
;
this
.
echoFormat
=
(
echoFormat
!=
null
)
?
echoFormat
:
"%s"
;
}
@Override
...
...
spring-boot-samples/spring-boot-sample-websocket-tomcat/src/main/java/samples/websocket/tomcat/echo/DefaultEchoService.java
View file @
566056fd
...
...
@@ -21,7 +21,7 @@ public class DefaultEchoService implements EchoService {
private
final
String
echoFormat
;
public
DefaultEchoService
(
String
echoFormat
)
{
this
.
echoFormat
=
(
echoFormat
!=
null
?
echoFormat
:
"%s"
)
;
this
.
echoFormat
=
(
echoFormat
!=
null
)
?
echoFormat
:
"%s"
;
}
@Override
...
...
spring-boot-samples/spring-boot-sample-websocket-undertow/src/main/java/samples/websocket/undertow/echo/DefaultEchoService.java
View file @
566056fd
...
...
@@ -21,7 +21,7 @@ public class DefaultEchoService implements EchoService {
private
final
String
echoFormat
;
public
DefaultEchoService
(
String
echoFormat
)
{
this
.
echoFormat
=
(
echoFormat
!=
null
?
echoFormat
:
"%s"
)
;
this
.
echoFormat
=
(
echoFormat
!=
null
)
?
echoFormat
:
"%s"
;
}
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment