Author: manik.surtani(a)jboss.com
Date: 2008-06-30 15:10:15 -0400 (Mon, 30 Jun 2008)
New Revision: 6130
Modified:
core/branches/2.2.X/src/main/java/org/jboss/cache/factories/XmlConfigurationParser.java
Log:
PMD fixes
Modified:
core/branches/2.2.X/src/main/java/org/jboss/cache/factories/XmlConfigurationParser.java
===================================================================
---
core/branches/2.2.X/src/main/java/org/jboss/cache/factories/XmlConfigurationParser.java 2008-06-30
19:07:05 UTC (rev 6129)
+++
core/branches/2.2.X/src/main/java/org/jboss/cache/factories/XmlConfigurationParser.java 2008-06-30
19:10:15 UTC (rev 6130)
@@ -347,7 +347,10 @@
}
catch (Exception e)
{
- throw new ConfigurationException("Bad buddyCommunicationTimeout [" +
strBuddyCommunicationTimeout + "]");
+ if (strBuddyCommunicationTimeout != null &&
strBuddyCommunicationTimeout.trim().length() != 0)
+ {
+ throw new ConfigurationException("Bad buddyCommunicationTimeout ["
+ strBuddyCommunicationTimeout + "]");
+ }
}
finally
{
Show replies by date