Skip to content

Commit 56b8b42

Browse files
committed
Use diamond operator
1 parent 0c5d4b6 commit 56b8b42

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/junichi11/netbeans/modules/github/issues/GitHubCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public final class GitHubCache {
8282
// @GuardedBy("this")
8383
private List<User> collaborators;
8484
// @GuardedBy("this")
85-
private final Map<String, List<Milestone>> milestoneMap = Collections.synchronizedMap(new HashMap<String, List<Milestone>>());
85+
private final Map<String, List<Milestone>> milestoneMap = Collections.synchronizedMap(new HashMap<>());
8686
// @GuardedBy("this")
8787
private List<Label> labels;
8888
// @GuardedBy("this")

src/main/java/com/junichi11/netbeans/modules/github/issues/issue/ui/CommentsPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class CommentsPanel extends javax.swing.JPanel implements PropertyChangeL
6161

6262
private static final long serialVersionUID = 3131157719093603387L;
6363

64-
private final List<CommentPanel> commentPanels = Collections.synchronizedList(new ArrayList<CommentPanel>());
64+
private final List<CommentPanel> commentPanels = Collections.synchronizedList(new ArrayList<>());
6565
private CommentPanel quoteCommentPanel;
6666
private CommentPanel deletedCommentPanel;
6767
private CommentPanel editedCommentPanel;

src/main/java/com/junichi11/netbeans/modules/github/issues/repository/GitHubRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ public class GitHubRepository {
110110

111111
// caches
112112
// @GaurdedBy("this")
113-
private final Map<String, GitHubIssue> issueCache = Collections.synchronizedMap(new HashMap<String, GitHubIssue>());
113+
private final Map<String, GitHubIssue> issueCache = Collections.synchronizedMap(new HashMap<>());
114114
// @GaurdedBy("this")
115-
private final Map<String, PullRequest> pullRequestCache = Collections.synchronizedMap(new HashMap<String, PullRequest>());
115+
private final Map<String, PullRequest> pullRequestCache = Collections.synchronizedMap(new HashMap<>());
116116

117117
private Boolean isCollaborator = null;
118118

0 commit comments

Comments
 (0)