Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
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
apollo
Commits
649a1fdc
Commit
649a1fdc
authored
Apr 20, 2017
by
Jason Song
Committed by
GitHub
Apr 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #597 from nobodyiam/fix-coverity-bug
fix coverity bug
parents
36771bbf
3996e646
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
NetworkInterfaceManager.java
...amework/foundation/internals/NetworkInterfaceManager.java
+1
-6
No files found.
apollo-core/src/main/java/com/ctrip/framework/foundation/internals/NetworkInterfaceManager.java
View file @
649a1fdc
...
@@ -98,12 +98,7 @@ public enum NetworkInterfaceManager {
...
@@ -98,12 +98,7 @@ public enum NetworkInterfaceManager {
try
{
try
{
Enumeration
<
NetworkInterface
>
interfaces
=
NetworkInterface
.
getNetworkInterfaces
();
Enumeration
<
NetworkInterface
>
interfaces
=
NetworkInterface
.
getNetworkInterfaces
();
List
<
NetworkInterface
>
nis
;
List
<
NetworkInterface
>
nis
=
interfaces
==
null
?
Collections
.<
NetworkInterface
>
emptyList
()
:
Collections
.
list
(
interfaces
);
if
(
interfaces
==
null
)
{
nis
=
Collections
.
emptyList
();
}
else
{
nis
=
Collections
.
list
(
NetworkInterface
.
getNetworkInterfaces
());
}
List
<
InetAddress
>
addresses
=
new
ArrayList
<
InetAddress
>();
List
<
InetAddress
>
addresses
=
new
ArrayList
<
InetAddress
>();
InetAddress
local
=
null
;
InetAddress
local
=
null
;
...
...
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