[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersisten
From: |
Mark Wielaard |
Subject: |
Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields |
Date: |
Sat, 17 Dec 2005 13:56:40 +0100 |
Hi,
On Wed, 2005-12-14 at 20:39 +0100, Guilhem Lavaux wrote:
> Mark, actually I don't see what benefit we could get of moving some
> Array.sort & copy to getSerialPersistentFields. So I have not done it
> for the moment.
No problem, I just hoped we could safe some duplicate code, but I didn't
actually check whether that could actually be done.
> +
> + if (fields == ObjectStreamClass.INVALID_FIELDS)
> + throw new InvalidClassException("serialPersistentFields in class " +
> osc.getName() + " is invalid");
> +
Better to use the 2 argument constructor
InvalidClassException(String classname, String message) here.
Also try to keep line under 80 chars.
Cheers,
Mark
signature.asc
Description: This is a digitally signed message part
- Re: [cp-patches] RFC: Patch for duplicate entries in serialPersistentFields, (continued)
- Re: [cp-patches] RFC: Patch for duplicate entries in serialPersistentFields, Mark Wielaard, 2005/12/11
- Re: [cp-patches] RFC: Patch for duplicate entries in serialPersistentFields, Guilhem Lavaux, 2005/12/11
- Re: [cp-patches] RFC: Patch for duplicate entries in serialPersistentFields, Mark Wielaard, 2005/12/11
- Re: [cp-patches] RFC: Patch for duplicate entries in serialPersistentFields, Guilhem Lavaux, 2005/12/11
- [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields, Stuart Ballard, 2005/12/11
- Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields, Archie Cobbs, 2005/12/11
- Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields, Guilhem Lavaux, 2005/12/11
- Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields, Stuart Ballard, 2005/12/12
- Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields, Mark Wielaard, 2005/12/12
- Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields, Guilhem Lavaux, 2005/12/14
- Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields,
Mark Wielaard <=
- Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields, Robert Schuster, 2005/12/12