Update copyright headers to 2025 and clean up code

- Add copyright headers to files missing them
- Add blank lines after copyright headers for consistency
- Remove unused imports in test files
- Remove unnecessary keep-alive warning logs in WebFlux and WebMvc transport providers

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
This commit is contained in:
Christian Tzolov 2025-08-01 16:06:02 +01:00
commit 3e4d5dedaf
55 changed files with 188 additions and 33 deletions

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.client;
import java.time.Duration;

View file

@ -1,6 +1,7 @@
/*
* Copyright 2024-2024 the original author or authors.
*/
package io.modelcontextprotocol.client;
import java.time.Duration;

View file

@ -1,6 +1,7 @@
/*
* Copyright 2024 - 2025 the original author or authors.
*/
package io.modelcontextprotocol.client.transport;
import java.io.IOException;

View file

@ -1,6 +1,7 @@
/*
* Copyright 2024 - 2024 the original author or authors.
*/
package io.modelcontextprotocol.client.transport;
import java.net.http.HttpResponse;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.server;
import io.modelcontextprotocol.spec.McpError;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.server;
import java.util.Map;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.server;
import io.modelcontextprotocol.spec.McpSchema;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.server;
import reactor.core.publisher.Mono;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.server;
import reactor.core.publisher.Mono;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.server;
import io.modelcontextprotocol.spec.McpSchema;

View file

@ -4,7 +4,6 @@
package io.modelcontextprotocol.server;
import io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification;
import io.modelcontextprotocol.spec.McpSchema;
import io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification;
import io.modelcontextprotocol.util.Assert;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.server;
import java.util.Collections;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.server;
/**

View file

@ -1,6 +1,7 @@
/*
* Copyright 2024 - 2024 the original author or authors.
*/
package io.modelcontextprotocol.server.transport;
import java.io.BufferedReader;

View file

@ -1,6 +1,7 @@
/*
* Copyright 2024-2024 the original author or authors.
*/
package io.modelcontextprotocol.spec;
import java.util.Map;

View file

@ -1,8 +1,11 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.spec;
import io.modelcontextprotocol.server.McpNotificationHandler;
import io.modelcontextprotocol.server.McpRequestHandler;
import reactor.core.publisher.Mono;
import java.time.Duration;
import java.util.Map;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.spec;
import org.reactivestreams.Publisher;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.spec;
import org.reactivestreams.Publisher;

View file

@ -1,3 +1,7 @@
/*
* Copyright 2024-2025 the original author or authors.
*/
package io.modelcontextprotocol.spec;
/**

View file

@ -1,6 +1,7 @@
/*
* Copyright 2024-2024 the original author or authors.
*/
package io.modelcontextprotocol.spec;
import java.util.Map;

Some files were not shown because too many files have changed in this diff Show more