design change - no longer surfacing typeDescriptor through property accessor. conversion done internally in property write() code
This commit is contained in:
@@ -23,7 +23,6 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.core.convert.TypeDescriptor;
|
||||
import org.springframework.expression.AccessException;
|
||||
import org.springframework.expression.EvaluationContext;
|
||||
import org.springframework.expression.EvaluationException;
|
||||
@@ -266,9 +265,6 @@ public class ExpressionLanguageScenarioTests extends ExpressionTestCase {
|
||||
throws AccessException {
|
||||
}
|
||||
|
||||
public TypeDescriptor getTypeDescriptor(EvaluationContext context, Object target, String name) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -307,8 +303,5 @@ public class ExpressionLanguageScenarioTests extends ExpressionTestCase {
|
||||
public void write(EvaluationContext context, Object target, String name, Object newValue) throws AccessException {
|
||||
}
|
||||
|
||||
public TypeDescriptor getTypeDescriptor(EvaluationContext context, Object target, String name) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ package org.springframework.expression.spel;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.core.convert.TypeDescriptor;
|
||||
import org.springframework.expression.AccessException;
|
||||
import org.springframework.expression.EvaluationContext;
|
||||
import org.springframework.expression.Expression;
|
||||
@@ -86,9 +85,6 @@ public class MapAccessTests extends ExpressionTestCase {
|
||||
return new Class[] { Map.class };
|
||||
}
|
||||
|
||||
public TypeDescriptor getTypeDescriptor(EvaluationContext context, Object target, String name) {
|
||||
return TypeDescriptor.valueOf(Map.class);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.springframework.expression.spel;
|
||||
|
||||
import org.springframework.core.convert.TypeDescriptor;
|
||||
import org.springframework.expression.AccessException;
|
||||
import org.springframework.expression.EvaluationContext;
|
||||
import org.springframework.expression.EvaluationException;
|
||||
@@ -88,10 +87,6 @@ public class PropertyAccessTests extends ExpressionTestCase {
|
||||
|
||||
int flibbles = 7;
|
||||
|
||||
public TypeDescriptor getTypeDescriptor(EvaluationContext context, Object target, String name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Class<?>[] getSpecificTargetClasses() {
|
||||
return new Class[] { String.class };
|
||||
}
|
||||
|
||||
@@ -226,9 +226,6 @@ public class ScenariosForSpringSecurity extends ExpressionTestCase {
|
||||
return null;
|
||||
}
|
||||
|
||||
public TypeDescriptor getTypeDescriptor(EvaluationContext context, Object target, String name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -259,9 +256,6 @@ public class ScenariosForSpringSecurity extends ExpressionTestCase {
|
||||
return null;
|
||||
}
|
||||
|
||||
public TypeDescriptor getTypeDescriptor(EvaluationContext context, Object target, String name) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user