Skip to content

Commit

Permalink
Replace 'var' typing with explicit type naming
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-ronge committed Apr 11, 2023
1 parent e66b31e commit b83c520
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public int updateMetadata(Collection<Metadata> currentMetadata, String acquisiti
Collection<Metadata> updateMetadata) {

final Function<String, MutableTriple<Collection<Metadata>, Reimport, Collection<Metadata>>> entryProducer = key -> {
var entry = new MutableTriple<Collection<Metadata>, Reimport, Collection<Metadata>>();
MutableTriple<Collection<Metadata>, Reimport, Collection<Metadata>> entry = new MutableTriple<>();
entry.setLeft(new ArrayList<>());
entry.setRight(new ArrayList<>());
return entry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
Expand Down Expand Up @@ -350,7 +351,7 @@ private List<Element> createMetadataElements(Namespace xmlns, DocketData docketD
HashMap<String, String> names = getNamespacesFromConfig();
Namespace[] namespaces = new Namespace[names.size()];
int index = 0;
for (var entries = names.entrySet().iterator(); entries.hasNext(); index++) {
for (Iterator<Entry<String, String>> entries = names.entrySet().iterator(); entries.hasNext(); index++) {
Entry<String, String> entry = entries.next();
namespaces[index] = Namespace.getNamespace(entry.getKey(), entry.getValue());
}
Expand Down

0 comments on commit b83c520

Please sign in to comment.