From 607ddaa0e6a8d609aa7e4667abf40ac4c4692961 Mon Sep 17 00:00:00 2001 From: Darragh Clarke Date: Tue, 4 Jul 2023 12:19:44 +0000 Subject: [PATCH] 8310997: missing @since tags in jdk.httpserver Reviewed-by: dfuchs --- .../share/classes/com/sun/net/httpserver/Authenticator.java | 4 +++- .../classes/com/sun/net/httpserver/BasicAuthenticator.java | 4 +++- .../share/classes/com/sun/net/httpserver/HttpPrincipal.java | 4 +++- .../com/sun/net/httpserver/spi/HttpServerProvider.java | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/jdk.httpserver/share/classes/com/sun/net/httpserver/Authenticator.java b/src/jdk.httpserver/share/classes/com/sun/net/httpserver/Authenticator.java index 64130fd861f..ddef30f0c5c 100644 --- a/src/jdk.httpserver/share/classes/com/sun/net/httpserver/Authenticator.java +++ b/src/jdk.httpserver/share/classes/com/sun/net/httpserver/Authenticator.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -32,6 +32,8 @@ package com.sun.net.httpserver; * of the authentication information provided in all incoming requests. * Note. This implies that any caching of credentials or other authentication * information must be done outside of this class. + * + * @since 1.6 */ public abstract class Authenticator { diff --git a/src/jdk.httpserver/share/classes/com/sun/net/httpserver/BasicAuthenticator.java b/src/jdk.httpserver/share/classes/com/sun/net/httpserver/BasicAuthenticator.java index ae0ba50f682..a240fa725d4 100644 --- a/src/jdk.httpserver/share/classes/com/sun/net/httpserver/BasicAuthenticator.java +++ b/src/jdk.httpserver/share/classes/com/sun/net/httpserver/BasicAuthenticator.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -37,6 +37,8 @@ import static java.nio.charset.StandardCharsets.UTF_8; * authentication. It is an abstract class and must be extended * to provide an implementation of {@link #checkCredentials(String,String)} * which is called to verify each incoming request. + * + * @since 1.6 */ public abstract class BasicAuthenticator extends Authenticator { diff --git a/src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpPrincipal.java b/src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpPrincipal.java index c393ce424a4..6e1efd8060e 100644 --- a/src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpPrincipal.java +++ b/src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpPrincipal.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,6 +29,8 @@ import java.security.Principal; /** * Represents a user authenticated by HTTP Basic or Digest * authentication. + * + * @since 1.6 */ public class HttpPrincipal implements Principal { private String username, realm; diff --git a/src/jdk.httpserver/share/classes/com/sun/net/httpserver/spi/HttpServerProvider.java b/src/jdk.httpserver/share/classes/com/sun/net/httpserver/spi/HttpServerProvider.java index 5c37d76791f..87477cffa92 100644 --- a/src/jdk.httpserver/share/classes/com/sun/net/httpserver/spi/HttpServerProvider.java +++ b/src/jdk.httpserver/share/classes/com/sun/net/httpserver/spi/HttpServerProvider.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -42,6 +42,8 @@ import java.util.ServiceLoader; * Sub-classes of HttpServerProvider provide an implementation of * {@link HttpServer} and associated classes. Applications do not normally use * this class. See {@link #provider()} for how providers are found and loaded. + * + * @since 1.6 */ public abstract class HttpServerProvider {