Skip to content

Commit

Permalink
downport
Browse files Browse the repository at this point in the history
  • Loading branch information
CI committed Jul 28, 2023
1 parent ccf4b46 commit 2a0c507
Show file tree
Hide file tree
Showing 321 changed files with 1,212 additions and 1,212 deletions.
6 changes: 3 additions & 3 deletions src/apack/zcl_abapgit_apack_migration.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ CLASS zcl_abapgit_apack_migration IMPLEMENTATION.

SELECT SINGLE clsname FROM seoclass INTO lv_interface_name
WHERE clsname = zif_abapgit_apack_definitions=>c_apack_interface_cust.
rv_interface_exists = xsdbool( sy-subrc = 0 ).
rv_interface_exists = boolc( sy-subrc = 0 ).

ENDMETHOD.

Expand All @@ -254,7 +254,7 @@ CLASS zcl_abapgit_apack_migration IMPLEMENTATION.
FIELD-SYMBOLS: <lv_interface_vers> TYPE i.

ASSIGN (zif_abapgit_apack_definitions=>c_apack_interface_cust)=>('CO_INTERFACE_VERSION') TO <lv_interface_vers>.
rv_interface_valid = xsdbool( <lv_interface_vers> IS ASSIGNED
rv_interface_valid = boolc( <lv_interface_vers> IS ASSIGNED
AND <lv_interface_vers> >= c_apack_interface_version ).

ENDMETHOD.
Expand All @@ -275,7 +275,7 @@ CLASS zcl_abapgit_apack_migration IMPLEMENTATION.

DATA: lo_apack_migration TYPE REF TO zcl_abapgit_apack_migration.

lo_apack_migration = NEW #( ).
CREATE OBJECT lo_apack_migration.
lo_apack_migration->perform_migration( ).

ENDMETHOD.
Expand Down
2 changes: 1 addition & 1 deletion src/apack/zcl_abapgit_apack_reader.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ CLASS zcl_abapgit_apack_reader IMPLEMENTATION.


METHOD create_instance.
ro_manifest_reader = NEW #( iv_package_name = iv_package_name ).
CREATE OBJECT ro_manifest_reader EXPORTING iv_package_name = iv_package_name.
ENDMETHOD.


Expand Down
2 changes: 1 addition & 1 deletion src/apack/zcl_abapgit_apack_writer.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CLASS zcl_abapgit_apack_writer IMPLEMENTATION.


METHOD create_instance.
ro_manifest_writer = NEW #( is_apack_manifest_descriptor = is_apack_manifest_descriptor ).
CREATE OBJECT ro_manifest_writer EXPORTING is_apack_manifest_descriptor = is_apack_manifest_descriptor.
ENDMETHOD.


Expand Down
6 changes: 3 additions & 3 deletions src/apack/zcl_abapgit_apack_writer.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ CLASS ltcl_apack_manifest_writer IMPLEMENTATION.
lv_actual_xml = lo_manifest_writer->serialize( ).
cl_abap_unit_assert=>assert_not_initial( lv_actual_xml ).

lv_bool = xsdbool( contains( val = lv_actual_xml
lv_bool = boolc( contains( val = lv_actual_xml
sub = '<ARTIFACT_ID>abapGit</ARTIFACT_ID>' ) ).
cl_abap_unit_assert=>assert_equals( act = lv_bool
exp = abap_true ).
lv_bool = xsdbool( contains( val = lv_actual_xml
lv_bool = boolc( contains( val = lv_actual_xml
sub = '<GROUP_ID>github.com/larshp</GROUP_ID>' ) ).
cl_abap_unit_assert=>assert_equals( act = lv_bool
exp = abap_true ).
lv_bool = xsdbool( contains( val = lv_actual_xml
lv_bool = boolc( contains( val = lv_actual_xml
sub = '<REPOSITORY_TYPE>abapGit</REPOSITORY_TYPE>' ) ).
cl_abap_unit_assert=>assert_equals( act = lv_bool
exp = abap_true ).
Expand Down
4 changes: 2 additions & 2 deletions src/background/zcl_abapgit_background.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ CLASS ZCL_ABAPGIT_BACKGROUND IMPLEMENTATION.
RETURN.
ENDIF.

lo_per = NEW #( ).
CREATE OBJECT lo_per.
lt_list = lo_per->list( ).

WRITE: / 'Background mode'.
Expand All @@ -112,7 +112,7 @@ CLASS ZCL_ABAPGIT_BACKGROUND IMPLEMENTATION.
iv_username = <ls_list>-username
iv_password = <ls_list>-password ).

li_log = NEW zcl_abapgit_log( ).
CREATE OBJECT li_log TYPE zcl_abapgit_log.
CREATE OBJECT li_background TYPE (<ls_list>-method).

li_background->run(
Expand Down
4 changes: 2 additions & 2 deletions src/background/zcl_abapgit_background_push_au.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ CLASS zcl_abapgit_background_push_au IMPLEMENTATION.
* Fill user details
ls_comment-committer = determine_user_details( lv_changed_by ).

lo_stage = NEW #( ).
CREATE OBJECT lo_stage.

CLEAR ls_user_files.

Expand Down Expand Up @@ -193,7 +193,7 @@ CLASS zcl_abapgit_background_push_au IMPLEMENTATION.

ASSERT lines( is_files-remote ) > 0.

lo_stage = NEW #( ).
CREATE OBJECT lo_stage.

ls_comment-comment = 'BG: Deletion'.

Expand Down
2 changes: 1 addition & 1 deletion src/background/zcl_abapgit_background_push_fi.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ CLASS zcl_abapgit_background_push_fi IMPLEMENTATION.
ASSERT lines( ls_files-local ) > 0
OR lines( ls_files-remote ) > 0.

lo_stage = NEW #( ).
CREATE OBJECT lo_stage.

LOOP AT ls_files-local ASSIGNING <ls_local>.
mi_log->add_info( |stage: { <ls_local>-file-path } { <ls_local>-file-filename }| ).
Expand Down
6 changes: 3 additions & 3 deletions src/cts/zcl_abapgit_cts_api.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ CLASS zcl_abapgit_cts_api IMPLEMENTATION.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.

rv_locked = xsdbool( lv_lock_flag <> space ).
rv_locked = boolc( lv_lock_flag <> space ).
ENDMETHOD.


Expand All @@ -191,7 +191,7 @@ CLASS zcl_abapgit_cts_api IMPLEMENTATION.
IMPORTING
pe_result = lv_type_check_result.

rv_lockable = xsdbool( lv_type_check_result = 'L' ).
rv_lockable = boolc( lv_type_check_result = 'L' ).
ENDMETHOD.


Expand All @@ -209,7 +209,7 @@ CLASS zcl_abapgit_cts_api IMPLEMENTATION.
IMPORTING
pe_result = lv_type_check_result.

rv_transportable = xsdbool( lv_type_check_result CA 'RTL' ).
rv_transportable = boolc( lv_type_check_result CA 'RTL' ).
ENDMETHOD.


Expand Down
2 changes: 1 addition & 1 deletion src/cts/zcl_abapgit_default_transport.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ CLASS zcl_abapgit_default_transport IMPLEMENTATION.
METHOD get_instance.

IF go_instance IS NOT BOUND.
go_instance = NEW #( ).
CREATE OBJECT go_instance.
ENDIF.

ro_instance = go_instance.
Expand Down
2 changes: 1 addition & 1 deletion src/cts/zcl_abapgit_transport.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ CLASS zcl_abapgit_transport IMPLEMENTATION.
lv_message TYPE string.
FIELD-SYMBOLS: <ls_log> TYPE sprot_u.

li_log = NEW zcl_abapgit_log( iv_title = iv_title ).
CREATE OBJECT li_log TYPE zcl_abapgit_log EXPORTING iv_title = iv_title.

LOOP AT it_log ASSIGNING <ls_log>.

Expand Down
4 changes: 2 additions & 2 deletions src/cts/zcl_abapgit_transport_2_branch.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CLASS ZCL_ABAPGIT_TRANSPORT_2_BRANCH IMPLEMENTATION.

io_repository->create_branch( lv_branch_name ).

lo_stage = NEW #( ).
CREATE OBJECT lo_stage.

ls_stage_objects = zcl_abapgit_factory=>get_stage_logic( )->get( io_repository ).

Expand Down Expand Up @@ -76,7 +76,7 @@ CLASS ZCL_ABAPGIT_TRANSPORT_2_BRANCH IMPLEMENTATION.

METHOD stage_transport_objects.
DATA lo_transport_objects TYPE REF TO zcl_abapgit_transport_objects.
lo_transport_objects = NEW #( it_transport_objects = it_transport_objects ).
CREATE OBJECT lo_transport_objects EXPORTING it_transport_objects = it_transport_objects.

lo_transport_objects->to_stage(
io_stage = io_stage
Expand Down
2 changes: 1 addition & 1 deletion src/cts/zcl_abapgit_transport_mass.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CLASS zcl_abapgit_transport_mass IMPLEMENTATION.
ENDIF.

* Instantiate transport zipper object that will also create the timestamped output folder
lo_transport_zipper = NEW lcl_transport_zipper( iv_folder = lv_folder ).
CREATE OBJECT lo_transport_zipper TYPE lcl_transport_zipper EXPORTING iv_folder = lv_folder.

* Generate the local zip files from the given list of transport requests
lo_transport_zipper->generate_files(
Expand Down
4 changes: 2 additions & 2 deletions src/cts/zcl_abapgit_transport_objects.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ENDCLASS.
CLASS ltcl_transport_objects IMPLEMENTATION.

METHOD setup.
mo_stage = NEW #( ).
CREATE OBJECT mo_stage.
ENDMETHOD.

METHOD add_new_to_local_files.
Expand Down Expand Up @@ -391,7 +391,7 @@ CLASS ltcl_transport_objects IMPLEMENTATION.
ENDMETHOD.

METHOD when_staging.
mo_transport_objects = NEW #( it_transport_objects = mt_transport_objects ).
CREATE OBJECT mo_transport_objects EXPORTING it_transport_objects = mt_transport_objects.
mo_transport_objects->to_stage(
io_stage = mo_stage
is_stage_objects = ms_stage_objects
Expand Down
6 changes: 3 additions & 3 deletions src/data/zcl_abapgit_data_config.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CLASS ltcl_test IMPLEMENTATION.
DATA li_config TYPE REF TO zif_abapgit_data_config.
DATA ls_config TYPE zif_abapgit_data_config=>ty_config.

li_config = NEW zcl_abapgit_data_config( ).
CREATE OBJECT li_config TYPE zcl_abapgit_data_config.

ls_config-name = 'HELLO'.
ls_config-type = zif_abapgit_data_config=>c_data_type-tabu.
Expand All @@ -64,7 +64,7 @@ CLASS ltcl_test IMPLEMENTATION.
DATA lv_json TYPE string.


li_config = NEW zcl_abapgit_data_config( ).
CREATE OBJECT li_config TYPE zcl_abapgit_data_config.
li_config->add_config( ms_config ).

lt_files = li_config->to_json( ).
Expand Down Expand Up @@ -92,7 +92,7 @@ CLASS ltcl_test IMPLEMENTATION.

DATA li_config TYPE REF TO zif_abapgit_data_config.

li_config = NEW zcl_abapgit_data_config( ).
CREATE OBJECT li_config TYPE zcl_abapgit_data_config.

li_config->from_json( it_files ).

Expand Down
4 changes: 2 additions & 2 deletions src/data/zcl_abapgit_data_deserializer.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ CLASS ltcl_test IMPLEMENTATION.
DATA lt_files TYPE zif_abapgit_git_definitions=>ty_files_tt.
DATA ls_config TYPE zif_abapgit_data_config=>ty_config.

li_cut = NEW zcl_abapgit_data_deserializer( ).
li_config = NEW zcl_abapgit_data_config( ).
CREATE OBJECT li_cut TYPE zcl_abapgit_data_deserializer.
CREATE OBJECT li_config TYPE zcl_abapgit_data_config.

ls_config-type = zif_abapgit_data_config=>c_data_type-tabu.
ls_config-name = 'T100'.
Expand Down
8 changes: 4 additions & 4 deletions src/data/zcl_abapgit_data_factory.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ CLASS zcl_abapgit_data_factory IMPLEMENTATION.


METHOD get_config.
ri_config = NEW zcl_abapgit_data_config( ).
CREATE OBJECT ri_config TYPE zcl_abapgit_data_config.
ENDMETHOD.


METHOD get_deserializer.

IF gi_deserializer IS INITIAL.
gi_deserializer = NEW zcl_abapgit_data_deserializer( ).
CREATE OBJECT gi_deserializer TYPE zcl_abapgit_data_deserializer.
ENDIF.

ri_deserializer = gi_deserializer.
Expand All @@ -49,7 +49,7 @@ CLASS zcl_abapgit_data_factory IMPLEMENTATION.
METHOD get_serializer.

IF gi_serializer IS INITIAL.
gi_serializer = NEW zcl_abapgit_data_serializer( ).
CREATE OBJECT gi_serializer TYPE zcl_abapgit_data_serializer.
ENDIF.

ri_serializer = gi_serializer.
Expand All @@ -60,7 +60,7 @@ CLASS zcl_abapgit_data_factory IMPLEMENTATION.
METHOD get_supporter.

IF gi_supporter IS INITIAL.
gi_supporter = NEW zcl_abapgit_data_supporter( ).
CREATE OBJECT gi_supporter TYPE zcl_abapgit_data_supporter.
ENDIF.

ri_supporter = gi_supporter.
Expand Down
4 changes: 2 additions & 2 deletions src/data/zcl_abapgit_data_serializer.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ ENDCLASS.
CLASS ltcl_test IMPLEMENTATION.

METHOD setup.
mi_cut = NEW zcl_abapgit_data_serializer( ).
mi_config = NEW zcl_abapgit_data_config( ).
CREATE OBJECT mi_cut TYPE zcl_abapgit_data_serializer.
CREATE OBJECT mi_config TYPE zcl_abapgit_data_config.
ENDMETHOD.

METHOD serialize.
Expand Down
4 changes: 2 additions & 2 deletions src/data/zcl_abapgit_data_supporter.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ CLASS ltcl_supporter IMPLEMENTATION.
DATA lv_act TYPE abap_bool.

" Mock sets table T005 to be supported
lo_mock = NEW #( ).
lo_inject = NEW #( ).
CREATE OBJECT lo_mock.
CREATE OBJECT lo_inject.
lo_inject->set_supporter( lo_mock ).

lv_act = zcl_abapgit_data_factory=>get_supporter( )->is_object_supported(
Expand Down
2 changes: 1 addition & 1 deletion src/exits/zcl_abapgit_exit.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CLASS zcl_abapgit_exit IMPLEMENTATION.
ENDTRY.
ENDIF.

ri_exit = NEW zcl_abapgit_exit( ).
CREATE OBJECT ri_exit TYPE zcl_abapgit_exit.

ENDMETHOD.

Expand Down
2 changes: 1 addition & 1 deletion src/git/zcl_abapgit_git_add_patch.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ CLASS ltcl_calculate_patch IMPLEMENTATION.

DATA: lo_git_add_patch TYPE REF TO zcl_abapgit_git_add_patch.

lo_git_add_patch = NEW #( it_diff = mt_diff ).
CREATE OBJECT lo_git_add_patch EXPORTING it_diff = mt_diff.

TRY.
mt_patch = lo_git_add_patch->get_patch( ).
Expand Down
2 changes: 1 addition & 1 deletion src/git/zcl_abapgit_git_commit.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ CLASS zcl_abapgit_git_commit IMPLEMENTATION.
READ TABLE it_commits
TRANSPORTING NO FIELDS
WITH KEY sha1 = iv_sha1.
rv_result = xsdbool( sy-subrc <> 0 ).
rv_result = boolc( sy-subrc <> 0 ).

ENDIF.

Expand Down
2 changes: 1 addition & 1 deletion src/git/zcl_abapgit_git_pack.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ CLASS zcl_abapgit_git_pack IMPLEMENTATION.
FIELD-SYMBOLS: <ls_object> LIKE LINE OF ct_objects.


lo_stream = NEW #( iv_data = is_object-data ).
CREATE OBJECT lo_stream EXPORTING iv_data = is_object-data.

* find base
READ TABLE ct_objects ASSIGNING <ls_object>
Expand Down
2 changes: 1 addition & 1 deletion src/git/zcl_abapgit_git_transport.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ CLASS zcl_abapgit_git_transport IMPLEMENTATION.

lv_data = eo_client->get_cdata( ).

eo_branch_list = NEW #( iv_data = lv_data ).
CREATE OBJECT eo_branch_list EXPORTING iv_data = lv_data.

ENDMETHOD.

Expand Down
2 changes: 1 addition & 1 deletion src/git/zcl_abapgit_git_utils.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENDCLASS.
CLASS ltcl_git_utils IMPLEMENTATION.

METHOD setup.
mo_cut = NEW #( ).
CREATE OBJECT mo_cut.
ENDMETHOD.

METHOD get_null.
Expand Down
12 changes: 6 additions & 6 deletions src/git/zlib/zcl_abapgit_zlib.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ CLASS ZCL_ABAPGIT_ZLIB IMPLEMENTATION.
ENDIF.

CLEAR gv_out.
go_stream = NEW #( iv_data = iv_compressed ).
CREATE OBJECT go_stream EXPORTING iv_data = iv_compressed.

DO.
lv_bfinal = go_stream->take_bits( 1 ).
Expand Down Expand Up @@ -225,7 +225,7 @@ CLASS ZCL_ABAPGIT_ZLIB IMPLEMENTATION.
<lv_length> = go_stream->take_int( 3 ).
ENDDO.

go_lencode = NEW #( it_lengths = lt_lengths ).
CREATE OBJECT go_lencode EXPORTING it_lengths = lt_lengths.

CLEAR lt_lengths.
WHILE lines( lt_lengths ) < lv_nlen + lv_ndist.
Expand Down Expand Up @@ -254,9 +254,9 @@ CLASS ZCL_ABAPGIT_ZLIB IMPLEMENTATION.
DELETE lt_lengths FROM lv_nlen + 1.
DELETE lt_dists TO lv_nlen.

go_lencode = NEW #( it_lengths = lt_lengths ).
CREATE OBJECT go_lencode EXPORTING it_lengths = lt_lengths.

go_distcode = NEW #( it_lengths = lt_dists ).
CREATE OBJECT go_distcode EXPORTING it_lengths = lt_dists.

ENDMETHOD.

Expand All @@ -279,14 +279,14 @@ CLASS ZCL_ABAPGIT_ZLIB IMPLEMENTATION.
APPEND 8 TO lt_lengths.
ENDDO.

go_lencode = NEW #( it_lengths = lt_lengths ).
CREATE OBJECT go_lencode EXPORTING it_lengths = lt_lengths.

CLEAR lt_lengths.
DO c_maxdcodes TIMES.
APPEND 5 TO lt_lengths.
ENDDO.

go_distcode = NEW #( it_lengths = lt_lengths ).
CREATE OBJECT go_distcode EXPORTING it_lengths = lt_lengths.

ENDMETHOD.

Expand Down
Loading

0 comments on commit 2a0c507

Please sign in to comment.