Browse Source

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>
tags/v0.9.1
Shawn O. Pearce 14 years ago
parent
commit
f6c26dabd2
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

+ 5
- 4
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java View File

@@ -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);
}


Loading…
Cancel
Save