From 9890c6654667769f8ce806e7ef5505138a710156 Mon Sep 17 00:00:00 2001 From: Raffi Khatchadourian Date: Wed, 8 Nov 2023 14:08:18 -0500 Subject: [PATCH] Optimizable functions should be taken from candidates. --- .../handlers/EvaluateHybridizeFunctionRefactoringHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edu.cuny.hunter.hybridize.eval/src/edu/cuny/hunter/hybridize/eval/handlers/EvaluateHybridizeFunctionRefactoringHandler.java b/edu.cuny.hunter.hybridize.eval/src/edu/cuny/hunter/hybridize/eval/handlers/EvaluateHybridizeFunctionRefactoringHandler.java index 7161619c3..25d9fe2a9 100644 --- a/edu.cuny.hunter.hybridize.eval/src/edu/cuny/hunter/hybridize/eval/handlers/EvaluateHybridizeFunctionRefactoringHandler.java +++ b/edu.cuny.hunter.hybridize.eval/src/edu/cuny/hunter/hybridize/eval/handlers/EvaluateHybridizeFunctionRefactoringHandler.java @@ -161,8 +161,8 @@ public Object execute(ExecutionEvent event) throws ExecutionException { transformationsPrinter.printRecord(buildAttributeColumnValues(function, transformation)); } - // optimizable functions. - Set optimizableFunctions = processor.getOptimizableFunctions(); + // optimizable candidate functions. + Set optimizableFunctions = Sets.intersection(candidates, processor.getOptimizableFunctions()); resultsPrinter.print(optimizableFunctions.size()); // number. for (Function function : optimizableFunctions)