Skip to content

Commit 92f3675

Browse files
committed
solves #298
1 parent 8c762c8 commit 92f3675

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/checks/y_check_external_call_in_ut.clas.abap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ CLASS y_check_external_call_in_ut IMPLEMENTATION.
8181
LOOP AT ref_scan_manager->tokens ASSIGNING FIELD-SYMBOL(<token>)
8282
FROM statement-from TO statement-to
8383
WHERE type = 'I'.
84-
IF ( <token>-str CS 'CL_GUI_' ).
84+
IF <token>-str CS 'CL_GUI_'
85+
AND <token>-str NS '=>'.
8586
has_redirection = abap_true.
8687
ENDIF.
8788
ENDLOOP.

src/checks/y_check_external_call_in_ut.clas.testclasses.abap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ CLASS ltc_cl_gui_usage IMPLEMENTATION.
357357

358358
( ' CLASS lcl_classname IMPLEMENTATION. ' )
359359
( ' METHOD example. ' )
360-
( ' RETURN. ' )
361-
( ' "no instance of CL_GUI_* classes ' )
360+
( ' DATA exp TYPE ui_functions. ' )
361+
( ' APPEND cl_gui_alv_tree_simple=>mc_fc_calculate TO exp.' )
362362
( ' ENDMETHOD. ' )
363363
( ' ENDCLASS. ' )
364364
).

0 commit comments

Comments
 (0)