Skip to content
Browse files

fixed bug in JAMailboxFactory.removeClosable

  • Loading branch information...
1 parent 7481bd5 commit 4be54121e9045ad02ab9961724c4ff0da40fc073 @laforge49 committed Jan 3, 2013
Showing with 5 additions and 3 deletions.
  1. +1 −1 pom.xml
  2. +1 −1 release.xml
  3. +3 −1 src/main/java/org/agilewiki/jactor/JAMailboxFactory.java
View
2 pom.xml
@@ -5,7 +5,7 @@
<groupId>org.agilewiki.jactor</groupId>
<artifactId>jactor</artifactId>
- <version>4.6.0</version>
+ <version>4.6.1.0</version>
<packaging>jar</packaging>
<name>JActor</name>
<description>Lock-free Java Actors</description>
View
2 release.xml
@@ -4,7 +4,7 @@
<groupId>org.agilewiki.jactor</groupId>
<artifactId>jactor</artifactId>
- <version>4.6.1-SNAPSHOT</version>
+ <version>4.6.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>JActor</name>
<description>Lock-free Java Actors</description>
View
4 src/main/java/org/agilewiki/jactor/JAMailboxFactory.java
@@ -89,12 +89,14 @@ public ThreadManager getThreadManager() {
@Override
public boolean addClosable(Closable closable) {
+ if (closable == null)
+ throw new IllegalArgumentException("may not be null");
return closables.add(closable);
}
@Override
public boolean removeClosable(Closable closable) {
- return closables.add(closable);
+ return closables.remove(closable);
}
/**

0 comments on commit 4be5412

Please sign in to comment.
Something went wrong with that request. Please try again.