fix some javadoc warnings

This commit is contained in:
Sebastian Sdorra
2013-05-30 09:27:32 +02:00
parent 3a454fcedb
commit f9bc3aafe9
24 changed files with 52 additions and 127 deletions

View File

@@ -108,17 +108,13 @@ public class BasicContextProvider implements SCMContextProvider
//~--- methods -------------------------------------------------------------- //~--- methods --------------------------------------------------------------
/** /**
* {@see java.io.Closeable#close()} * {@inheritDoc}
*
*
* @throws IOException
*/ */
@Override @Override
public void close() throws IOException {} public void close() throws IOException {}
/** /**
* {@see SCMContextProvider#init()} * {@inheritDoc}
*
*/ */
@Override @Override
public void init() {} public void init() {}
@@ -126,10 +122,7 @@ public class BasicContextProvider implements SCMContextProvider
//~--- get methods ---------------------------------------------------------- //~--- get methods ----------------------------------------------------------
/** /**
* {@see SCMContextProvider#getBaseDirectory()} * {@inheritDoc}
*
*
* @return {@see SCMContextProvider#getBaseDirectory()}
*/ */
@Override @Override
public File getBaseDirectory() public File getBaseDirectory()
@@ -139,8 +132,6 @@ public class BasicContextProvider implements SCMContextProvider
/** /**
* {@inheritDoc} * {@inheritDoc}
*
* @return
*/ */
@Override @Override
public Stage getStage() public Stage getStage()
@@ -150,9 +141,6 @@ public class BasicContextProvider implements SCMContextProvider
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @return
*/ */
@Override @Override
public Throwable getStartupError() public Throwable getStartupError()

View File

@@ -40,23 +40,23 @@ import java.util.Collection;
import java.util.Comparator; import java.util.Comparator;
/** /**
* Basic decorator for manager classes * Basic decorator for manager classes.
* *
* @author Sebastian Sdorra * @author Sebastian Sdorra
* @since 1.23 * @since 1.23
* *
* @param <T> * @param <T> model type
* @param <E> * @param <E> exception type
*/ */
public class ManagerDecorator<T extends ModelObject, E extends Exception> public class ManagerDecorator<T extends ModelObject, E extends Exception>
implements Manager<T, E> implements Manager<T, E>
{ {
/** /**
* Constructs ... * Constructs a new ManagerDecorator.
* *
* *
* @param decorated * @param decorated manager implementation
*/ */
public ManagerDecorator(Manager<T, E> decorated) public ManagerDecorator(Manager<T, E> decorated)
{ {
@@ -67,9 +67,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @throws IOException
*/ */
@Override @Override
public void close() throws IOException public void close() throws IOException
@@ -79,12 +76,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @param object
*
* @throws E
* @throws IOException
*/ */
@Override @Override
public void create(T object) throws E, IOException public void create(T object) throws E, IOException
@@ -94,12 +85,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @param object
*
* @throws E
* @throws IOException
*/ */
@Override @Override
public void delete(T object) throws E, IOException public void delete(T object) throws E, IOException
@@ -109,9 +94,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @param context
*/ */
@Override @Override
public void init(SCMContextProvider context) public void init(SCMContextProvider context)
@@ -121,12 +103,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @param object
*
* @throws E
* @throws IOException
*/ */
@Override @Override
public void modify(T object) throws E, IOException public void modify(T object) throws E, IOException
@@ -136,12 +112,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @param object
*
* @throws E
* @throws IOException
*/ */
@Override @Override
public void refresh(T object) throws E, IOException public void refresh(T object) throws E, IOException
@@ -153,11 +123,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @param id
*
* @return
*/ */
@Override @Override
public T get(String id) public T get(String id)
@@ -167,9 +132,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @return
*/ */
@Override @Override
public Collection<T> getAll() public Collection<T> getAll()
@@ -179,11 +141,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @param comparator
*
* @return
*/ */
@Override @Override
public Collection<T> getAll(Comparator<T> comparator) public Collection<T> getAll(Comparator<T> comparator)
@@ -193,12 +150,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @param start
* @param limit
*
* @return
*/ */
@Override @Override
public Collection<T> getAll(int start, int limit) public Collection<T> getAll(int start, int limit)
@@ -208,13 +159,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @param comparator
* @param start
* @param limit
*
* @return
*/ */
@Override @Override
public Collection<T> getAll(Comparator<T> comparator, int start, int limit) public Collection<T> getAll(Comparator<T> comparator, int start, int limit)
@@ -224,9 +168,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
/** /**
* {@inheritDoc} * {@inheritDoc}
*
*
* @return
*/ */
@Override @Override
public Long getLastModified() public Long getLastModified()
@@ -236,6 +177,6 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception>
//~--- fields --------------------------------------------------------------- //~--- fields ---------------------------------------------------------------
/** Field description */ /** manager implementation */
private Manager<T, E> decorated; private Manager<T, E> decorated;
} }

View File

@@ -261,12 +261,12 @@ public class ServletContainerDetector
//~--- methods -------------------------------------------------------------- //~--- methods --------------------------------------------------------------
/** /**
* Method description * Returns true if the given class exists in the system classpath.
* *
* *
* @param clazz * @param clazz class name to search in classpath
* *
* @return * @return true if class exists in system classpath
*/ */
private boolean detect(String clazz) private boolean detect(String clazz)
{ {

View File

@@ -35,7 +35,7 @@ package sonia.scm;
/** /**
* The constants in this class represent the current state of the running * The constants in this class represent the current state of the running
* SCM_Manager instance. The stage can be queried by calling * SCM_Manager instance. The stage can be queried by calling
* {@link SCMContextProvider#getProjectStage()}. * {@link SCMContextProvider#getStage()}.
* *
* @author Sebastian Sdorra * @author Sebastian Sdorra
* @since 1.12 * @since 1.12

View File

@@ -226,11 +226,10 @@ public class ScmConfiguration
/** /**
* Returns the date format for the user interface. This format is a * Returns the date format for the user interface. This format is a
* JavaScript date format, see * JavaScript date format, from the library moment.js.
* {@link http://jacwright.com/projects/javascript/date_format}.
* *
* * @see <a href="http://momentjs.com/docs/#/parsing/" target="_blank">http://momentjs.com/docs/#/parsing/</a>
* @return JavaScript date format * @return moment.js date format
*/ */
public String getDateFormat() public String getDateFormat()
{ {
@@ -486,10 +485,10 @@ public class ScmConfiguration
} }
/** /**
* Method description * Sets the date format for the ui.
* *
* *
* @param dateFormat * @param dateFormat date format for ui
*/ */
public void setDateFormat(String dateFormat) public void setDateFormat(String dateFormat)
{ {
@@ -752,7 +751,8 @@ public class ScmConfiguration
private boolean disableGroupingGrid = false; private boolean disableGroupingGrid = false;
/** /**
* JavaScript date format, see http://jacwright.com/projects/javascript/date_format * JavaScript date format from moment.js
* @see <a href="http://momentjs.com/docs/#/parsing/" target="_blank">http://momentjs.com/docs/#/parsing/</a>
*/ */
private String dateFormat = DEFAULT_DATEFORMAT; private String dateFormat = DEFAULT_DATEFORMAT;

View File

@@ -36,6 +36,7 @@ package sonia.scm.event;
//~--- non-JDK imports -------------------------------------------------------- //~--- non-JDK imports --------------------------------------------------------
import com.google.common.eventbus.EventBus; import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@@ -51,7 +52,7 @@ import java.util.ServiceLoader;
* themselves. The ScmEventBus searches its implementation with the * themselves. The ScmEventBus searches its implementation with the
* {@link ServiceLoader}. * {@link ServiceLoader}.
* *
* @see {@link EventBus} * @see EventBus
* @author Sebastian Sdorra * @author Sebastian Sdorra
* @since 1.23 * @since 1.23
* *

View File

@@ -55,9 +55,9 @@ import sonia.scm.EagerSingleton;
* {@link EagerSingleton} scope for your object. E.g.: * {@link EagerSingleton} scope for your object. E.g.:
* *
* <pre><code> * <pre><code>
* @Extension * {@code @}Extension
* @Subscriber * {@code @}Subscriber
* @EagerSingleton * {@code @}EagerSingleton
* public class MyListener { * public class MyListener {
* *
* @Subscribe * @Subscribe

View File

@@ -71,11 +71,9 @@ public class GZipFilterConfig
/** /**
* Enables or disables response buffering. Default buffering is enabled. * Enables or disables response buffering. Default buffering is enabled.
* *
* @param bufferResponse true to enabled response buffering.
* *
* @param bufferRequest true to enabled response buffering.
* @deprecated use {@link #setBufferResponse(boolean)} instead. * @deprecated use {@link #setBufferResponse(boolean)} instead.
*
* @param bufferResponse
*/ */
@Deprecated @Deprecated
public void setBufferRequest(boolean bufferResponse) public void setBufferRequest(boolean bufferResponse)
@@ -86,10 +84,7 @@ public class GZipFilterConfig
/** /**
* Enables or disables response buffering. Default buffering is enabled. * Enables or disables response buffering. Default buffering is enabled.
* *
* * @param bufferResponse true to enabled response buffering.
* @param bufferRequest true to enabled response buffering.
*
* @param bufferResponse
*/ */
public void setBufferResponse(boolean bufferResponse) public void setBufferResponse(boolean bufferResponse)
{ {

View File

@@ -34,7 +34,7 @@ package sonia.scm.group;
/** /**
* The GroupNotFoundException is thrown e.g. from the * The GroupNotFoundException is thrown e.g. from the
* {@link GroupManager#modify(Group)} if the group does not exists. * modify method of the {@link GroupManager}, if the group does not exists.
* *
* @author Sebastian Sdorra * @author Sebastian Sdorra
* *

View File

@@ -48,7 +48,7 @@ import java.io.ObjectOutputStream;
* *
* @author Sebastian Sdorra * @author Sebastian Sdorra
* @since 1.29 * @since 1.29
* @see http://javatechniques.com/blog/faster-deep-copies-of-java-objects * @see <a href="http://javatechniques.com/blog/faster-deep-copies-of-java-objects" target="_blank">http://javatechniques.com/blog/faster-deep-copies-of-java-objects</a>
*/ */
public final class DeepCopy public final class DeepCopy
{ {

View File

@@ -41,7 +41,7 @@ import java.io.InputStream;
* *
* @author Sebastian Sdorra * @author Sebastian Sdorra
* @since 1.29 * @since 1.29
* @see http://javatechniques.com/blog/faster-deep-copies-of-java-objects * @see <a href="http://javatechniques.com/blog/faster-deep-copies-of-java-objects" target="_blank">http://javatechniques.com/blog/faster-deep-copies-of-java-objects</a>
*/ */
public final class FastByteArrayInputStream extends InputStream public final class FastByteArrayInputStream extends InputStream
{ {

View File

@@ -43,7 +43,7 @@ import java.io.OutputStream;
* *
* @author Sebastian Sdorra * @author Sebastian Sdorra
* @since 1.29 * @since 1.29
* @see http://javatechniques.com/blog/faster-deep-copies-of-java-objects * @see <a href="http://javatechniques.com/blog/faster-deep-copies-of-java-objects" target="_blank">http://javatechniques.com/blog/faster-deep-copies-of-java-objects</a>
*/ */
public final class FastByteArrayOutputStream extends OutputStream public final class FastByteArrayOutputStream extends OutputStream
{ {

View File

@@ -114,7 +114,7 @@ public class ChildFirstURLClassLoader extends URLClassLoader
* </ol> * </ol>
* *
* If the class was found using the above steps, and the {@code resolve} flag * If the class was found using the above steps, and the {@code resolve} flag
* is true, this method will then invoke the {@link resolveClass(Class)} * is true, this method will then invoke the {@link #resolveClass(Class)}
* method on the resulting Class object. Subclasses of ClassLoader are * method on the resulting Class object. Subclasses of ClassLoader are
* encouraged to override {@link ClassLoader#findClass(String)}, rather than * encouraged to override {@link ClassLoader#findClass(String)}, rather than
* this method. * this method.

View File

@@ -151,7 +151,7 @@ public final class PermissionUtil
* @param pt * @param pt
* *
* @return * @return
* @deprecated use {@link #hasPermission(Repository,PermissionType)} instead * @deprecated use {@link #hasPermission(ScmConfiguration, Repository, PermissionType)} instead
*/ */
@Deprecated @Deprecated
public static boolean hasPermission(Repository repository, public static boolean hasPermission(Repository repository,

View File

@@ -216,7 +216,6 @@ public class PreProcessorUtil
* *
* *
* @param repository * @param repository
* @param changeset
* @param result * @param result
*/ */
public void prepareForReturn(Repository repository, BrowserResult result) public void prepareForReturn(Repository repository, BrowserResult result)

View File

@@ -62,7 +62,7 @@ public interface RepositoryHookSupport
/** /**
* Fires a post receive hook event. This methods calls the * Fires a post receive hook event. This methods calls the
* {@link PostReceiveRepositoryHook#onPostReceive(Repository, List)} * {@link PostReceiveRepositoryHook#onEvent(RepositoryHookEvent)}
* of each registered {@link PostReceiveRepositoryHook}. * of each registered {@link PostReceiveRepositoryHook}.
* *
* @param repository that has changed * @param repository that has changed
@@ -72,7 +72,7 @@ public interface RepositoryHookSupport
/** /**
* Fires a post receive hook event. This methods calls the * Fires a post receive hook event. This methods calls the
* {@link PostReceiveRepositoryHook#onPostReceive(Repository, List)} * {@link PostReceiveRepositoryHook#onEvent(RepositoryHookEvent)}
* of each registered {@link PostReceiveRepositoryHook}. * of each registered {@link PostReceiveRepositoryHook}.
* *
* *

View File

@@ -56,10 +56,7 @@ public abstract class AbstractPushOrPullResponse
/** /**
* Constructs a new AbstractPushOrPullResponse. * Constructs a new AbstractPushOrPullResponse.
* *
* * @param changesetCount count of pushed/pulled changesets
* @param pushedChangesetCount count of pushed/pulled changesets
*
* @param changesetCount
*/ */
public AbstractPushOrPullResponse(long changesetCount) public AbstractPushOrPullResponse(long changesetCount)
{ {

View File

@@ -222,7 +222,7 @@ public final class BrowseCommandBuilder
/** /**
* Disabling the last commit means that every call to * Disabling the last commit means that every call to
* {@link FileObject#getDescription()} and * {@link FileObject#getDescription()} and
* {@link FileObject#getLastModified()) will return {@code null}, but this * {@link FileObject#getLastModified()} will return {@code null}, but this
* will also reduce the execution time. * will also reduce the execution time.
* *
* *

View File

@@ -33,11 +33,11 @@ package sonia.scm.repository.api;
//~--- non-JDK imports -------------------------------------------------------- //~--- non-JDK imports --------------------------------------------------------
import java.io.IOException;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject; import org.apache.shiro.subject.Subject;
import sonia.scm.cache.CacheManager; import sonia.scm.cache.CacheManager;
import sonia.scm.repository.Changeset;
import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.ChangesetPagingResult;
import sonia.scm.repository.PermissionType; import sonia.scm.repository.PermissionType;
import sonia.scm.repository.PreProcessorUtil; import sonia.scm.repository.PreProcessorUtil;
@@ -47,6 +47,10 @@ import sonia.scm.repository.spi.IncomingCommand;
import sonia.scm.repository.spi.IncomingCommandRequest; import sonia.scm.repository.spi.IncomingCommandRequest;
import sonia.scm.security.RepositoryPermission; import sonia.scm.security.RepositoryPermission;
//~--- JDK imports ------------------------------------------------------------
import java.io.IOException;
/** /**
* The incoming command shows new {@link Changeset}s found in a different * The incoming command shows new {@link Changeset}s found in a different
* repository location. * repository location.
@@ -62,6 +66,8 @@ public final class IncomingCommandBuilder
* only be called from the {@link RepositoryService}. * only be called from the {@link RepositoryService}.
* *
* @param cacheManager cache manager * @param cacheManager cache manager
*
* @param cacheManger
* @param command implementation of the {@link IncomingCommand} * @param command implementation of the {@link IncomingCommand}
* @param repository repository to query * @param repository repository to query
* @param preProcessorUtil pre processor util * @param preProcessorUtil pre processor util
@@ -82,9 +88,13 @@ public final class IncomingCommandBuilder
* @param remoteRepository remote repository * @param remoteRepository remote repository
* *
* @return incoming changesets * @return incoming changesets
*
* @throws IOException
* @throws RepositoryException
*/ */
public ChangesetPagingResult getIncomingChangesets( public ChangesetPagingResult getIncomingChangesets(
Repository remoteRepository) throws IOException, RepositoryException Repository remoteRepository)
throws IOException, RepositoryException
{ {
Subject subject = SecurityUtils.getSubject(); Subject subject = SecurityUtils.getSubject();

View File

@@ -130,7 +130,6 @@ public final class RepositoryServiceFactory
* *
* @param cacheManager cache manager * @param cacheManager cache manager
* @param repositoryManager manager for repositories * @param repositoryManager manager for repositories
* @param securityContextProvider provider for the current security context
* @param resolvers a set of {@link RepositoryServiceResolver} * @param resolvers a set of {@link RepositoryServiceResolver}
* @param preProcessorUtil helper object for pre processor handling * @param preProcessorUtil helper object for pre processor handling
* *

View File

@@ -94,9 +94,6 @@ public abstract class RemoteCommandRequest
/** /**
* Method description * Method description
* *
*
* @param remoteRepository
*
* @param remoteRepository * @param remoteRepository
*/ */
public void setRemoteRepository(Repository remoteRepository) public void setRemoteRepository(Repository remoteRepository)

View File

@@ -120,7 +120,6 @@ public class SHA1HashBuilder extends MessageDigestHashBuilder
* @param salt * @param salt
* @param iterations * @param iterations
* @param appendSalt * @param appendSalt
* @param enableLable
* @param enableLabel * @param enableLabel
*/ */
public SHA1HashBuilder(String value, byte[] salt, int iterations, public SHA1HashBuilder(String value, byte[] salt, int iterations,

View File

@@ -34,7 +34,7 @@ package sonia.scm.user;
/** /**
* The UserNotFoundException is thrown e.g. from the * The UserNotFoundException is thrown e.g. from the
* {@link UserManager#modify(User)} if the user does not exists. * modify method of the {@link UserManager}, if the user does not exists.
* *
* @author Sebastian Sdorra * @author Sebastian Sdorra
* @since 1.28 * @since 1.28

View File

@@ -68,7 +68,6 @@ public abstract class RegexPermissionFilter extends PermissionFilter
* *
* *
* @param configuration * @param configuration
* @param securityContextProvider
* @param repositoryManager * @param repositoryManager
*/ */
public RegexPermissionFilter(ScmConfiguration configuration, public RegexPermissionFilter(ScmConfiguration configuration,