Skip to main content

[jsr236-spec commits] [concurrency-ee-spec~source-code-repository:37] Compatible with JDK 6

  • From:
  • To:
  • Subject: [jsr236-spec commits] [concurrency-ee-spec~source-code-repository:37] Compatible with JDK 6
  • Date: Thu, 28 Feb 2013 18:03:47 +0000

Project:    concurrency-ee-spec
Repository: source-code-repository
Revision:   37
Author:     anthony.lai
Date:       2013-02-28 18:03:46 UTC
Link:       

Log Message:
------------
Compatible with JDK 6


Revisions:
----------
37


Modified Paths:
---------------
trunk/api/src/test/java/javax/enterprise/concurrent/ManagedExecutorsTest.java
trunk/api/src/main/java/javax/enterprise/concurrent/ManagedExecutors.java
trunk/api/pom.xml


Diffs:
------
Index: 
trunk/api/src/test/java/javax/enterprise/concurrent/ManagedExecutorsTest.java
===================================================================
--- 
trunk/api/src/test/java/javax/enterprise/concurrent/ManagedExecutorsTest.java 
      (revision 36)
+++ 
trunk/api/src/test/java/javax/enterprise/concurrent/ManagedExecutorsTest.java 
      (revision 37)
@@ -72,7 +72,7 @@
     public void 
testManagedTask_Runnable_executionProperties_ManagedTaskListener() {
         RunnableImpl task = new RunnableImpl();
         ManagedTaskListenerImpl taskListener = new ManagedTaskListenerImpl();
-        Map<String, String> executionProperties = new HashMap<>();
+        Map<String, String> executionProperties = new HashMap<String, 
String>();
         final String TASK_NAME = "task1";
         executionProperties.put(ManagedTask.IDENTITY_NAME, TASK_NAME);
         executionProperties.put(ManagedTask.LONGRUNNING_HINT, "true");
@@ -95,14 +95,14 @@
     @Test
     public void testManagedTask_Runnable_ManagedTask() {
         ManagedTaskListenerImpl TASK_LISTENER = new 
ManagedTaskListenerImpl();
-        Map<String, String> EXEC_PROPERTIES = new HashMap<>();
+        Map<String, String> EXEC_PROPERTIES = new HashMap<String, String>();
         EXEC_PROPERTIES.put("custom", "true");
         EXEC_PROPERTIES.put(ManagedTask.LONGRUNNING_HINT, "false");
         final String TASK_DESCRIPTION = "task1 description";
         ManagedTaskRunnableImpl task = new 
ManagedTaskRunnableImpl(TASK_DESCRIPTION, EXEC_PROPERTIES, TASK_LISTENER);
 
         ManagedTaskListenerImpl taskListener = new ManagedTaskListenerImpl();
-        Map<String, String> executionProperties = new HashMap<>();
+        Map<String, String> executionProperties = new HashMap<String, 
String>();
         final String TASK_NAME = "task1";
         executionProperties.put(ManagedTask.IDENTITY_NAME, TASK_NAME);
         executionProperties.put(ManagedTask.LONGRUNNING_HINT, "true");
@@ -123,7 +123,7 @@
     @Test
     public void testManagedTask_Runnable_ManagedTask_null_args() {
         ManagedTaskListenerImpl TASK_LISTENER = new 
ManagedTaskListenerImpl();
-        Map<String, String> EXEC_PROPERTIES = new HashMap<>();
+        Map<String, String> EXEC_PROPERTIES = new HashMap<String, String>();
         EXEC_PROPERTIES.put("custom", "true");
         final String TASK_DESCRIPTION = "task1 description";
         ManagedTaskRunnableImpl task = new 
ManagedTaskRunnableImpl(TASK_DESCRIPTION, EXEC_PROPERTIES, TASK_LISTENER);
@@ -140,7 +140,7 @@
     @Test
     public void testManagedTask_Callable_ManagedTaskListener() throws 
Exception {
         final String RESULT = "result";
-        CallableImpl<String> task = new CallableImpl<>(RESULT);
+        CallableImpl<String> task = new CallableImpl<String>(RESULT);
         ManagedTaskListenerImpl taskListener = new ManagedTaskListenerImpl();
         
         Callable<String> wrapped = ManagedExecutors.managedTask(task, 
taskListener);
@@ -156,9 +156,9 @@
     @Test
     public void 
testManagedTask_Callable_executionProperties_ManagedTaskListener() throws 
Exception {
         final String RESULT = "result";
-        CallableImpl<String> task = new CallableImpl<>(RESULT);
+        CallableImpl<String> task = new CallableImpl<String>(RESULT);
         ManagedTaskListenerImpl taskListener = new ManagedTaskListenerImpl();
-        Map<String, String> executionProperties = new HashMap<>();
+        Map<String, String> executionProperties = new HashMap<String, 
String>();
         final String TASK_NAME = "task1";
         executionProperties.put(ManagedTask.IDENTITY_NAME, TASK_NAME);
         executionProperties.put(ManagedTask.LONGRUNNING_HINT, "true");
@@ -181,14 +181,14 @@
     public void testManagedTask_Callable_ManagedTask() {
         final String RESULT = "result";
         ManagedTaskListenerImpl TASK_LISTENER = new 
ManagedTaskListenerImpl();
-        Map EXEC_PROPERTIES = new HashMap<>();
+        Map<String, String> EXEC_PROPERTIES = new HashMap<String, String>();
         EXEC_PROPERTIES.put("custom", "true");
         EXEC_PROPERTIES.put(ManagedTask.LONGRUNNING_HINT, "false");
         final String TASK_DESCRIPTION = "task1 description";
         ManagedTaskCallableImpl<String> task = new 
ManagedTaskCallableImpl(RESULT, TASK_DESCRIPTION, EXEC_PROPERTIES, 
TASK_LISTENER);
 
         ManagedTaskListenerImpl taskListener = new ManagedTaskListenerImpl();
-        Map<String, String> executionProperties = new HashMap<>();
+        Map<String, String> executionProperties = new HashMap<String, 
String>();
         final String TASK_NAME = "task1";
         executionProperties.put(ManagedTask.IDENTITY_NAME, TASK_NAME);
         executionProperties.put(ManagedTask.LONGRUNNING_HINT, "true");
@@ -210,7 +210,7 @@
     public void testManagedTask_Callable_ManagedTask_null_args() {
         final String RESULT = "result";
         ManagedTaskListenerImpl TASK_LISTENER = new 
ManagedTaskListenerImpl();
-        Map EXEC_PROPERTIES = new HashMap<>();
+        Map<String, String> EXEC_PROPERTIES = new HashMap<String, String>();
         EXEC_PROPERTIES.put("custom", "true");
         final String TASK_DESCRIPTION = "task1 description";
         ManagedTaskCallableImpl<String> task = new 
ManagedTaskCallableImpl(RESULT, TASK_DESCRIPTION, EXEC_PROPERTIES, 
TASK_LISTENER);
Index: 
trunk/api/src/main/java/javax/enterprise/concurrent/ManagedExecutors.java
===================================================================
--- trunk/api/src/main/java/javax/enterprise/concurrent/ManagedExecutors.java 
  (revision 36)
+++ trunk/api/src/main/java/javax/enterprise/concurrent/ManagedExecutors.java 
  (revision 37)
@@ -274,7 +274,7 @@
             if (base == null && override == null) {
                 return null;
             }
-            Map<String, String> props = new HashMap<>();
+            Map<String, String> props = new HashMap<String, String>();
             if (base != null) {
                 props.putAll(base);
             }
Index: trunk/api/pom.xml
===================================================================
--- trunk/api/pom.xml   (revision 36)
+++ trunk/api/pom.xml   (revision 37)
@@ -204,8 +204,8 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
-                    <source>1.7</source>
-                    <target>1.7</target>
+                    <source>1.6</source>
+                    <target>1.6</target>
                 </configuration>
             </plugin>
             <plugin>





[jsr236-spec commits] [concurrency-ee-spec~source-code-repository:37] Compatible with JDK 6

anthony . lai 02/28/2013
 
 
Close
loading
Please Confirm
Close