cziegeler 02/05/28 05:00:56
Modified: src/java/org/apache/cocoon/caching ComponentCacheKey.java
PipelineCacheKey.java
Log:
Added fixmes
Revision Changes Path
1.10 +2 -1
xml-cocoon2/src/java/org/apache/cocoon/caching/ComponentCacheKey.java
Index: ComponentCacheKey.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/caching/ComponentCacheKey.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ComponentCacheKey.java 28 May 2002 11:54:46 -0000 1.9
+++ ComponentCacheKey.java 28 May 2002 12:00:56 -0000 1.10
@@ -61,7 +61,7 @@
* is unique inside the components space.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version CVS $Id: ComponentCacheKey.java,v 1.9 2002/05/28 11:54:46 cziegeler Exp
$
+ * @version CVS $Id: ComponentCacheKey.java,v 1.10 2002/05/28 12:00:56 cziegeler
Exp $
*/
public final class ComponentCacheKey
implements Serializable {
@@ -111,6 +111,7 @@
* HashCode
*/
public int hashCode() {
+ // FIXME - this is not very safe
if (this.hashCode == 0) {
this.hashCode = this.type +
(this.identifier.length() << 2) +
1.12 +2 -1
xml-cocoon2/src/java/org/apache/cocoon/caching/PipelineCacheKey.java
Index: PipelineCacheKey.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/caching/PipelineCacheKey.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- PipelineCacheKey.java 28 May 2002 11:54:46 -0000 1.11
+++ PipelineCacheKey.java 28 May 2002 12:00:56 -0000 1.12
@@ -58,7 +58,7 @@
* or more {@link ComponentCacheKey}s.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version CVS $Id: PipelineCacheKey.java,v 1.11 2002/05/28 11:54:46 cziegeler Exp
$
+ * @version CVS $Id: PipelineCacheKey.java,v 1.12 2002/05/28 12:00:56 cziegeler Exp
$
*/
public final class PipelineCacheKey
implements java.io.Serializable {
@@ -125,6 +125,7 @@
* Generate a hash code
*/
public int hashCode() {
+ // FIXME - this is not very safe
if (this.hashCode == 0) {
for(int i=0; i < this.keys.size(); i++) {
this.hashCode = this.keys.get(i).hashCode();
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]