Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-10-16 18:09:49 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
38294a971fdd3655daccf0691b73d548cb406f1d
38294a97
1 parent
75e77420
presize ArrayList
Change-Id: I0805991630a896da260b28a6cef7841593f020a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
providers/openflow/device/src/main/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProvider.java
providers/openflow/device/src/main/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProvider.java
View file @
38294a9
...
...
@@ -172,7 +172,7 @@ public class OpenFlowDeviceProvider extends AbstractProvider implements DevicePr
*/
private
List
<
PortDescription
>
buildPortDescriptions
(
List
<
OFPortDesc
>
ports
)
{
final
List
<
PortDescription
>
portDescs
=
new
ArrayList
<>();
final
List
<
PortDescription
>
portDescs
=
new
ArrayList
<>(
ports
.
size
()
);
for
(
OFPortDesc
port
:
ports
)
{
portDescs
.
add
(
buildPortDescription
(
port
));
}
...
...
Please
register
or
login
to post a comment