Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2015-09-28 18:49:18 +0000
committerRyan D. Brooks2015-09-28 18:49:18 +0000
commit071fcbc5cca4e22e650bb459701f5fc9be701013 (patch)
treeac629d866ecfea675bc4e134c68315440282d560 /plugins/org.eclipse.osee.mail
parentb4f6f62b0d3af365b67a3786dbb24c97fa638536 (diff)
downloadorg.eclipse.osee-071fcbc5cca4e22e650bb459701f5fc9be701013.tar.gz
org.eclipse.osee-071fcbc5cca4e22e650bb459701f5fc9be701013.tar.xz
org.eclipse.osee-071fcbc5cca4e22e650bb459701f5fc9be701013.zip
refactor: Use type inference when invoking a generic constructor
Diffstat (limited to 'plugins/org.eclipse.osee.mail')
-rw-r--r--plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/MailServiceImpl.java4
-rw-r--r--plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/resources/MailApplication.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/MailServiceImpl.java b/plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/MailServiceImpl.java
index 9433d1f53a1..6fae11ec63e 100644
--- a/plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/MailServiceImpl.java
+++ b/plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/MailServiceImpl.java
@@ -116,7 +116,7 @@ public class MailServiceImpl implements MailService {
@Override
public List<MailStatus> sendMessages(Iterable<MailMessage> emails) {
List<Future<MailStatus>> futures = sendAsyncMessages(emails);
- List<MailStatus> toReturn = new ArrayList<MailStatus>();
+ List<MailStatus> toReturn = new ArrayList<>();
for (Future<MailStatus> future : futures) {
toReturn.add(executeAndGetStatus(future));
}
@@ -151,7 +151,7 @@ public class MailServiceImpl implements MailService {
@Override
public List<Future<MailStatus>> sendAsyncMessages(MailCallback mailCallback, Iterable<MailMessage> emails) {
- List<Future<MailStatus>> futures = new ArrayList<Future<MailStatus>>();
+ List<Future<MailStatus>> futures = new ArrayList<>();
for (MailMessage mail : emails) {
String uuid = mail.getId();
diff --git a/plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/resources/MailApplication.java b/plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/resources/MailApplication.java
index cf226af5e2f..4556c2c82e7 100644
--- a/plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/resources/MailApplication.java
+++ b/plugins/org.eclipse.osee.mail/src/org/eclipse/osee/mail/internal/resources/MailApplication.java
@@ -22,7 +22,7 @@ import org.eclipse.osee.mail.api.MailService;
@ApplicationPath("mail")
public class MailApplication extends Application {
- private final Set<Object> singletons = new HashSet<Object>();
+ private final Set<Object> singletons = new HashSet<>();
private MailService mailService;
public void setMailService(MailService mailService) {

Back to the top