Skip to content
Permalink
Browse files
Temporarily dropping commons-lang dep from ODataParser as agreed with…
… Andriy; will revisit it for 3.0.0 Final

git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1568434 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Sergey Beryozkin committed Feb 14, 2014
1 parent ea2062a commit 51809a375ea45a468a2a321c3a5ea47c1351d2f9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
@@ -36,10 +36,6 @@
<cxf.lucene.version>4.0.0-BETA</cxf.lucene.version>
</properties>
<dependencies>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -28,7 +28,6 @@
import java.util.Map;
import java.util.Set;

import org.apache.commons.lang.ClassUtils;
import org.apache.cxf.jaxrs.ext.search.collections.CollectionCheckInfo;

/**
@@ -208,10 +207,6 @@ public Class<?> getTypeClass() {
return cls;
}

public Class<?> getWrappedTypeClass() {
return cls.isPrimitive() ? ClassUtils.primitiveToWrapper(cls) : cls;
}

public Type getGenericType() {
return genericType;
}
@@ -162,7 +162,7 @@ public Object visitBinary(BinaryExpression binaryExpression, BinaryOperator oper

Object typedValue = null;
// If property type and value type are compatible, just use them
if (property.typeInfo.getWrappedTypeClass().isAssignableFrom(value.typeClass)) {
if (property.typeInfo.getTypeClass().isAssignableFrom(value.typeClass)) {
typedValue = value.value;
} else { // Property type and value type are not compatible and convert / cast are required
typedValue = parseType(property.propertyName, null, null, property.propertyName,

0 comments on commit 51809a3

Please sign in to comment.