Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
fix nullness annotations for automation commands utils (#4319)
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
  • Loading branch information
maggu2810 authored and Simon Kaufmann committed Sep 26, 2017
1 parent e135552 commit 43c921c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

/**
* This class contains methods for facilitating sorting and filtering lists stored in {@link Hashtable}s.
Expand Down Expand Up @@ -53,8 +54,9 @@ static Map<String, String> putInHastable(String[] strings) {
*/
static Map<String, String> filterList(Map<String, ?> listObjects, Map<String, String> listUIDs) {
Hashtable<String, String> filtered = new Hashtable<String, String>();
for (String id : listUIDs.keySet()) {
String uid = listUIDs.get(id);
for (final Entry<String, String> entry : listUIDs.entrySet()) {
final String id = entry.getKey();
final String uid = entry.getValue();
Object obj = listObjects.get(uid);
if (obj != null) {
filtered.put(id, uid);
Expand Down

0 comments on commit 43c921c

Please sign in to comment.