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() {
71
71
}
72
72
73
73
@ 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 ) );
76
76
}
77
77
78
78
public static class Builder extends PolarisEntity .BaseBuilder <PolicyEntity , Builder > {
@@ -116,8 +116,8 @@ public Builder setDescription(String description) {
116
116
return this ;
117
117
}
118
118
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 ));
121
121
return this ;
122
122
}
123
123
You can’t perform that action at this time.
0 commit comments