--- old/src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java 2018-04-01 22:04:27.000000000 -0700 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java 2018-04-01 22:04:27.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2018, 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 @@ -730,14 +730,6 @@ return Toolkit.getDefaultToolkit().checkImage(img, w, h, o); } - public Dimension preferredSize() { - return getPreferredSize(); - } - - public Dimension minimumSize() { - return getMinimumSize(); - } - public Insets getInsets() { return new Insets(0, 0, 0, 0); } @@ -748,15 +740,6 @@ public void endValidate() { } - - /** - * DEPRECATED: Replaced by getInsets(). - */ - - public Insets insets() { - return getInsets(); - } - // Returns true if we are inside begin/endLayout and // are waiting for native painting public boolean isPaintPending() {