Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
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
openSource
spring-cloud-netflix
Commits
019615f3
Unverified
Commit
019615f3
authored
Aug 31, 2017
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove commons.lang.builder
parent
a8d40afd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
9 deletions
+28
-9
ZuulProperties.java
...gframework/cloud/netflix/zuul/filters/ZuulProperties.java
+28
-9
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/ZuulProperties.java
View file @
019615f3
...
...
@@ -17,9 +17,6 @@
package
org
.
springframework
.
cloud
.
netflix
.
zuul
.
filters
;
import
com.netflix.hystrix.HystrixCommandProperties.ExecutionIsolationStrategy
;
import
org.apache.commons.lang.builder.EqualsBuilder
;
import
org.apache.commons.lang.builder.HashCodeBuilder
;
import
org.apache.commons.lang.builder.ToStringBuilder
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.util.ClassUtils
;
import
org.springframework.util.StringUtils
;
...
...
@@ -499,17 +496,33 @@ public class ZuulProperties {
@Override
public
boolean
equals
(
Object
o
)
{
return
EqualsBuilder
.
reflectionEquals
(
this
,
o
);
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
Host
host
=
(
Host
)
o
;
return
maxTotalConnections
==
host
.
maxTotalConnections
&&
maxPerRouteConnections
==
host
.
maxPerRouteConnections
&&
socketTimeoutMillis
==
host
.
socketTimeoutMillis
&&
connectTimeoutMillis
==
host
.
connectTimeoutMillis
&&
timeToLive
==
host
.
timeToLive
&&
timeUnit
==
host
.
timeUnit
;
}
@Override
public
int
hashCode
()
{
return
HashCodeBuilder
.
reflectionHashCode
(
this
);
return
Objects
.
hash
(
maxTotalConnections
,
maxPerRouteConnections
,
socketTimeoutMillis
,
connectTimeoutMillis
,
timeToLive
,
timeUnit
);
}
@Override
public
String
toString
()
{
return
ToStringBuilder
.
reflectionToString
(
this
);
final
StringBuffer
sb
=
new
StringBuffer
(
"Host{"
);
sb
.
append
(
"maxTotalConnections="
).
append
(
maxTotalConnections
);
sb
.
append
(
", maxPerRouteConnections="
).
append
(
maxPerRouteConnections
);
sb
.
append
(
", socketTimeoutMillis="
).
append
(
socketTimeoutMillis
);
sb
.
append
(
", connectTimeoutMillis="
).
append
(
connectTimeoutMillis
);
sb
.
append
(
", timeToLive="
).
append
(
timeToLive
);
sb
.
append
(
", timeUnit="
).
append
(
timeUnit
);
sb
.
append
(
'}'
);
return
sb
.
toString
();
}
}
...
...
@@ -535,17 +548,23 @@ public class ZuulProperties {
@Override
public
boolean
equals
(
Object
o
)
{
return
EqualsBuilder
.
reflectionEquals
(
this
,
o
);
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
HystrixSemaphore
that
=
(
HystrixSemaphore
)
o
;
return
maxSemaphores
==
that
.
maxSemaphores
;
}
@Override
public
int
hashCode
()
{
return
HashCodeBuilder
.
reflectionHashCode
(
thi
s
);
return
Objects
.
hash
(
maxSemaphore
s
);
}
@Override
public
String
toString
()
{
return
ToStringBuilder
.
reflectionToString
(
this
);
final
StringBuffer
sb
=
new
StringBuffer
(
"HystrixSemaphore{"
);
sb
.
append
(
"maxSemaphores="
).
append
(
maxSemaphores
);
sb
.
append
(
'}'
);
return
sb
.
toString
();
}
}
...
...
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