You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by nd...@apache.org on 2008/11/18 15:41:16 UTC
svn commit: r718621 -
/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/GridBagLayout.java
Author: ndbeyer
Date: Tue Nov 18 06:41:16 2008
New Revision: 718621
URL: http://svn.apache.org/viewvc?rev=718621&view=rev
Log:
remove inappropriate assert statements
Modified:
harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/GridBagLayout.java
Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/GridBagLayout.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/GridBagLayout.java?rev=718621&r1=718620&r2=718621&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/GridBagLayout.java (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/GridBagLayout.java Tue Nov 18 06:41:16 2008
@@ -90,8 +90,6 @@
public void addLayoutComponent(Component comp, Object constraints) {
toolkit.lockAWT();
try {
- // awt.7F=AddLayoutComponent: attempt to add null component
- assert comp != null : Messages.getString("awt.7F"); //$NON-NLS-1$
GridBagConstraints cons;
if (constraints != null) {
if (!GridBagConstraints.class.isInstance(constraints)) {
@@ -125,8 +123,6 @@
public void removeLayoutComponent(Component comp) {
toolkit.lockAWT();
try {
- // awt.82=RemoveLayoutComponent: attempt to remove null component
- assert comp != null : Messages.getString("awt.82"); //$NON-NLS-1$
Container parent = comp.getParent();
if (parent != null) {
getParentInfo(parent).consTable.remove(comptable.get(comp));
@@ -154,10 +150,6 @@
public void setConstraints(Component comp, GridBagConstraints constraints) {
toolkit.lockAWT();
try {
- // awt.83=SetConstraints: attempt to get constraints of null component
- assert comp != null : Messages.getString("awt.83"); //$NON-NLS-1$
- // awt.84=SetConstraints: attempt to set null constraints
- assert constraints != null : Messages.getString("awt.84"); //$NON-NLS-1$
GridBagConstraints consClone = (GridBagConstraints) constraints.clone();
try {
// consClone.verify();
@@ -383,8 +375,6 @@
protected GridBagConstraints lookupConstraints(Component comp) {
toolkit.lockAWT();
try {
- // awt.89=LookupConstraints: attempt to get constraints of null component
- assert comp != null : Messages.getString("awt.89"); //$NON-NLS-1$
GridBagConstraints cons = comptable.get(comp);
if (cons == null) {
// if comp is not in the layout, return a copy of default constraints
@@ -435,10 +425,6 @@
protected void AdjustForGravity(GridBagConstraints constraints, Rectangle r) {
toolkit.lockAWT();
try {
- // awt.8A=AdjustForGravity: attempt to use null constraints
- assert constraints != null : Messages.getString("awt.8A"); //$NON-NLS-1$
- // awt.8B=AdjustForGravity: attempt to use null rectangle
- assert r != null : Messages.getString("awt.8B"); //$NON-NLS-1$
try {
// ((GridBagConstraints) constraints).verify();
} catch (IllegalArgumentException e) {