--- a/jdk/src/share/classes/java/awt/Choice.java Mon Jul 07 16:32:38 2008 +0400
+++ b/jdk/src/share/classes/java/awt/Choice.java Mon Jul 07 17:24:21 2008 +0400
@@ -1,5 +1,5 @@
/*
- * Copyright 1995-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1995-2008 Sun Microsystems, Inc. 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
@@ -207,9 +207,7 @@
}
// This could change the preferred size of the Component.
- if (valid) {
- invalidate();
- }
+ invalidateIfValid();
}
/**
@@ -269,9 +267,7 @@
}
// This could change the preferred size of the Component.
- if (valid) {
- invalidate();
- }
+ invalidateIfValid();
}
/**
@@ -299,9 +295,7 @@
}
// This could change the preferred size of the Component.
- if (valid) {
- invalidate();
- }
+ invalidateIfValid();
}
/**
@@ -323,9 +317,7 @@
}
// This could change the preferred size of the Component.
- if (valid) {
- invalidate();
- }
+ invalidateIfValid();
}
/**
@@ -367,9 +359,7 @@
}
// This could change the preferred size of the Component.
- if (valid) {
- invalidate();
- }
+ invalidateIfValid();
}
/**