Skip to content

Commit 5db6e7b

Browse files
committed
fix: add forgotten backward compatible constructor to AttributeHeader
1 parent 85a4a59 commit 5db6e7b

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/main/java/com/gooddata/executeafm/response/AttributeHeader.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,30 @@ public AttributeHeader(final String name, final String localIdentifier, final St
5151
this.formOf = null;
5252
}
5353

54+
/**
55+
* Creates new header
56+
* @deprecated use the constructor with {@link AttributeInHeader}
57+
*
58+
* @param name name
59+
* @param localIdentifier local identifier
60+
* @param uri uri
61+
* @param identifier identifier
62+
* @param totalHeaderItems total header items
63+
*/
64+
@Deprecated
65+
public AttributeHeader(final String name,
66+
final String localIdentifier,
67+
final String uri,
68+
final String identifier,
69+
final List<TotalHeaderItem> totalHeaderItems) {
70+
this.name = notEmpty(name, "name");
71+
this.localIdentifier = notEmpty(localIdentifier, "localIdentifier");
72+
this.uri = notEmpty(uri, "uri");
73+
this.identifier = notEmpty(identifier, "identifier");
74+
this.formOf = null;
75+
this.totalItems = totalHeaderItems;
76+
}
77+
5478
/**
5579
* Creates new header
5680
* @param name name

0 commit comments

Comments
 (0)