Skip to content

Commit

Permalink
Fixed various Javadoc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jwgmeligmeyling committed Apr 21, 2016
1 parent c686e65 commit 5748001
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 21 deletions.
2 changes: 0 additions & 2 deletions src/main/java/nl/tudelft/ewi/gitolite/ManagedConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ public class ManagedConfig {

/**
* Commit and push changes to the remote.
* @throws InterruptedException If the thread was interrupted.
* @throws IOException If an I/O error occurred.
*/
@SneakyThrows
protected void applyChanges() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/nl/tudelft/ewi/gitolite/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public interface Config extends Writable {

/**
* Remove an identifier
* @param identifier
* @param identifier The identifier to use
*/
void deleteIdentifierUses(Identifiable identifier);

Expand Down
16 changes: 10 additions & 6 deletions src/main/java/nl/tudelft/ewi/gitolite/git/GitManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public interface GitManager {
* not be removed.
*
* @throws GitException If an exception occurred while using the Git API.
* @throws InterruptedException If the thread was interrupted.
*/
void remove(String filePattern) throws IOException, GitException, InterruptedException;

Expand All @@ -48,16 +49,19 @@ public interface GitManager {
*
* @param uri The URI to clone the git repository from. This cannot be NULL.
*
* @throws ServiceUnavailable If the git server is unreachable or otherwise unavailable.
* @throws IOException If an I/O error occurs.
*
* @throws GitException If an exception occurred while using the Git API.
* @throws InterruptedException If the thread was interrupted.
*/
void clone(String uri) throws IOException, InterruptedException, GitException;

/**
* This method initializes a new git repository in the working directory.
*
* @throws IOException If an I/O error occurs.
* @throws GitException If an exception occurred while using the Git API.
* @throws InterruptedException If the thread was interrupted.
*/
void init() throws IOException, InterruptedException, GitException;

Expand All @@ -66,17 +70,17 @@ public interface GitManager {
*
* @return True if new commits were found and pulled, false otherwise.
*
* @throws ServiceUnavailable If the git server is unreachable or otherwise unavailable.
*
* @throws IOException If an I/O error occurs.
* @throws InterruptedException If the thread was interrupted.
* @throws GitException If an exception occurred while using the Git API.
*/
boolean pull() throws IOException, InterruptedException, GitException;

/**
* Commits all changes to the working directory to the local git repository.
*
* @throws InterruptedException If the thread was interrupted.
* @throws IOException If the add or commit operations failed.
*
* @throws GitException If an exception occurred while using the Git API.
*/
void commitChanges() throws InterruptedException, IOException, GitException;
Expand All @@ -85,8 +89,8 @@ public interface GitManager {
* This method pushes the locally committed changes to the remote git
* repository.
*
* @throws ServiceUnavailable If the git server is unreachable or otherwise unavailable.
*
* @throws IOException If the add or commit operations failed.
* @throws InterruptedException If the thread was interrupted.
* @throws GitException If an exception occurred while using the Git API.
*/
void push() throws IOException, InterruptedException, GitException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.io.File;

/**
* {@@link GitManager} implementation that returns a {@link NativeGitManager}.
* {@link GitManager} implementation that returns a {@link NativeGitManager}.
*
* @author Jan-Willem Gmelig Meyling
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public interface KeyStore {
* Put a key into the key store
* @param key to perist.
* @return the persisted key.
* @throws IOException if an I/O error occurred while writing the key.
*/
PersistedKey put(Key key) throws IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public class ConfigKey implements Rule {
/**
* Create a new {@code ConfigKey}.
*
* @param key
* @param value
* @param key Key name.
* @param value Value under key.
*/
public ConfigKey(String key, Object value) {
this.key = key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public class RepositoryRule implements Rule {
* new RepositoryRuleBlock("foo", new RepositoryRule(RW_PLUS, members);
* </pre>}
*
* @param pattern {@see identifiables}
* @param rules {@see rules}
* @param pattern Pattern to use.
* @param rules Rules to use.
*/
public RepositoryRule(String pattern, AccessRule... rules) {
this(Collections.singletonList(new Identifier(pattern)), Arrays.asList(rules), Collections.emptyList());
Expand All @@ -64,9 +64,9 @@ public RepositoryRule(String pattern, AccessRule... rules) {
/**
* Constructor for {@code RepositoryRuleBlock}.
*
* @param patterns {@see identifiables}
* @param rules {@see rules}
* @param configKeys {@see configKeys}
* @param patterns Patterns to use.
* @param rules Rules to use.
* @param configKeys Keys to use.
*/
public RepositoryRule(final Collection<? extends Identifiable> patterns,
final Collection<? extends AccessRule> rules,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public interface Writable {
/**
* Write to a {@code OutputStream}.
* @param out {@code OutputStream} to write to.
* @throws IOException If an IO error occurs.
*/
default void write(OutputStream out) throws IOException {
write(new OutputStreamWriter(out));
Expand Down
14 changes: 10 additions & 4 deletions src/main/java/nl/tudelft/ewi/gitolite/repositories/Repository.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,25 @@ public interface Repository {
/**
* Delete the repository.
*
* @throws IOException
* @throws IOException If an I/O error occurs
* @throws UnsupportedOperationException If the operation is not supported
* in the {@link Repository} implementation.
*/
void delete() throws IOException, UnsupportedOperationException;

/**
* @return the folder where the bare repository resists.
*
* @throws UnsupportedOperationException If the operation is not supported
* in the {@link Repository} implementation.
*/
Path getPath() throws UnsupportedOperationException;

/**
* @return the size for the repository
* @throws IOException
* @throws UnsupportedOperationException
* @return the size for the repository.
* @throws IOException If an IO error occurs.
* @throws UnsupportedOperationException If the operation is not supported
* in the {@link Repository} implementation.
*/
FileSize getSize() throws IOException, UnsupportedOperationException;

Expand Down

0 comments on commit 5748001

Please sign in to comment.