git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [JGIT PATCH] 1/2 : (reworked) Externalizable/Serializable Items

From
Nigel Magnay <nigel.magnay@gmail.com>
Date
Feb 20, 2009, 09:28 UTC
Message-ID
<320075ff0902200128o6b9772a4tcbd652e7654524e@mail.gmail.com>
In-Reply-To
<320075ff0902200127m3e516621m60a608bc891ab992@mail.gmail.com>
On Wed, Feb 18, 2009 at 4:30 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 9 quoted lines
>
> Nigel Magnay <nigel.magnay@gmail.com> wrote:
> > +public class ObjectId extends AnyObjectId implements Serializable {
>
> We should define our own serialVersionUID:
>
>  private static final long serialVersionUID = 1L;
>
> is good enough to make Java happy.

I'll re-roll. Actually both that and the whitespace damage I'm partially blaming on eclipse. Eclipse curiously removes the warning to declare serialVersionUID if you declare both writeObject and readObject - that's wrong!

Also the formatting came from .settings/org.eclipse.core.resources.prefs which has a tab policy of "Tabs only" which has overridden my environment setting of spaces-only.

I can modify it to spaces only - but the comment in 9268ced9d38 talks about spaces-per-tab..?

Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 9 of 10 in “1/2 : (reworked) Externalizable/Serializable Items”
  1. 1/2 : (reworked) Externalizable/Serializable ItemsNigel Magnay, Feb 16, 2009
  2. Johannes SchindelinFeb 16, 2009
  3. Shawn O. PearceFeb 18, 2009
  4. Robin RosenbergFeb 18, 2009
  5. Shawn O. PearceFeb 18, 2009
  6. Sverre RabbelierFeb 18, 2009
  7. Robin RosenbergFeb 18, 2009
  8. Shawn O. PearceFeb 18, 2009
  9. Nigel MagnayFeb 20, 2009
  10. Shawn O. PearceFeb 20, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.