Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8270246: Deprecate for removal implementation methods in Scene
Reviewed-by: arapte, aghaisas
  • Loading branch information
kevinrushforth committed Jul 16, 2021
1 parent 386f6d7 commit 8501416
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions modules/javafx.graphics/src/main/java/javafx/scene/Scene.java
Expand Up @@ -842,6 +842,11 @@ void initPeer() {
PerformanceTracker.logEvent("Scene.initPeer finished");
}

// FIXME: make this method package-scope in the next release
/**
* @deprecated This method was exposed erroneously and will be removed in a future version.
*/
@Deprecated(forRemoval = true, since = "17")
public void disposePeer() {
if (peer == null) {
// This is fine, the window is either not shown yet and there is no
Expand Down Expand Up @@ -2135,6 +2140,12 @@ private void focusIneligible(Node node) {
traverse(node, Direction.NEXT);
}

// FIXME: make this method package-scope in the next release
/**
* @deprecated This method was exposed erroneously and will be removed in a future version.
* @param e undocumented method parameter
*/
@Deprecated(forRemoval = true, since = "17")
public void processKeyEvent(KeyEvent e) {
if (dndGesture != null) {
if (!dndGesture.processKey(e)) {
Expand Down Expand Up @@ -2221,6 +2232,12 @@ private void processInputMethodEvent(InputMethodEvent e) {
}
}

// FIXME: make this method package-scope in the next release
/**
* @deprecated This method was exposed erroneously and will be removed in a future version.
* @param enable undocumented method parameter
*/
@Deprecated(forRemoval = true, since = "17")
public void enableInputMethodEvents(boolean enable) {
if (peer != null) {
peer.enableInputMethodEvents(enable);
Expand Down

1 comment on commit 8501416

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.