From bd08932d5b9d1a363d8229ea72df4c6dbfd4571d Mon Sep 17 00:00:00 2001 From: Nizar Benalla Date: Thu, 5 Jun 2025 10:31:23 +0000 Subject: [PATCH] 8356633: Incorrect use of {@link} in jdk.jshell Reviewed-by: rgiulietti, vyazici --- src/jdk.jshell/share/classes/jdk/jshell/Snippet.java | 4 ++-- .../share/classes/jdk/jshell/SourceCodeAnalysis.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jdk.jshell/share/classes/jdk/jshell/Snippet.java b/src/jdk.jshell/share/classes/jdk/jshell/Snippet.java index 8e5971bedf8..cfbd4fe4ef5 100644 --- a/src/jdk.jshell/share/classes/jdk/jshell/Snippet.java +++ b/src/jdk.jshell/share/classes/jdk/jshell/Snippet.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2025, 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 @@ -524,7 +524,7 @@ public abstract class Snippet { /** * The snippet is inactive because it does not yet exist. - * Used only in {@link SnippetEvent#previousStatus} for new + * Used only in {@link SnippetEvent#previousStatus()} for new * snippets. * {@link jdk.jshell.JShell#status(jdk.jshell.Snippet) JShell.status(Snippet)} * will never return this {@code Status}. diff --git a/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysis.java b/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysis.java index 0375a2ead65..10da664cd03 100644 --- a/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysis.java +++ b/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysis.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2025, 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 @@ -150,7 +150,7 @@ public abstract class SourceCodeAnalysis { * They will not appear in queries for snippets -- * for example, {@link JShell#snippets() }. *

- * Restrictions on the input are as in {@link JShell#eval}. + * Restrictions on the input are as in {@link JShell#eval(String)}. *

* Only preliminary compilation is performed, sufficient to build the * {@code Snippet}. Snippets known to be erroneous, are returned as