[jdom-commits] CVS Update: jdom/src/java/org/jdom

Jason Hunter jhunter at servlets.kattare.com
Fri Dec 10 16:12:04 PST 2004


****************************************
Date:   Fri Dec 10, 2004 @16:12:04 PST
Author: 

Update of /home/cvs/jdom/src/java/org/jdom
In directory servlets:/tmp/cvs-serv26979

Modified Files:
Element.java
Log Message:
Changed signature of

public Parent setContent(int index, Collection collection)

to

public Element setContent(int index, Collection collection)

Because all the other setContent() and addContent() methods
return Element. The Parent was a bug oversight.

I'm not real pleased with changing this in 1.0.1 but I think it's
the right thing. It's a little used method and the return value
is even more little used. Plus people who used the return value
would work around the Parent return value by casting the return
value to Element which will continue to work after this change.
Convenient! The downside is that people who use the method may
need to recompile to work with the new signature since Java won't
see them as identical method signatures.

-jh-

===================================================================
File: no file Element.java		Status: Needs Checkout

   Working revision:	1.153	Sat Dec 11 00:12:04 2004
   Repository revision:	1.153	/home/cvs/jdom/src/java/org/jdom/Element.java,v

   Existing Tags:
	jdom_1_0                 	(revision: 1.152)
	jdom_1_0_rc1             	(revision: 1.152)
	BEFORE_UNCHECKED         	(revision: 1.148)
	jdom_1_0_b10             	(revision: 1.145)
	jdom_1_0_b10_rc1         	(revision: 1.143)
	after_rolf               	(revision: 1.140)
	before_rolf              	(revision: 1.139)
	jdom_1_0_b9              	(revision: 1.130)
	jdom_1_0_b8              	(revision: 1.115)
	jdom_prefilter           	(revision: 1.102)
	jdom_1_0_b7              	(revision: 1.96)
	jdom_1_0_b6              	(revision: 1.52)
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)



More information about the jdom-commits mailing list