8332014: since-checker - Fix @ since tags in jdk.jshell

Reviewed-by: jlahoda
This commit is contained in:
Nizar Benalla 2024-06-27 06:22:17 +00:00 committed by Jan Lahoda
parent 9d20b58f40
commit 0fc5b2711f
3 changed files with 6 additions and 2 deletions

View File

@ -249,8 +249,8 @@ public abstract class Snippet {
* A record declaration. * A record declaration.
* A {@code SubKind} of {@link Kind#TYPE_DECL}. * A {@code SubKind} of {@link Kind#TYPE_DECL}.
* @jls 8.10 Record Types * @jls 8.10 Record Types
* @since 14
* *
* @since 17
*/ */
RECORD_SUBKIND(Kind.TYPE_DECL), RECORD_SUBKIND(Kind.TYPE_DECL),

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -158,6 +158,8 @@ public abstract class SourceCodeAnalysis {
* @param input The input String to convert * @param input The input String to convert
* @return usually a singleton list of Snippet, but may be empty or multiple * @return usually a singleton list of Snippet, but may be empty or multiple
* @throws IllegalStateException if the {@code JShell} instance is closed. * @throws IllegalStateException if the {@code JShell} instance is closed.
*
* @since 10
*/ */
public abstract List<Snippet> sourceToSnippets(String input); public abstract List<Snippet> sourceToSnippets(String input);

View File

@ -250,6 +250,8 @@ public interface JavaShellToolBuilder {
* @throws Exception an unexpected fatal exception * @throws Exception an unexpected fatal exception
* @return the exit status with which the tool explicitly exited (if any), * @return the exit status with which the tool explicitly exited (if any),
* otherwise 0 for success or 1 for failure * otherwise 0 for success or 1 for failure
*
* @since 10
*/ */
default int start(String... arguments) throws Exception { default int start(String... arguments) throws Exception {
run(arguments); run(arguments);