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
Sho SHIMIZU
2016-08-12 15:59:20 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1578042b4d669fd0c95383af1796bcd960c56782
1578042b
1 parent
844ee05c
Use for-each statement
Change-Id: Ib89f3372caebc30542739c0eba62f67ef56a4d4e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
13 deletions
core/common/src/test/java/org/onosproject/store/trivial/SimpleGroupStore.java
core/store/dist/src/main/java/org/onosproject/store/group/impl/DistributedGroupStore.java
core/store/persistence/src/main/java/org/onosproject/persistence/impl/PersistentSet.java
core/common/src/test/java/org/onosproject/store/trivial/SimpleGroupStore.java
View file @
1578042
...
...
@@ -606,17 +606,14 @@ public class SimpleGroupStore
+
"southboundGroupEntries for device {}"
,
southboundGroupEntries
.
size
(),
deviceId
);
for
(
Iterator
<
Group
>
it
=
southboundGroupEntries
.
iterator
();
it
.
hasNext
();)
{
Group
group
=
it
.
next
();
for
(
Group
group
:
southboundGroupEntries
)
{
log
.
trace
(
"Group {} in device {}"
,
group
,
deviceId
);
}
log
.
trace
(
"Displaying all ({}) stored group entries for device {}"
,
storedGroupEntries
.
size
(),
deviceId
);
for
(
Iterator
<
Group
>
it1
=
storedGroupEntries
.
iterator
();
it1
.
hasNext
();)
{
Group
group
=
it1
.
next
();
for
(
Group
group
:
storedGroupEntries
)
{
log
.
trace
(
"Stored Group {} for device {}"
,
group
,
deviceId
);
}
...
...
core/store/dist/src/main/java/org/onosproject/store/group/impl/DistributedGroupStore.java
View file @
1578042
...
...
@@ -1261,17 +1261,14 @@ public class DistributedGroupStore
log
.
trace
(
"pushGroupMetrics: Displaying all ({}) southboundGroupEntries for device {}"
,
southboundGroupEntries
.
size
(),
deviceId
);
for
(
Iterator
<
Group
>
it
=
southboundGroupEntries
.
iterator
();
it
.
hasNext
();)
{
Group
group
=
it
.
next
();
for
(
Group
group
:
southboundGroupEntries
)
{
log
.
trace
(
"Group {} in device {}"
,
group
,
deviceId
);
}
log
.
trace
(
"Displaying all ({}) stored group entries for device {}"
,
storedGroupEntries
.
size
(),
deviceId
);
for
(
Iterator
<
StoredGroupEntry
>
it1
=
storedGroupEntries
.
iterator
();
it1
.
hasNext
();)
{
Group
group
=
it1
.
next
();
for
(
StoredGroupEntry
group
:
storedGroupEntries
)
{
log
.
trace
(
"Stored Group {} for device {}"
,
group
,
deviceId
);
}
...
...
core/store/persistence/src/main/java/org/onosproject/persistence/impl/PersistentSet.java
View file @
1578042
...
...
@@ -82,9 +82,8 @@ public class PersistentSet<E> implements Set<E> {
public
Object
[]
toArray
()
{
Object
[]
retArray
=
new
Object
[
items
.
size
()];
int
index
=
0
;
Iterator
<
byte
[]>
iterator
=
items
.
iterator
();
while
(
iterator
.
hasNext
())
{
retArray
[
index
]
=
serializer
.
decode
(
iterator
.
next
());
for
(
byte
[]
item
:
items
)
{
retArray
[
index
]
=
serializer
.
decode
(
item
);
index
++;
}
return
retArray
;
...
...
Please
register
or
login
to post a comment