Skip to content

Commit 86528ab

Browse files
Fix Java codegen
1 parent 2bb2475 commit 86528ab

File tree

2 files changed

+578
-578
lines changed

2 files changed

+578
-578
lines changed

scripts/py_matter_idl/matter_idl/generators/java/ChipClusters_java.jinja

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public class ChipClusters {
238238

239239
@Deprecated
240240
public void deleteCluster(long chipClusterPtr) {}
241-
241+
242242
@SuppressWarnings("deprecation")
243243
protected void finalize() throws Throwable {
244244
super.finalize();
@@ -415,7 +415,7 @@ public class ChipClusters {
415415
elements.add(new StructElement({{field.name | lowfirst_except_acronym}}FieldID, {{field.name | lowfirst_except_acronym}}tlvValue));
416416
{% endfor -%}
417417
{%- endif %}
418-
StructType value = new StructType(elements);
418+
StructType commandArgs = new StructType(elements);
419419
invoke(new InvokeCallbackImpl(callback) {
420420
@Override
421421
public void onResponse(StructType invokeStructValue) {
@@ -456,7 +456,7 @@ public class ChipClusters {
456456
{%- else %}
457457
callback.onSuccess();
458458
{%- endif %}
459-
}}, commandId, value, timedInvokeTimeoutMs);
459+
}}, commandId, commandArgs, timedInvokeTimeoutMs);
460460
}
461461
{% endfor %}
462462
{%- set already_handled_command = [] -%}

0 commit comments

Comments
 (0)