Skip to content

Commit

Permalink
don't use diamond types, a JDK 1.7 feature
Browse files Browse the repository at this point in the history
  • Loading branch information
OpherV committed Sep 10, 2015
1 parent f4a8302 commit c2bb358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gitflow/GitflowImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public GitCommandResult publishHotfix(@NotNull GitRepository repository,
}

private void setUrl(GitLineHandler h, GitRepository repository) {
ArrayList<GitRemote> remotes = new ArrayList<>(repository.getRemotes());
ArrayList<GitRemote> remotes = new ArrayList<GitRemote>(repository.getRemotes());

//make sure a remote repository is available
if (!remotes.isEmpty()) {
Expand Down
6 changes: 3 additions & 3 deletions src/gitflow/ui/AbstractBranchStartDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public abstract class AbstractBranchStartDialog extends DialogWrapper {

private JPanel contentPane;
private JTextField branchNameTextField;
private JComboBox<ComboEntry> branchFromCombo;
private JComboBox branchFromCombo;
private JLabel branchNameLabel;

private Project project;
Expand Down Expand Up @@ -92,7 +92,7 @@ protected JComponent createCenterPanel() {
return contentPane;
}

private ComboBoxModel<ComboEntry> createBranchComboModel() {
private ComboBoxModel createBranchComboModel() {
final List<String> branchList = gitflowBranchUtil.getLocalBranchNames();
final String defaultBranch = getDefaultBranch();
branchList.remove(defaultBranch);
Expand All @@ -104,7 +104,7 @@ private ComboBoxModel<ComboEntry> createBranchComboModel() {
entries[i] = new ComboEntry(branchName, branchName);
}

return new DefaultComboBoxModel<>(entries);
return new DefaultComboBoxModel(entries);
}

/**
Expand Down

0 comments on commit c2bb358

Please sign in to comment.