Skip to content
Snippets Groups Projects

Resolve "Refactorings/Clean-Up"

Merged René Schöne requested to merge 39-refactorings-clean-up into dev
9 files
+ 73
25
Compare changes
  • Side-by-side
  • Inline
Files
9
  • 3fef53c6
    cleanup · 3fef53c6
    René Schöne authored
    - update dependencies
    - move eval counter in receive definition after setting the target
@@ -25,9 +25,6 @@ private int {{parentTypeName}}.{{resolveInListMethodName}}(String topic) {
*/
public boolean {{parentTypeName}}.{{connectMethodName}}(String {{connectParameterName}}{{#typeIsList}}{{#IndexBasedListAccess}}{{^WithAdd}}, int index{{/WithAdd}}{{/IndexBasedListAccess}}{{/typeIsList}}) throws java.io.IOException {
java.util.function.BiConsumer<String, byte[]> consumer = (topic, message) -> {
{{#configEvaluationCounter}}
{{evaluationCounterVariable}}.incrementReceive("{{parentTypeName}}", "{{entityName}}");
{{/configEvaluationCounter}}
{{> mappingApplication}}
{{#configLoggingEnabledForReads}}
{{logDebug}}("[Receive] {{log_}} -> {{entityName}} = {{log_}}", {{connectParameterName}}, {{lastResult}});
@@ -60,6 +57,9 @@ public boolean {{parentTypeName}}.{{connectMethodName}}(String {{connectParamete
{{^hasTypeEndpointTarget}}
set{{entityName}}({{lastResult}});
{{/hasTypeEndpointTarget}}
{{#configEvaluationCounter}}
{{evaluationCounterVariable}}.incrementReceive("{{parentTypeName}}", "{{entityName}}");
{{/configEvaluationCounter}}
};
return {{internalConnectMethodName}}({{connectParameterName}}, consumer);
}
Loading