Author: mmao
Date: Tue Nov 13 03:23:54 2007
New Revision: 594487
URL: http://svn.apache.org/viewvc?rev=594487&view=rev
Log:
Fix the pmd checks
Modified:
incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
Modified:
incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java?rev=594487&r1=594486&r2=594487&view=diff
==============================================================================
---
incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
(original)
+++
incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
Tue Nov 13 03:23:54 2007
@@ -88,10 +88,8 @@
if (f.getPropertyInfo().getSchemaComponent() instanceof
XSParticle) {
XSParticle particle =
(XSParticle)f.getPropertyInfo().getSchemaComponent();
XSTerm term = particle.getTerm();
- if (term.isElementDecl()) {
- if (term.asElementDecl().getDefaultValue() != null) {
- return true;
- }
+ if (term.isElementDecl() &&
term.asElementDecl().getDefaultValue() != null) {
+ return true;
}
}
}