--- a/jdk/src/share/classes/java/awt/ContainerOrderFocusTraversalPolicy.java Fri Apr 12 14:09:03 2013 +0400
+++ b/jdk/src/share/classes/java/awt/ContainerOrderFocusTraversalPolicy.java Fri Apr 12 14:33:38 2013 +0400
@@ -208,7 +208,9 @@
* aComponent is null
*/
public Component getComponentAfter(Container aContainer, Component aComponent) {
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### Searching in " + aContainer + " for component after " + aComponent);
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### Searching in " + aContainer + " for component after " + aComponent);
+ }
if (aContainer == null || aComponent == null) {
throw new IllegalArgumentException("aContainer and aComponent cannot be null");
@@ -247,7 +249,9 @@
// Null result means that we overstepped the limit of the FTP's cycle.
// In that case we must quit the cycle, otherwise return the component found.
if (afterComp != null) {
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### FTP returned " + afterComp);
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### FTP returned " + afterComp);
+ }
return afterComp;
}
aComponent = provider;
@@ -255,7 +259,9 @@
List<Component> cycle = getFocusTraversalCycle(aContainer);
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### Cycle is " + cycle + ", component is " + aComponent);
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### Cycle is " + cycle + ", component is " + aComponent);
+ }
int index = getComponentIndex(cycle, aComponent);
@@ -336,7 +342,9 @@
// Null result means that we overstepped the limit of the FTP's cycle.
// In that case we must quit the cycle, otherwise return the component found.
if (beforeComp != null) {
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### FTP returned " + beforeComp);
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### FTP returned " + beforeComp);
+ }
return beforeComp;
}
aComponent = provider;
@@ -349,7 +357,9 @@
List<Component> cycle = getFocusTraversalCycle(aContainer);
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### Cycle is " + cycle + ", component is " + aComponent);
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### Cycle is " + cycle + ", component is " + aComponent);
+ }
int index = getComponentIndex(cycle, aComponent);
@@ -401,7 +411,9 @@
public Component getFirstComponent(Container aContainer) {
List<Component> cycle;
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### Getting first component in " + aContainer);
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### Getting first component in " + aContainer);
+ }
if (aContainer == null) {
throw new IllegalArgumentException("aContainer cannot be null");
@@ -420,10 +432,14 @@
}
if (cycle.size() == 0) {
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### Cycle is empty");
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### Cycle is empty");
+ }
return null;
}
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### Cycle is " + cycle);
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### Cycle is " + cycle);
+ }
for (Component comp : cycle) {
if (accept(comp)) {
@@ -451,7 +467,9 @@
*/
public Component getLastComponent(Container aContainer) {
List<Component> cycle;
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### Getting last component in " + aContainer);
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### Getting last component in " + aContainer);
+ }
if (aContainer == null) {
throw new IllegalArgumentException("aContainer cannot be null");
@@ -470,10 +488,14 @@
}
if (cycle.size() == 0) {
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### Cycle is empty");
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### Cycle is empty");
+ }
return null;
}
- if (log.isLoggable(PlatformLogger.FINE)) log.fine("### Cycle is " + cycle);
+ if (log.isLoggable(PlatformLogger.FINE)) {
+ log.fine("### Cycle is " + cycle);
+ }
for (int i= cycle.size() - 1; i >= 0; i--) {
Component comp = cycle.get(i);