From 867ccd598228b53a285c79b15db8a4539940312f Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Sat, 17 Nov 2018 12:10:08 -0700 Subject: [PATCH] Annotate isJavaWebStartSupported as no external use Should only be used by web page. --- core/src/main/java/hudson/slaves/JNLPLauncher.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/hudson/slaves/JNLPLauncher.java b/core/src/main/java/hudson/slaves/JNLPLauncher.java index faa5d8dee663d..808fdef1311c1 100644 --- a/core/src/main/java/hudson/slaves/JNLPLauncher.java +++ b/core/src/main/java/hudson/slaves/JNLPLauncher.java @@ -232,6 +232,7 @@ public boolean filterType(@Nonnull Class contextClass, @Nonnull Descriptor de * @return {@code true} if Java Web Start button should be displayed. * @since FIXME */ + @Restricted(NoExternalUse.class) // Jelly use public boolean isJavaWebStartSupported() { return System.getProperty("java.version", "1.8").startsWith("1.8"); }