commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Tanaka (JIRA)" <>
Subject [jira] Created: (SANDBOX-271) Synchronization and serialization changes from Kris
Date Wed, 17 Dec 2008 19:27:44 GMT
Synchronization and serialization changes from Kris

                 Key: SANDBOX-271
             Project: Commons Sandbox
          Issue Type: Improvement
          Components: Pipeline
            Reporter: Ken Tanaka

Kris Nuttycomb sent me some changes a while ago to enhance synchronization and add serialVersionUID
keys to some events and exceptions. These changes haven't made it into the code base, so here
they are for review (a patch file will be attached). The first and last changes listed below
were originated by me.

Here is  a summary of the changes:
change pom.xml
* change junit version from 3.8.1 to 4.5, this is a change I made, since the Netbeans IDE
can generate test code for this version. Some annotations were added because of this.

change src/test/java/org/apache/commons/pipeline/
* replace {{Thread.yield()}} with {{synchronized(counter)}}

add a {{serialVersionUID}} to
* src/main/java/org/apache/commons/pipeline/event/
* src/main/java/org/apache/commons/pipeline/event/
* src/main/java/org/apache/commons/pipeline/event/
* src/main/java/org/apache/commons/pipeline/
* src/main/java/org/apache/commons/pipeline/validation/
* src/main/java/org/apache/commons/pipeline/

change src/main/java/org/apache/commons/pipeline/listener/
* make the getCounts() method {{synchronized}}

change src/main/java/org/apache/commons/pipeline/testFramework/
* change the processedObjects list into a {{Collections.synchronizedList(new ArrayList<Object>())}}

change src/main/java/org/apache/commons/pipeline/testFramework/
* change the listeners list into a {{Collections.synchronizedList( new ArrayList<StageEventListener>()
* notify listeners when an event is raised

change src/main/java/org/apache/commons/pipeline/config/
* Some minor javadoc formatting improvements
* Noted that <feed> configuration information must follow the first stage, otherwise
it will have no effect

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message