SQLUtil { public static String getExpressionWithoutOutsideParentheses(final String value) { int parenthesesOffset = getParenthesesOffset(value); return 0 == parenthesesOffset ? value : value.substring(parenthesesOffset, value.length() - parenthesesOffset); }  static Number getExactlyNumber(final String value, final int radix); static String getExactlyValue(final String value); static String getExactlyExpression(final String value); static String getExpressionWithoutOutsideParentheses(final String value); static List<SubqueryTableSegment> getSubqueryTableSegmentFromTableSegment(final TableSegment tableSegment); static boolean isReadOnly(final SQLStatement sqlStatement);  }
@Test public void assertGetExpressionWithoutOutsideParentheses() { assertThat(SQLUtil.getExpressionWithoutOutsideParentheses("((a + b*c))"), is("a + b*c")); assertThat(SQLUtil.getExpressionWithoutOutsideParentheses(""), is("")); }