abaplint detected a false negative

"Exit is only allowed in loops" - it is wrong by any programming standard to prohibit the EXIT statement in WHILE loops (as it is used here)
But I used this commit to change the idiom `WHILE lo_iterator->has_next( )` to `WHILE lo_iterator->has_next( ) EQ abap_true` for backwards compatibility instead
This commit is contained in:
Rüdiger Plantiko 2025-04-09 20:53:16 +00:00
parent 523b51d351
commit 6881c33f6e

View File

@ -3270,7 +3270,7 @@ METHOD create_xl_drawing_for_comments.
).
lo_iterator = lo_comments->get_iterator( ).
WHILE lo_iterator->has_next( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_anchor ?= lo_anchors->get_item( sy-index - 1 ).
IF lo_anchor IS NOT BOUND.
EXIT.