Skip to content

Commit c0a2dfc

Browse files
authored
Removing exceptions to test java code in Chip repo (#976)
Github: ZAP#898
1 parent 23049cd commit c0a2dfc

File tree

1 file changed

+1
-7
lines changed
  • src-electron/generator/matter/controller/java/templates

1 file changed

+1
-7
lines changed

src-electron/generator/matter/controller/java/templates/helper.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const zclUtil = require(zapPath + 'util/zcl-util.js');
2828

2929
const characterStringTypes = ['CHAR_STRING', 'LONG_CHAR_STRING'];
3030
const octetStringTypes = ['OCTET_STRING', 'LONG_OCTET_STRING'];
31-
const basicAttributeExceptionList = ['vendor_id'];
3231

3332
function convertBasicCTypeToJavaType(cType) {
3433
switch (cType) {
@@ -444,12 +443,7 @@ function incrementDepth(depth) {
444443
*/
445444
async function if_basic_attribute(type, clusterId, options) {
446445
let struct = null;
447-
if (
448-
this.isNullable ||
449-
this.isOptional ||
450-
this.isArray ||
451-
basicAttributeExceptionList.includes(type)
452-
) {
446+
if (this.isNullable || this.isOptional || this.isArray) {
453447
return options.inverse(this);
454448
} else {
455449
let packageIds = await templateUtil.ensureZclPackageIds(this);

0 commit comments

Comments
 (0)