mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.1) to HEAD (5.2)
130645 amorarasu: REPO-484: Code formatting. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132160 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -76,7 +76,6 @@ public abstract class QueryHelper
|
||||
*/
|
||||
void in(String property, boolean negated, String... propertyValues);
|
||||
|
||||
|
||||
/**
|
||||
* Called any time a MATCHES clause is encountered.
|
||||
* @param property Name of the property
|
||||
@@ -127,7 +126,6 @@ public abstract class QueryHelper
|
||||
*/
|
||||
public static void walk(Query query, WalkerCallback callback)
|
||||
{
|
||||
|
||||
CommonTree tree = query.getTree();
|
||||
if (tree != null)
|
||||
{
|
||||
@@ -168,7 +166,8 @@ public abstract class QueryHelper
|
||||
List<Tree> children = getChildren(tree);
|
||||
//Don't need the first item because its the property name
|
||||
String[] inVals = new String[children.size()-1];
|
||||
for (int i = 1; i < children.size(); i++) {
|
||||
for (int i = 1; i < children.size(); i++)
|
||||
{
|
||||
inVals[i-1] = stripQuotes(children.get(i).getText());
|
||||
}
|
||||
callback.in(tree.getChild(0).getText(), negated, inVals);
|
||||
@@ -201,14 +200,16 @@ public abstract class QueryHelper
|
||||
case WhereClauseParser.OR:
|
||||
callback.or();
|
||||
List<Tree> children = getChildren(tree);
|
||||
for (Tree child : children) {
|
||||
for (Tree child : children)
|
||||
{
|
||||
callbackTree(child, callback, negated);
|
||||
}
|
||||
return;
|
||||
case WhereClauseParser.AND:
|
||||
callback.and();
|
||||
List<Tree> childrenOfAnd = getChildren(tree);
|
||||
for (Tree child : childrenOfAnd) {
|
||||
for (Tree child : childrenOfAnd)
|
||||
{
|
||||
callbackTree(child, callback, negated);
|
||||
}
|
||||
return;
|
||||
|
Reference in New Issue
Block a user