Author: chris.laprun(a)jboss.com
Date: 2011-03-12 09:32:13 -0500 (Sat, 12 Mar 2011)
New Revision: 6011
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/policies/DefaultRegistrationPolicy.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
Log:
- Use length() == 0 instead of isEmpty() so that I can release with the current parent.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/policies/DefaultRegistrationPolicy.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/policies/DefaultRegistrationPolicy.java 2011-03-11
15:48:16 UTC (rev 6010)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/policies/DefaultRegistrationPolicy.java 2011-03-12
14:32:13 UTC (rev 6011)
@@ -132,7 +132,7 @@
QName name = entry.getKey();
Object value = registrationProperties.get(name);
- if (value == null || (value instanceof String &&
((String)value).isEmpty()))
+ if (value == null || (value instanceof String &&
((String)value).length() == 0))
{
message.append(MISSING_VALUE_ERROR_MSG_BEGIN).append(name.getLocalPart()).append("'
property.\n");
consistentWithExpectations = false;
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2011-03-11
15:48:16 UTC (rev 6010)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2011-03-12
14:32:13 UTC (rev 6011)
@@ -397,7 +397,7 @@
{
log.debug("Using default registration policy: " +
DEFAULT_POLICY_CLASS_NAME);
RegistrationPropertyValidator validator;
- if (validatorClassName != null && !validatorClassName.isEmpty()
&& !DEFAULT_VALIDATOR_CLASS_NAME.equals(validatorClassName))
+ if (validatorClassName != null && validatorClassName.length() > 0
&& !DEFAULT_VALIDATOR_CLASS_NAME.equals(validatorClassName))
{
log.debug("Using registration property validator: " +
validatorClassName);
ClassLoader loader = Thread.currentThread().getContextClassLoader();