Skip to content

Commit 24268a5

Browse files
authored
Merge pull request #1397 from karesti/15-api
Uses 15.0 Infinispan API
2 parents 2f895a6 + 8ec2a73 commit 24268a5

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
package org.acme.infinispan.client;
22

3-
import org.infinispan.protostream.annotations.ProtoField;
3+
import org.infinispan.protostream.annotations.Proto;
44

5-
public class Greeting {
6-
@ProtoField(number = 1)
7-
public String name;
8-
9-
@ProtoField(number = 2)
10-
public String message;
11-
}
5+
@Proto
6+
public record Greeting(String name, String message) { }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package org.acme.infinispan.client;
22

33
import org.infinispan.protostream.GeneratedSchema;
4-
import org.infinispan.protostream.annotations.AutoProtoSchemaBuilder;
4+
import org.infinispan.protostream.annotations.ProtoSchema;
55

6-
@AutoProtoSchemaBuilder(includeClasses = Greeting.class)
6+
@ProtoSchema(includeClasses = Greeting.class)
77
public interface GreetingSchema extends GeneratedSchema {
88
}

0 commit comments

Comments
 (0)