From 27af4db9ce1dcabca08e4c6812c64d32bd13f8ac Mon Sep 17 00:00:00 2001 From: sb-cecilialiu Date: Tue, 17 Dec 2024 11:33:11 -0600 Subject: [PATCH] MAT-7995 filter out err msg when define lacks name --- .../filters/CqlTranslatorExceptionFilter.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/gov/cms/mat/cql_elm_translation/service/filters/CqlTranslatorExceptionFilter.java b/src/main/java/gov/cms/mat/cql_elm_translation/service/filters/CqlTranslatorExceptionFilter.java index 5212f46..afd2bd5 100644 --- a/src/main/java/gov/cms/mat/cql_elm_translation/service/filters/CqlTranslatorExceptionFilter.java +++ b/src/main/java/gov/cms/mat/cql_elm_translation/service/filters/CqlTranslatorExceptionFilter.java @@ -53,12 +53,6 @@ public List filter() { return newList; } - /* - * MAT-7995: error: "No Viable Input at 'define :'" - * should be customized as: "Definition is missing a name." - * This is done in cql-antlr-parse, so on the frontend we don't want a duplicate error message - * therefore we are filtering it out here. - */ private List filterOutWarnings() { if (showWarnings) { return cqlTranslatorExceptions; @@ -118,6 +112,12 @@ private List filterBySyntax( .toList(); } + /* + * MAT-7995: error: "No Viable Input at 'define :'" + * should be customized as: "Definition is missing a name." + * This is done in cql-antlr-parse, so on the frontend we don't want a duplicate error message + * therefore we are filtering it out here. + */ private List filterOutCustomErrors( List filteredCqlTranslatorExceptions) { return filteredCqlTranslatorExceptions.stream()