This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: indentation and typo fixlets


I'm checking this in.

This fixes an incorrect comment I noticed.  I also fixed some weird
indentation I noticed.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* java/awt/Container.java: Typo and indentation fixes.

Index: java/awt/Container.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/Container.java,v
retrieving revision 1.29
diff -u -r1.29 Container.java
--- java/awt/Container.java 8 Jan 2004 03:52:52 -0000 1.29
+++ java/awt/Container.java 16 Jan 2004 23:58:09 -0000
@@ -1,5 +1,5 @@
 /* Container.java -- parent container class in AWT
-   Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
+   Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation
 
 This file is part of GNU Classpath.
 
@@ -1516,7 +1516,7 @@
           (ACCESSIBLE_CHILD_PROPERTY, e.getChild(), null);
       }
     } // class AccessibleContainerHandler
-  } // class AccessibleAWTPanel
+  } // class AccessibleAWTContainer
 } // class Container
 
 /**
@@ -1562,26 +1562,26 @@
     Component candidate = mouseEventTarget;
 
     boolean candidate_is_container_with_children = 
-	    ((candidate != null)
-	     && (candidate instanceof Container)
-	     && (((Container)candidate).getComponentCount () > 0));
+      ((candidate != null)
+       && (candidate instanceof Container)
+       && (((Container)candidate).getComponentCount () > 0));
 
     boolean candidate_does_not_contain_point =
-	    ((candidate != null)
-	     && (! candidate.contains (x - candidate.getX (),
+      ((candidate != null)
+       && (! candidate.contains (x - candidate.getX (),
                                  y - candidate.getY ())));
 
     if (candidate == null
         || candidate_is_container_with_children
         || candidate_does_not_contain_point)
-  {
+      {
         // Try to reacquire.
         candidate = nativeContainer.findComponentAt (x, y);
-  }
+      }
 
     if (mouseEventTarget != null
         && mouseEventTarget != candidate)
-  {
+      {
         int nx = x - mouseEventTarget.getX ();
         int ny = y - mouseEventTarget.getY ();
         MouseEvent exited = new MouseEvent (mouseEventTarget, 
@@ -1594,15 +1594,15 @@
                                             me.getButton ());
         mouseEventTarget.dispatchEvent (exited); 
         mouseEventTarget = null;
-  }
+      }
 
     if (candidate != null)
-	    {
+      {
         // Possibly set new state.
         if (candidate.isLightweight() 
             && candidate != nativeContainer
             && candidate != mouseEventTarget)
-  {
+	  {
 			
             mouseEventTarget = candidate;
 			
@@ -1620,16 +1620,16 @@
                                                  me.getButton ());
             mouseEventTarget.dispatchEvent (entered);
           }
-	    }
+      }
   }
 
   boolean handleEvent (AWTEvent e)
   {
     if ((eventMask & e.getID ()) == 0)
-	    return false;
+      return false;
 
     if (e instanceof MouseEvent)
-  {
+      {
         MouseEvent me = (MouseEvent) e;
         acquireComponentForMouseEvent (me);
 
@@ -1640,11 +1640,11 @@
             mouseEventTarget.dispatchEvent (me);
             me.setSource (oldSource);
           }
-	    }
+      }
     else if (e instanceof KeyEvent && focus != null)
-  {
+      {
         focus.processKeyEvent ((KeyEvent) e);
-	    }
+      }
       
     return e.isConsumed();
   }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]