Skip to content

Commit

Permalink
refactor code for extra work.
Browse files Browse the repository at this point in the history
  • Loading branch information
heli authored and zhiqiangqian committed Jul 22, 2014
1 parent ad812ca commit 76b0487
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -112,8 +112,8 @@ public static boolean checkQueryExpression( String checkType, Object data,
return true;
}

ExpressionCodec exprCodec = ChartModelHelper.instance( )
.createExpressionCodec( );
ExpressionCodec exprCodec = ChartReportItemHelper.instance( )
.createExpressionCodec( itemHandle );

String categoryDimension = null;
String yOptionDimension = null;
Expand Down Expand Up @@ -181,7 +181,7 @@ else if ( ChartUIConstants.QUERY_CATEGORY.equals( checkType ) )
while ( columnBindings.hasNext( ) )
{
ComputedColumnHandle columnHandle = columnBindings.next( );
ChartItemUtil.loadExpression( exprCodec, columnHandle );
ChartReportItemHelper.instance( ).loadExpression( exprCodec, columnHandle );
String bindName = columnHandle.getName( );
if ( !exprCodec.isDimensionExpresion( ) )
{
Expand Down

0 comments on commit 76b0487

Please sign in to comment.