This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[GUI] Patch: javax.swing.plaf.basic.BasicSplitPaneDivider
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 9 Jun 2004 11:42:47 +0200
- Subject: [GUI] Patch: javax.swing.plaf.basic.BasicSplitPaneDivider
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I just commited the attached patch to fix two warnings found by
jikes.
Michael
2004-06-09 Michael Koch <konqueror@gmx.de>
* javax/swing/plaf/basic/BasicSplitPaneDivider.java
(positionForMouseEvent): Removed redundant semicolon.
(continueDrag): Use method arguments.
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAxtuaWSOgCCdjSDsRAhACAJ9l4AggBA3JLY8iELOTIo/WOpX/cQCeL4kf
5QFFWPfvLxVtQHbgXSsXb4U=
=lXH6
-----END PGP SIGNATURE-----
Index: javax/swing/plaf/basic/BasicSplitPaneDivider.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/plaf/basic/BasicSplitPaneDivider.java,v
retrieving revision 1.1.26.1
diff -u -b -B -r1.1.26.1 BasicSplitPaneDivider.java
--- javax/swing/plaf/basic/BasicSplitPaneDivider.java 19 Apr 2004 19:46:05 -0000 1.1.26.1
+++ javax/swing/plaf/basic/BasicSplitPaneDivider.java 9 Jun 2004 09:39:07 -0000
@@ -623,7 +623,6 @@
protected int positionForMouseEvent(MouseEvent e)
{
return e.getX() + getX() - offset;
- ;
}
/**
@@ -650,7 +649,7 @@
protected void continueDrag(int newX, int newY)
{
if (isValid())
- dragDividerTo(adjust(x, y));
+ dragDividerTo(adjust(newX, newY));
}
/**