Skip to content

Commit 444fd1b

Browse files
committed
change return type to int
1 parent 875caf2 commit 444fd1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

polaris-core/src/main/java/org/apache/polaris/core/policy/PolicyEntity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public String getContent() {
7171
}
7272

7373
@JsonIgnore
74-
public String getPolicyVersion() {
75-
return getPropertiesAsMap().get(POLICY_VERSION_KEY);
74+
public int getPolicyVersion() {
75+
return Integer.parseInt(getPropertiesAsMap().get(POLICY_VERSION_KEY));
7676
}
7777

7878
public static class Builder extends PolarisEntity.BaseBuilder<PolicyEntity, Builder> {
@@ -116,8 +116,8 @@ public Builder setDescription(String description) {
116116
return this;
117117
}
118118

119-
public Builder setPolicyVersion(long version) {
120-
properties.put(POLICY_VERSION_KEY, Long.toString(version));
119+
public Builder setPolicyVersion(int version) {
120+
properties.put(POLICY_VERSION_KEY, Integer.toString(version));
121121
return this;
122122
}
123123

0 commit comments

Comments
 (0)