diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2019-04-08 11:45:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-08 11:45:24 +0000 |
commit | 99e1be6032444088e35c98e290ac4c5e4e0ab601 (patch) | |
tree | 143ebd270c9dc8eb0dc1cb465be07542abe6b9ab /models-base/src/main/java/org | |
parent | 043e5ebb3c56a999559406ddd174da25ca6be788 (diff) | |
parent | bd6500bf91fcd7fc1e1bbcf438bd4a4e7ff4a3c0 (diff) |
Merge "Clean up a couple of array lists"
Diffstat (limited to 'models-base/src/main/java/org')
-rw-r--r-- | models-base/src/main/java/org/onap/policy/models/base/PfObjectFilter.java | 1 | ||||
-rw-r--r-- | models-base/src/main/java/org/onap/policy/models/base/PfUtils.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/models-base/src/main/java/org/onap/policy/models/base/PfObjectFilter.java b/models-base/src/main/java/org/onap/policy/models/base/PfObjectFilter.java index a7d8401f0..6ede4d9a3 100644 --- a/models-base/src/main/java/org/onap/policy/models/base/PfObjectFilter.java +++ b/models-base/src/main/java/org/onap/policy/models/base/PfObjectFilter.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2019 Nordix Foundation. + * Modifications Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/models-base/src/main/java/org/onap/policy/models/base/PfUtils.java b/models-base/src/main/java/org/onap/policy/models/base/PfUtils.java index 7bdd9a5f4..c33271d78 100644 --- a/models-base/src/main/java/org/onap/policy/models/base/PfUtils.java +++ b/models-base/src/main/java/org/onap/policy/models/base/PfUtils.java @@ -73,7 +73,7 @@ public final class PfUtils { */ public static <T> List<T> mapList(List<T> source, Function<T, T> mapFunc) { if (source == null) { - return new ArrayList<>(); + return new ArrayList<>(0); } return source.stream().map(mapFunc).collect(Collectors.toList()); |