Lose idiotic, inflexible password block.
Review at http://gwt-code-reviews.appspot.com/779803
Review by: amitmanjhi@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@8655 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java b/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
index d7e3659..74aecc5 100644
--- a/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
+++ b/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
@@ -121,18 +121,8 @@
public static final String RELATED = "related";
- public static final Set<String> BLACK_LIST = initBlackList();
-
private static final Logger log = Logger.getLogger(JsonRequestProcessor.class.getName());
- public static Set<String> initBlackList() {
- Set<String> blackList = new HashSet<String>();
- for (String str : new String[] {"password"}) {
- blackList.add(str);
- }
- return Collections.unmodifiableSet(blackList);
- }
-
private RequestProperty propertyRefs;
private Map<String, JSONObject> relatedObjects = new HashMap<String, JSONObject>();
@@ -1047,9 +1037,9 @@
RequestProperty propertyContext) {
if (Record.class.isAssignableFrom(p.getType())) {
return propertyContext.hasProperty(p.getName());
- } else {
- return !BLACK_LIST.contains(p.getName());
}
+
+ return true;
}
/**