Skip to content

Commit

Permalink
Make PermissionConfig a Versioned type (hazelcast#25366)
Browse files Browse the repository at this point in the history
Fixes hazelcast/hazelcast-enterprise#6439.

Also fixes failing
`com.hazelcast.internal.serialization.impl.DataSerializableImplementsVersionedTest.testIdentifiedDataSerializableForVersionedInterface`
  • Loading branch information
kwart committed Sep 5, 2023
1 parent a924d5d commit e3699f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.IdentifiedDataSerializable;
import com.hazelcast.nio.serialization.impl.Versioned;
import com.hazelcast.security.permission.AllPermissions;
import com.hazelcast.security.permission.AtomicLongPermission;
import com.hazelcast.security.permission.AtomicReferencePermission;
Expand Down Expand Up @@ -65,7 +66,7 @@
/**
* Contains the configuration for a permission.
*/
public class PermissionConfig implements IdentifiedDataSerializable {
public class PermissionConfig implements IdentifiedDataSerializable, Versioned {

private PermissionType type;
private String name;
Expand Down

0 comments on commit e3699f7

Please sign in to comment.