changeset 9807:b603693ce9c2 jdk-9+120

8156963: Add @Deprecated annotation to HostServices.getWebContext method Reviewed-by: ckyang
author kcr
date Sat, 21 May 2016 07:06:57 -0700
parents 52988193a50e
children 5b2e9f575fce 838868f00d35
files modules/graphics/src/main/java/javafx/application/HostServices.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/javafx/application/HostServices.java	Fri May 20 21:23:45 2016 -0700
+++ b/modules/graphics/src/main/java/javafx/application/HostServices.java	Sat May 21 07:06:57 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2016, 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,11 @@
      *
      * @return handle of the enclosing DOM window of the web page containing
      * this application
+     *
+     * @deprecated This method is deprecated as of JDK 9 because the
+     * {@link java.applet.Applet Applet} API is deprecated.
      */
+    @Deprecated // FIXME: (since = "9")
     public final JSObject getWebContext() {
         return delegate.getWebContext();
     }