[jbpm-commits] JBoss JBPM SVN: r7072 - jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/logging/exe.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Feb 27 07:56:17 EST 2012


Author: marco.rietveld
Date: 2012-02-27 07:56:16 -0500 (Mon, 27 Feb 2012)
New Revision: 7072

Modified:
   jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/logging/exe/LoggingInstance.java
Log:
Letting getLogs() return a modifiable list. 

Modified: jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/logging/exe/LoggingInstance.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/logging/exe/LoggingInstance.java	2012-02-24 11:38:19 UTC (rev 7071)
+++ jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/logging/exe/LoggingInstance.java	2012-02-27 12:56:16 UTC (rev 7072)
@@ -71,8 +71,14 @@
     logs.add(processLog);
   }
 
+  /**
+   * If you modify the returned list in any way, you run the risk 
+   * of causing exceptions in a concurrent situation. 
+   * 
+   * @return The list of logs
+   */
   public List getLogs() {
-    return Collections.unmodifiableList(logs);
+    return logs;
   }
 
   /**



More information about the jbpm-commits mailing list