Author: chris.laprun(a)jboss.com
Date: 2012-03-12 15:29:29 -0400 (Mon, 12 Mar 2012)
New Revision: 8569
Modified:
components/wsrp/branches/2.1.x/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java
Log:
- GTNWSRP-279: avoid updating ProducerInfo when it's not needed and added modification
detection.
Modified:
components/wsrp/branches/2.1.x/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java
===================================================================
---
components/wsrp/branches/2.1.x/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java 2012-03-12
19:16:53 UTC (rev 8568)
+++
components/wsrp/branches/2.1.x/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java 2012-03-12
19:29:29 UTC (rev 8569)
@@ -254,7 +254,8 @@
}
else
{
- throw new IllegalArgumentException("There is no ProducerInfo with id
'" + id + "'");
+ log.debug("There is no ProducerInfo with id '" + id +
"'. Return Long.MIN_VALUE for last modified time.");
+ return Long.MIN_VALUE;
}
}
finally
Show replies by date