Skip to content

Commit

Permalink
Update template according to open-telemetry/build-tools#41
Browse files Browse the repository at this point in the history
  • Loading branch information
arminru committed Apr 9, 2021
1 parent 2086c49 commit adcf6ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import java.util.List;

// DO NOT EDIT, this is an Auto-generated file from buildscripts/semantic-convention{{template}}
public final class {{class}} {
{%- for attribute in attributes | unique(attribute="fqn") %}
{%- for attribute in attributes if attribute.is_local and not attribute.ref %}

/**
* {% filter escape %}{{attribute.brief | to_doc_brief}}.{% endfilter %}
Expand All @@ -72,7 +72,7 @@ public final class {{class}} {
{%- endfor %}

// Enum definitions
{%- for attribute in attributes | unique(attribute="fqn") %}
{%- for attribute in attributes if attribute.is_local and not attribute.ref %}
{%- if attribute.is_enum %}
{%- set class_name = attribute.fqn | to_camelcase(True) ~ "Values" %}
{%- set type = to_java_return_type(attribute.attr_type.enum_type) %}
Expand Down

0 comments on commit adcf6ef

Please sign in to comment.