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
7bb6bf6a
Commit
7bb6bf6a
authored
Jan 21, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
68293f34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
RepositoryConfiguration.java
...work/boot/cli/compiler/grape/RepositoryConfiguration.java
+11
-15
No files found.
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/RepositoryConfiguration.java
View file @
7bb6bf6a
...
...
@@ -18,6 +18,8 @@ package org.springframework.boot.cli.compiler.grape;
import
java.net.URI
;
import
org.springframework.util.ObjectUtils
;
/**
* The configuration of a repository
*
...
...
@@ -75,28 +77,22 @@ public final class RepositoryConfiguration {
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
this
.
name
==
null
)
?
0
:
this
.
name
.
hashCode
());
return
result
;
return
ObjectUtils
.
nullSafeHashCode
(
this
.
name
);
}
@Override
public
boolean
equals
(
Object
obj
)
{
if
(
this
==
obj
)
if
(
this
==
obj
)
{
return
true
;
if
(
obj
==
null
)
return
false
;
if
(
getClass
()
!=
obj
.
getClass
())
}
if
(
obj
==
null
)
{
return
false
;
RepositoryConfiguration
other
=
(
RepositoryConfiguration
)
obj
;
if
(
this
.
name
==
null
)
{
if
(
other
.
name
!=
null
)
return
false
;
}
else
if
(!
this
.
name
.
equals
(
other
.
name
))
if
(
getClass
()
!=
obj
.
getClass
())
{
return
false
;
return
true
;
}
RepositoryConfiguration
other
=
(
RepositoryConfiguration
)
obj
;
return
ObjectUtils
.
nullSafeEquals
(
this
.
name
,
other
.
name
);
}
}
\ No newline at end of file
}
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