From 14b4a217fdc2395e2ec32c95c8dd66bc7e4facd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=BCnter?= Date: Wed, 25 Oct 2017 21:55:46 +0000 Subject: [PATCH] Beautify 2 --- src/zcx_abapgit_exception.clas.abap | 55 +++++++++++++++-------------- src/zcx_abapgit_not_found.clas.abap | 16 ++++----- 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/src/zcx_abapgit_exception.clas.abap b/src/zcx_abapgit_exception.clas.abap index 357fd85d2..ea51cfd5f 100644 --- a/src/zcx_abapgit_exception.clas.abap +++ b/src/zcx_abapgit_exception.clas.abap @@ -1,40 +1,40 @@ -class ZCX_ABAPGIT_EXCEPTION definition - public - inheriting from CX_STATIC_CHECK - create public . +CLASS zcx_abapgit_exception DEFINITION + PUBLIC + INHERITING FROM cx_static_check + CREATE PUBLIC . -public section. + PUBLIC SECTION. - data TEXT type STRING . + DATA text TYPE string . + + METHODS constructor + IMPORTING + !textid LIKE textid OPTIONAL + !previous LIKE previous OPTIONAL + !text TYPE string OPTIONAL. + + CLASS-METHODS raise + IMPORTING + !iv_text TYPE clike + RAISING + zcx_abapgit_exception. - methods CONSTRUCTOR - importing - !TEXTID like TEXTID optional - !PREVIOUS like PREVIOUS optional - !TEXT type STRING optional . - class-methods RAISE - importing - !IV_TEXT type CLIKE - raising - ZCX_ABAPGIT_EXCEPTION . -protected section. -private section. ENDCLASS. -CLASS ZCX_ABAPGIT_EXCEPTION IMPLEMENTATION. +CLASS zcx_abapgit_exception IMPLEMENTATION. + METHOD constructor ##ADT_SUPPRESS_GENERATION. - method CONSTRUCTOR ##ADT_SUPPRESS_GENERATION. -CALL METHOD SUPER->CONSTRUCTOR -EXPORTING -TEXTID = TEXTID -PREVIOUS = PREVIOUS -. -me->TEXT = TEXT . - endmethod. + CALL METHOD super->constructor + EXPORTING + textid = textid + previous = previous. + me->text = text . + + ENDMETHOD. METHOD raise. @@ -43,4 +43,5 @@ me->TEXT = TEXT . text = iv_text. ENDMETHOD. + ENDCLASS. diff --git a/src/zcx_abapgit_not_found.clas.abap b/src/zcx_abapgit_not_found.clas.abap index a7adf62dd..b19c9d44a 100644 --- a/src/zcx_abapgit_not_found.clas.abap +++ b/src/zcx_abapgit_not_found.clas.abap @@ -1,12 +1,12 @@ -class zcx_abapgit_not_found definition - public - inheriting from CX_STATIC_CHECK - final - create public . +CLASS zcx_abapgit_not_found DEFINITION + PUBLIC + INHERITING FROM cx_static_check + FINAL + CREATE PUBLIC . -public section. -protected section. -private section. + PUBLIC SECTION. + PROTECTED SECTION. + PRIVATE SECTION. ENDCLASS.