commit | 98ffca81bf4e82d772f4bdab6ca98087d9efe932 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Mon May 11 08:39:24 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon May 11 16:14:19 2015 +0000 |
tree | b9a8f77eda5d61cc053652729c8b7135a7820feb | |
parent | 2908d9ebc69e783ef73dc75fc352c7394764b19b [diff] [blame] |
Save memory consumption by avoding unnecessary instantiation Change-Id: I7ce66c11136653fabc490aa7f33fdadf4454d2cc
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/SinglePointToMultiPointIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/SinglePointToMultiPointIntentCompiler.java index 46e6c66..0021cd2 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/SinglePointToMultiPointIntentCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/SinglePointToMultiPointIntentCompiler.java
@@ -15,7 +15,7 @@ */ package org.onosproject.net.intent.impl.compiler; -import java.util.Arrays; +import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; @@ -77,6 +77,6 @@ .constraints(intent.constraints()) .build(); - return Arrays.asList(result); + return Collections.singletonList(result); } }