Skip to content

Commit bd08932

Browse files
committed
8356633: Incorrect use of {@link} in jdk.jshell
Reviewed-by: rgiulietti, vyazici
1 parent d450e34 commit bd08932

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, 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
@@ -524,7 +524,7 @@ public enum Status {
524524

525525
/**
526526
* The snippet is inactive because it does not yet exist.
527-
* Used only in {@link SnippetEvent#previousStatus} for new
527+
* Used only in {@link SnippetEvent#previousStatus()} for new
528528
* snippets.
529529
* {@link jdk.jshell.JShell#status(jdk.jshell.Snippet) JShell.status(Snippet)}
530530
* will never return this {@code Status}.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2025, 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
@@ -150,7 +150,7 @@ public abstract class SourceCodeAnalysis {
150150
* They will not appear in queries for snippets --
151151
* for example, {@link JShell#snippets() }.
152152
* <p>
153-
* Restrictions on the input are as in {@link JShell#eval}.
153+
* Restrictions on the input are as in {@link JShell#eval(String)}.
154154
* <p>
155155
* Only preliminary compilation is performed, sufficient to build the
156156
* {@code Snippet}. Snippets known to be erroneous, are returned as

0 commit comments

Comments
 (0)