Author: veithen
Date: Sat Dec 3 13:10:50 2011
New Revision: 1209905
URL: http://svn.apache.org/viewvc?rev=1209905&view=rev
Log:
Use correct spelling of "semaphore".
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/PartContentFactory.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/PartContentFactory.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/PartContentFactory.java?rev=1209905&r1=1209904&r2=1209905&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/PartContentFactory.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/PartContentFactory.java
Sat Dec 3 13:10:50 2011
@@ -37,7 +37,7 @@ import java.io.InputStream;
class PartContentFactory {
private static int inflight = 0; // How many attachments are currently
being built.
- private static final String semifore = "PartFactory.semifore";
+ private static final String semaphore = "PartContentFactory.semaphore";
private static final Log log = LogFactory.getLog(PartContentFactory.class);
@@ -90,9 +90,9 @@ class PartContentFactory {
// Note: SOAPParts are at the beginning of the message and
much smaller than attachments,
// so don't wait on soap parts.
if (!isSOAPPart) {
- synchronized(semifore) {
+ synchronized(semaphore) {
if (inflight >= INFLIGHT_MAX) {
- semifore.wait();
+ semaphore.wait();
}
inflight++;
}
@@ -140,8 +140,8 @@ class PartContentFactory {
}
} finally {
if (!isSOAPPart) {
- synchronized(semifore) {
- semifore.notify();
+ synchronized(semaphore) {
+ semaphore.notify();
inflight--;
}
}