Skip to content

Commit 0fc5b27

Browse files
nizarbenallalahodaj
authored andcommittedJun 27, 2024
8332014: since-checker - Fix @ since tags in jdk.jshell
Reviewed-by: jlahoda
1 parent 9d20b58 commit 0fc5b27

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

‎src/jdk.jshell/share/classes/jdk/jshell/Snippet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ public enum SubKind {
249249
* A record declaration.
250250
* A {@code SubKind} of {@link Kind#TYPE_DECL}.
251251
* @jls 8.10 Record Types
252-
* @since 14
253252
*
253+
* @since 17
254254
*/
255255
RECORD_SUBKIND(Kind.TYPE_DECL),
256256

‎src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysis.java

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

‎src/jdk.jshell/share/classes/jdk/jshell/tool/JavaShellToolBuilder.java

+2
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ default JavaShellToolBuilder windowSize(int columns, int rows) {
250250
* @throws Exception an unexpected fatal exception
251251
* @return the exit status with which the tool explicitly exited (if any),
252252
* otherwise 0 for success or 1 for failure
253+
*
254+
* @since 10
253255
*/
254256
default int start(String... arguments) throws Exception {
255257
run(arguments);

0 commit comments

Comments
 (0)