8339972: Make a few fields in SortingFocusTraversalPolicy static

Reviewed-by: azvegint, aivanov
This commit is contained in:
Andrey Turbanov 2024-09-20 12:43:57 +00:00
parent 3c22d83c0f
commit fe80618bf3

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2024, 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
@ -87,8 +87,8 @@ public class SortingFocusTraversalPolicy
private static final SwingContainerOrderFocusTraversalPolicy
fitnessTestPolicy = new SwingContainerOrderFocusTraversalPolicy();
private final int FORWARD_TRAVERSAL = 0;
private final int BACKWARD_TRAVERSAL = 1;
private static final int FORWARD_TRAVERSAL = 0;
private static final int BACKWARD_TRAVERSAL = 1;
/*
* When true (by default), the legacy merge-sort algo is used to sort an FTP cycle.