This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 854408418 fix(#2292): Rename type identifier in Group model (#2293)
854408418 is described below
commit 854408418396f5560acec777ac308e5546f71d6f
Author: Dominik Riemer <[email protected]>
AuthorDate: Fri Dec 8 08:42:29 2023 +0100
fix(#2292): Rename type identifier in Group model (#2293)
---
.../org/apache/streampipes/model/client/user/Group.java | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git
a/streampipes-model-client/src/main/java/org/apache/streampipes/model/client/user/Group.java
b/streampipes-model-client/src/main/java/org/apache/streampipes/model/client/user/Group.java
index 7cccfadd1..8829add8a 100644
---
a/streampipes-model-client/src/main/java/org/apache/streampipes/model/client/user/Group.java
+++
b/streampipes-model-client/src/main/java/org/apache/streampipes/model/client/user/Group.java
@@ -31,8 +31,10 @@ public class Group {
protected @SerializedName("_id") String groupId;
protected @SerializedName("_rev") String rev;
+ // This field should be called $type since this is the identifier used in
the CouchDB view
+ @SuppressWarnings("checkstyle:MemberName")
@JsonIgnore
- private String type = "group";
+ private String $type = "group";
private String groupName;
@@ -74,11 +76,13 @@ public class Group {
this.roles = roles;
}
- public String getType() {
- return type;
+ @SuppressWarnings("checkstyle:MethodName")
+ public String get$type() {
+ return $type;
}
- public void setType(String type) {
- this.type = type;
+ @SuppressWarnings({"checkstyle:MethodName", "checkstyle:ParameterName"})
+ public void set$type(String $type) {
+ this.$type = $type;
}
}