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

jgit, MutableInteger vs AtomicInteger

From
Vasyl Vavrychuk <vvavrychuk@gmail.com>
Date
Nov 25, 2008, 13:54 UTC
Message-ID
<loom.20081125T134459-650@post.gmane.org>
Hi,

I've just started browsing jgit sources and an obvious question arise. I didn't found such question in mail list and decided to ask the community.

I don't see reason behind creating own mutable integer container because we 
have java.util.concurrent.atomic.AtomicInteger with methods
    public final int get()
    public final void set(int i)
And that is what we want.
Regards,
  V. V.
Next: Shawn O. Pearce
Message 1 of 2 in “jgit, MutableInteger vs AtomicInteger”
  1. Vasyl VavrychukNov 25, 2008
  2. Shawn O. PearceNov 25, 2008

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.