src/share/classes/javax/swing/LayoutFocusTraversalPolicy.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2000, 2008, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2000, 2014, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 45,54 ****
--- 45,55 ----
* @author David Mendenhall
*
* @see java.awt.ComponentOrientation
* @since 1.4
*/
+ @SuppressWarnings("serial") // Parts of superclass are not serializable across versions
public class LayoutFocusTraversalPolicy extends SortingFocusTraversalPolicy
implements Serializable
{
// Delegate most of our fitness test to Default so that we only have to
// code the algorithm once.
*** 263,272 ****
--- 264,274 ----
}
}
// Create our own subclass and change accept to public so that we can call
// accept.
+ @SuppressWarnings("serial") // JDK-implementation class
class SwingDefaultFocusTraversalPolicy
extends java.awt.DefaultFocusTraversalPolicy
{
public boolean accept(Component aComponent) {
return super.accept(aComponent);