--- a/jdk/src/share/classes/javax/management/OrQueryExp.java Wed Oct 21 16:28:57 2009 +0200
+++ b/jdk/src/share/classes/javax/management/OrQueryExp.java Wed Oct 21 17:33:18 2009 +0200
@@ -104,24 +104,4 @@
public String toString() {
return "(" + exp1 + ") or (" + exp2 + ")";
}
-
- @Override
- String toQueryString() {
- return parens(exp1) + " or " + parens(exp2);
- }
-
- // Add parentheses to avoid possible confusion. If we have an expression
- // such as Query.or(Query.and(a, b), c), then we return
- // (a and b) or c
- // rather than just
- // a and b or c
- // In fact the precedence rules are such that the parentheses are not
- // strictly necessary, but omitting them would be confusing.
- private static String parens(QueryExp exp) {
- String s = Query.toString(exp);
- if (exp instanceof AndQueryExp)
- return "(" + s + ")";
- else
- return s;
- }
}