Skip to content

Commit

Permalink
Use diamond operator
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Sep 14, 2023
1 parent efcb78d commit 4bc67c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/io/sf/carte/doc/agent/net/DefaultOriginPolicy.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public class DefaultOriginPolicy implements OriginPolicy {
private static final List<String> SUFFIX_WILDCARDS;

static {
TOP_LEVEL_SUFFIX = new ArrayList<String>();
SUFFIX_EXCEPTIONS = new ArrayList<String>();
SUFFIX_WILDCARDS = new ArrayList<String>();
TOP_LEVEL_SUFFIX = new ArrayList<>();
SUFFIX_EXCEPTIONS = new ArrayList<>();
SUFFIX_WILDCARDS = new ArrayList<>();
readSuffixes();
}

Expand Down
4 changes: 2 additions & 2 deletions src/io/sf/carte/doc/agent/net/ResourceDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract public class ResourceDownloader<C> extends Thread {

private final URL url;
protected C nativeContent = null;
protected List<DownloadListener<C>> listeners = new LinkedList<DownloadListener<C>>();
protected List<DownloadListener<C>> listeners = new LinkedList<>();
private String contentType = null;
private boolean done = false;

Expand Down Expand Up @@ -75,7 +75,7 @@ private static URL[] extractURL(CSSValue src) {
return new URL[]{url};
}
} else if (type == CSSValue.CssType.LIST) {
LinkedList<URL> urlist = new LinkedList<URL>();
LinkedList<URL> urlist = new LinkedList<>();
ValueList list = (ValueList) src;
for (int i = 0; i < list.getLength(); i++) {
URL[] url = extractURL(list.item(i));
Expand Down

0 comments on commit 4bc67c4

Please sign in to comment.