Skip to content

Commit 12c24e2

Browse files
committed
fix: remove the @Serial annotations
Signed-off-by: Sun Yuhan <[email protected]>
1 parent 69fd352 commit 12c24e2

File tree

8 files changed

+0
-16
lines changed

8 files changed

+0
-16
lines changed

mcp-annotations/src/main/java/org/springaicommunity/mcp/method/changed/prompt/AbstractMcpPromptListChangedMethodCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
package org.springaicommunity.mcp.method.changed.prompt;
66

7-
import java.io.Serial;
87
import java.lang.reflect.Method;
98
import java.lang.reflect.Parameter;
109
import java.util.List;
@@ -119,7 +118,6 @@ protected Object[] buildArgs(Method method, Object exchange, List<McpSchema.Prom
119118
*/
120119
public static class McpPromptListChangedConsumerMethodException extends RuntimeException {
121120

122-
@Serial
123121
private static final long serialVersionUID = 1L;
124122

125123
/**

mcp-annotations/src/main/java/org/springaicommunity/mcp/method/changed/resource/AbstractMcpResourceListChangedMethodCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
package org.springaicommunity.mcp.method.changed.resource;
66

7-
import java.io.Serial;
87
import java.lang.reflect.Method;
98
import java.lang.reflect.Parameter;
109
import java.util.List;
@@ -120,7 +119,6 @@ protected Object[] buildArgs(Method method, Object exchange, List<McpSchema.Reso
120119
*/
121120
public static class McpResourceListChangedConsumerMethodException extends RuntimeException {
122121

123-
@Serial
124122
private static final long serialVersionUID = 1L;
125123

126124
/**

mcp-annotations/src/main/java/org/springaicommunity/mcp/method/changed/tool/AbstractMcpToolListChangedMethodCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
package org.springaicommunity.mcp.method.changed.tool;
66

7-
import java.io.Serial;
87
import java.lang.reflect.Method;
98
import java.lang.reflect.Parameter;
109
import java.util.List;
@@ -119,7 +118,6 @@ protected Object[] buildArgs(Method method, Object exchange, List<McpSchema.Tool
119118
*/
120119
public static class McpToolListChangedConsumerMethodException extends RuntimeException {
121120

122-
@Serial
123121
private static final long serialVersionUID = 1L;
124122

125123
/**

mcp-annotations/src/main/java/org/springaicommunity/mcp/method/complete/AbstractMcpCompleteMethodCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
package org.springaicommunity.mcp.method.complete;
66

7-
import java.io.Serial;
87
import java.lang.reflect.Method;
98
import java.lang.reflect.Parameter;
109
import java.util.ArrayList;
@@ -268,7 +267,6 @@ else if (String.class.isAssignableFrom(paramType)) {
268267
*/
269268
public static class McpCompleteMethodException extends RuntimeException {
270269

271-
@Serial
272270
private static final long serialVersionUID = 1L;
273271

274272
/**

mcp-annotations/src/main/java/org/springaicommunity/mcp/method/elicitation/AbstractMcpElicitationMethodCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
package org.springaicommunity.mcp.method.elicitation;
66

7-
import java.io.Serial;
87
import java.lang.reflect.Method;
98
import java.lang.reflect.Parameter;
109

@@ -147,7 +146,6 @@ protected Object[] buildArgs(Method method, Object exchange, ElicitRequest reque
147146
*/
148147
public static class McpElicitationMethodException extends RuntimeException {
149148

150-
@Serial
151149
private static final long serialVersionUID = 1L;
152150

153151
/**

mcp-annotations/src/main/java/org/springaicommunity/mcp/method/logging/AbstractMcpLoggingMethodCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
package org.springaicommunity.mcp.method.logging;
66

7-
import java.io.Serial;
87
import java.lang.reflect.Method;
98
import java.lang.reflect.Parameter;
109

@@ -149,7 +148,6 @@ protected Object[] buildArgs(Method method, Object exchange, LoggingMessageNotif
149148
*/
150149
public static class McpLoggingConsumerMethodException extends RuntimeException {
151150

152-
@Serial
153151
private static final long serialVersionUID = 1L;
154152

155153
/**

mcp-annotations/src/main/java/org/springaicommunity/mcp/method/progress/AbstractMcpProgressMethodCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
package org.springaicommunity.mcp.method.progress;
66

7-
import java.io.Serial;
87
import java.lang.reflect.Method;
98
import java.lang.reflect.Parameter;
109

@@ -148,7 +147,6 @@ protected Object[] buildArgs(Method method, Object exchange, ProgressNotificatio
148147
*/
149148
public static class McpProgressMethodException extends RuntimeException {
150149

151-
@Serial
152150
private static final long serialVersionUID = 1L;
153151

154152
/**

mcp-annotations/src/main/java/org/springaicommunity/mcp/method/sampling/AbstractMcpSamplingMethodCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
package org.springaicommunity.mcp.method.sampling;
66

7-
import java.io.Serial;
87
import java.lang.reflect.Method;
98
import java.lang.reflect.Parameter;
109

@@ -147,7 +146,6 @@ protected Object[] buildArgs(Method method, Object exchange, CreateMessageReques
147146
*/
148147
public static class McpSamplingMethodException extends RuntimeException {
149148

150-
@Serial
151149
private static final long serialVersionUID = 1L;
152150

153151
/**

0 commit comments

Comments
 (0)