Skip to content

Commit 52a9906

Browse files
committed
Use diamond inference
1 parent bcdbd7b commit 52a9906

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/org/cakephp/netbeans/github/GithubTagsBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
*/
7373
public abstract class GithubTagsBase {
7474

75-
private final List<GithubTag> tags = new ArrayList<GithubTag>();
76-
private final List<String> names = new ArrayList<String>();
75+
private final List<GithubTag> tags = new ArrayList<>();
76+
private final List<String> names = new ArrayList<>();
7777
private boolean isNetworkError = true;
7878
private static final Pattern LINK_URL_PATTERN = Pattern.compile("<(?<url>https://.+)>; rel=\"(?<rel>.+)\""); // NOI18N
7979
private static final Logger LOGGER = Logger.getLogger(GithubTagsBase.class.getName());

src/org/cakephp/netbeans/ui/actions/RunActionAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public void run() {
279279
* @param actionId
280280
*/
281281
private void openBrowser(PhpModule phpModule, String controllerId, String actionId, String pluginName) {
282-
openBrowser(phpModule, controllerId, actionId, new HashMap<String, String>(), pluginName);
282+
openBrowser(phpModule, controllerId, actionId, new HashMap<>(), pluginName);
283283
}
284284

285285
/**

src/org/cakephp/netbeans/ui/wizards/BaserCmsConfigurationInnerPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void run() {
106106
@Override
107107
public void run() {
108108
baserVersionComboBox.removeAllItems();
109-
baserVersionComboBox.setModel(new DefaultComboBoxModel<String>(names));
109+
baserVersionComboBox.setModel(new DefaultComboBoxModel<>(names));
110110
baserVersionComboBox.setEnabled(true);
111111
}
112112
});

src/org/cakephp/netbeans/ui/wizards/CakePhpConfigurationInnerPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void run() {
158158
Arrays.sort(names, Versionable.VERSION_COMPARATOR);
159159
versionComboBox.removeAllItems();
160160
versionComboBox.setEnabled(true);
161-
versionComboBox.setModel(new DefaultComboBoxModel<String>(names));
161+
versionComboBox.setModel(new DefaultComboBoxModel<>(names));
162162
}
163163
});
164164
}

0 commit comments

Comments
 (0)