Skip to content

Commit

Permalink
refactor: specific setup method in input mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
nsenave committed Sep 30, 2024
1 parent 480282c commit 1006754
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private void setup(Object inputObject, EnoObject enoObject) {
* Method called at the end of the setup method.
* Designed to add setup steps that are specific to concrete mappers.
*/
abstract void specificSetup(Object inputObject);
void specificSetup(Object inputObject) {}

void mapInputObject(Object inputObject, EnoObject enoObject) {
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ public PoguesMapper() {
super(Format.POGUES, new PoguesConverter());
}

/**
* Nothing special to do
* @param inputObject Pogues model object.
*/
@Override
void specificSetup(Object inputObject) {}

public void mapPoguesQuestionnaire(Questionnaire poguesQuestionnaire, EnoQuestionnaire enoQuestionnaire) {
mapInputObject(poguesQuestionnaire, enoQuestionnaire);
}
Expand Down

0 comments on commit 1006754

Please sign in to comment.