File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
polaris-core/src/main/java/org/apache/polaris/core/policy Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments