Make OffsetMaps work on direct values
[yangtools.git] / common / util / src / main / java / org / opendaylight / yangtools / util / LazyCollections.java
index a9970deee5100cfd2408f7f6bdbd9af84fdae014..e5c21c41614ce8933d860c94d5a9ede90f27897a 100644 (file)
@@ -36,7 +36,7 @@ public final class LazyCollections {
         case 0:
             return Collections.singletonList(obj);
         case 1:
-            ret = new ArrayList<>();
+            ret = new ArrayList<>(2);
             ret.addAll(list);
             break;
         default: