diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-06-24 15:19:05 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-06-25 17:46:39 -0700 |
commit | f6c26dabd221d6820d0968a8bec556cf1bcc036f (patch) | |
tree | e15d32cdd4b12858ddb3c1f69cbfba1b06da6bb1 | |
parent | 530924471320f5e2a53e90c48821d9f09e91e071 (diff) | |
download | jgit-f6c26dabd221d6820d0968a8bec556cf1bcc036f.tar.gz jgit-f6c26dabd221d6820d0968a8bec556cf1bcc036f.zip |
Cleanup Repository.create()
This method doesn't need to be synchronized, as its only a proxy to
create(boolean), which is the real worker. While we are touching
it try to improve the Javadoc and whitespace nearby.
Change-Id: Ibdddec6e518ca6d7439cfad90fedfcdc2d6b7a2e
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java index d482c21fba..375a2fc699 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java @@ -327,15 +327,16 @@ public class Repository { } } - /** - * Create a new Git repository initializing the necessary files and - * directories. Repository with working tree is created using this method. + * Create a new Git repository. + * <p> + * Repository with working tree is created using this method. This method is + * the same as {@code create(false)}. * * @throws IOException * @see #create(boolean) */ - public synchronized void create() throws IOException { + public void create() throws IOException { create(false); } |