]> source.dussan.org Git - jgit.git/commitdiff
Add missing @since tags to mark API added in 2.0 73/5873/2
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 7 May 2012 21:45:24 +0000 (23:45 +0200)
committerChris Aniszczyk <zx@twitter.com>
Fri, 11 May 2012 01:17:24 +0000 (18:17 -0700)
Change-Id: I0a86ce0e393dfde9bb27f0b29e036e76c856396e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
25 files changed:
org.eclipse.jgit/src/org/eclipse/jgit/api/ApplyCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ApplyResult.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java
org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseResult.java
org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/StashDropCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/TagCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/InvalidPathException.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/InMemoryRepository.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ReflogWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/AbstractAdvertiseRefsHook.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/AdvertiseRefsHook.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/RequestNotYetReadException.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/SideBandOutputStream.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java
org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java
org.eclipse.jgit/src/org/eclipse/jgit/util/StringUtils.java
org.eclipse.jgit/src/org/eclipse/jgit/util/io/EolCanonicalizingInputStream.java

index 86b8d85ff47a5839cded22736be4a753ae845b62..8658b0709b5acf14f80f4caaa35a9cb2b4be28f5 100644 (file)
@@ -68,6 +68,7 @@ import org.eclipse.jgit.util.IO;
  *
  * @see <a href="http://www.kernel.org/pub/software/scm/git/docs/git-apply.html"
  *      >Git documentation about apply</a>
+ * @since 2.0
  */
 public class ApplyCommand extends GitCommand<ApplyResult> {
 
index 0c38f1b48690ad76a0ca6b2a48cb49653de0e19a..558ef0f8a8a0ad0eedebbb37838c9a2ffe97ee28 100644 (file)
@@ -48,6 +48,8 @@ import java.util.List;
 
 /**
  * Encapsulates the result of a {@link ApplyCommand}
+ *
+ * @since 2.0
  */
 public class ApplyResult {
 
index e03805b7279559d692df83508e8f6ebf7924bf34..e6d56c8e6f38b46e72752503166bee0978ca4416 100644 (file)
@@ -253,6 +253,7 @@ public class CheckoutCommand extends GitCommand<Ref> {
         * @param all
         *            true to checkout all paths, false otherwise
         * @return {@code this}
+        * @since 2.0
         */
        public CheckoutCommand setAllPaths(boolean all) {
                checkoutAllPaths = all;
index f52358633fa50f49e97e9d97633549d25ce48570..8a86af87633105833e22f0439717ab221ad2355d 100644 (file)
@@ -576,6 +576,7 @@ public class Git {
         * Returns a command object used to create a stashed commit
         *
         * @return a {@link StashCreateCommand}
+        * @since 2.0
         */
        public StashCreateCommand stashCreate() {
                return new StashCreateCommand(repo);
@@ -585,6 +586,7 @@ public class Git {
         * Returns a command object used to apply a stashed commit
         *
         * @return a {@link StashApplyCommand}
+        * @since 2.0
         */
        public StashApplyCommand stashApply() {
                return new StashApplyCommand(repo);
@@ -594,6 +596,7 @@ public class Git {
         * Returns a command object used to drop a stashed commit
         *
         * @return a {@link StashDropCommand}
+        * @since 2.0
         */
        public StashDropCommand stashDrop() {
                return new StashDropCommand(repo);
@@ -608,6 +611,7 @@ public class Git {
         *
         * @return a {@link ApplyCommand} used to collect all optional parameters
         *         and to finally execute the {@code apply} command
+        * @since 2.0
         */
        public ApplyCommand apply() {
                return new ApplyCommand(repo);
index 4739f161721c0bda8db1e383251443608cb1d4cf..a09f8c28afe001f66111f969cec6bc331ad4dc74 100644 (file)
@@ -113,6 +113,8 @@ public class RebaseResult {
 
                /**
                 * Continue with nothing left to commit (possibly want skip).
+                *
+                * @since 2.0
                 */
                NOTHING_TO_COMMIT {
                        @Override
index 104c22f2aed30af6c176eecee8433daac8b97df4..5ba61622ea6f983cfd5416108cc47354e395b529 100644 (file)
@@ -85,6 +85,7 @@ import org.eclipse.jgit.treewalk.filter.SkipWorkTreeFilter;
  *
  * @see <a href="http://www.kernel.org/pub/software/scm/git/docs/git-stash.html"
  *      >Git documentation about Stash</a>
+ * @since 2.0
  */
 public class StashCreateCommand extends GitCommand<RevCommit> {
 
index 85bb987ff34c5eea1491b1c63ff4f544004141ba..e718417d1e875d99eede6a91208b07421416710f 100644 (file)
@@ -69,6 +69,7 @@ import org.eclipse.jgit.util.FileUtils;
  *
  * @see <a href="http://www.kernel.org/pub/software/scm/git/docs/git-stash.html"
  *      >Git documentation about Stash</a>
+ * @since 2.0
  */
 public class StashDropCommand extends GitCommand<ObjectId> {
 
index 30d548cd6424fb88995d492b8b6e5d3a67204637..c867b53e8d493bb8237e1e382c5a125d885cfa97 100644 (file)
@@ -105,6 +105,7 @@ public class TagCommand extends GitCommand<Ref> {
         *             exception can be retrieved by calling
         *             {@link Exception#getCause()}. Expect only
         *             {@code IOException's} to be wrapped.
+        * @since 2.0
         */
        public Ref call() throws JGitInternalException,
                        ConcurrentRefUpdateException, InvalidTagNameException, NoHeadException {
index e7d0213b2509f68e03dbac0dfe5555bda54b8e63..ceb4cb0c0a5a17ee0940ac2869cd084e02ad6e69 100644 (file)
@@ -278,6 +278,7 @@ public class DiffFormatter {
         * Get the prefix applied in front of old file paths.
         *
         * @return the prefix
+        * @since 2.0
         */
        public String getOldPrefix() {
                return this.oldPrefix;
@@ -298,8 +299,9 @@ public class DiffFormatter {
 
        /**
         * Get the prefix applied in front of new file paths.
-        *
+        * 
         * @return the prefix
+        * @since 2.0
         */
        public String getNewPrefix() {
                return this.newPrefix;
index 155519f28b07d965de9c7716a678e345f489af5d..698636c8cf9464e61bf1bba0fa065fff9a0bf0b6 100644 (file)
@@ -49,6 +49,8 @@ import org.eclipse.jgit.internal.JGitText;
 
 /**
  * Thrown when JGit detects and refuses to use an invalid path
+ *
+ * @since 2.0
  */
 public class InvalidPathException extends IllegalArgumentException {
 
index f363fc242cb8e268bb2a31bb98347452470a7118..fb62acedf21607b06c8bcd93f073f6a6841153e0 100644 (file)
@@ -34,7 +34,8 @@ public class InMemoryRepository extends DfsRepository {
         * Initialize a new in-memory repository.
         *
         * @param repoDesc
-        *             description of the repository.
+        *            description of the repository.
+        * @since 2.0
         */
        public InMemoryRepository(DfsRepositoryDescription repoDesc) {
                super(new DfsRepositoryBuilder<DfsRepositoryBuilder, InMemoryRepository>() {
index 684e97d13f24c071cf6dfcf1b0c37bd00d9c866b..d7788cd8f59c5d156e2617b00768503b6b947e69 100644 (file)
@@ -73,6 +73,8 @@ import org.eclipse.jgit.util.FileUtils;
 
 /**
  * Utility for writing reflog entries
+ *
+ * @since 2.0
  */
 public class ReflogWriter {
 
index d17e074d6c1e9f157444ad1a1914f013e4f4f73f..a13a4ff93f1a01119210150fab8dee3df39ef14b 100644 (file)
@@ -53,6 +53,8 @@ import org.eclipse.jgit.revwalk.RevWalk;
 /**
  * Implementation of {@link AdvertiseRefsHook} that advertises the same refs for
  * upload-pack and receive-pack.
+ *
+ * @since 2.0
  */
 public abstract class AbstractAdvertiseRefsHook implements AdvertiseRefsHook {
        public void advertiseRefs(UploadPack uploadPack)
index f61c18643f9b1491998a6de9e40de071430334ce..0f76f6752afbc73b6fdd3e00f52c078a912be426 100644 (file)
 
 package org.eclipse.jgit.transport;
 
-/** Hook to allow callers to take over advertising refs to the client. */
+/**
+ * Hook to allow callers to take over advertising refs to the client.
+ *
+ * @since 2.0
+ */
 public interface AdvertiseRefsHook {
        /**
         * A simple hook that advertises the default refs.
index 347fd93305385aa2894cb2172afde3de255edecb..582b75a252ca25f65c79b64b5664833e150e5ac7 100644 (file)
@@ -120,34 +120,64 @@ public abstract class BasePackFetchConnection extends BasePackConnection
         */
        protected static final int MIN_CLIENT_BUFFER = 2 * 32 * 46 + 8;
 
-       /** Include tags if we are also including the referenced objects. */
+       /**
+        * Include tags if we are also including the referenced objects.
+        * @since 2.0
+        */
        public static final String OPTION_INCLUDE_TAG = "include-tag";
 
-       /** Mutli-ACK support for improved negotiation. */
+       /**
+        * Mutli-ACK support for improved negotiation.
+        * @since 2.0
+        */
        public static final String OPTION_MULTI_ACK = "multi_ack";
 
-       /** Mutli-ACK detailed support for improved negotiation. */
+       /**
+        * Mutli-ACK detailed support for improved negotiation.
+        * @since 2.0
+        */
        public static final String OPTION_MULTI_ACK_DETAILED = "multi_ack_detailed";
 
-       /** The client supports packs with deltas but not their bases. */
+       /**
+        * The client supports packs with deltas but not their bases.
+        * @since 2.0
+        */
        public static final String OPTION_THIN_PACK = "thin-pack";
 
-       /** The client supports using the side-band for progress messages. */
+       /**
+        * The client supports using the side-band for progress messages.
+        * @since 2.0
+        */
        public static final String OPTION_SIDE_BAND = "side-band";
 
-       /** The client supports using the 64K side-band for progress messages. */
+       /**
+        * The client supports using the 64K side-band for progress messages.
+        * @since 2.0
+        */
        public static final String OPTION_SIDE_BAND_64K = "side-band-64k";
 
-       /** The client supports packs with OFS deltas. */
+       /**
+        * The client supports packs with OFS deltas.
+        * @since 2.0
+        */
        public static final String OPTION_OFS_DELTA = "ofs-delta";
 
-       /** The client supports shallow fetches. */
+       /**
+        * The client supports shallow fetches.
+        * @since 2.0
+        */
        public static final String OPTION_SHALLOW = "shallow";
 
-       /** The client does not want progress messages and will ignore them. */
+       /**
+        * The client does not want progress messages and will ignore them.
+        * @since 2.0
+        */
        public static final String OPTION_NO_PROGRESS = "no-progress";
 
-       /** The client supports receiving a pack before it has sent "done". */
+       /**
+        * The client supports receiving a pack before it has sent "done".
+        * @since 2.0
+        */
        public static final String OPTION_NO_DONE = "no-done";
 
        static enum MultiAck {
@@ -695,6 +725,8 @@ public abstract class BasePackFetchConnection extends BasePackConnection
         * Notification event delivered just before the pack is received from the
         * network. This event can be used by RPC such as {@link TransportHttp} to
         * disable its request magic and ensure the pack stream is read correctly.
+        *
+        * @since 2.0
         */
        protected void onReceivePack() {
                // By default do nothing for TCP based protocols.
index 8bf030bb8d3dd82e29c83ff88927dd1a6a466142..119b266161352effadffc186daf88bd61d9b896e 100644 (file)
@@ -83,16 +83,28 @@ import org.eclipse.jgit.transport.RemoteRefUpdate.Status;
  */
 public abstract class BasePackPushConnection extends BasePackConnection implements
                PushConnection {
-       /** The client expects a status report after the server processes the pack. */
+       /**
+        * The client expects a status report after the server processes the pack.
+        * @since 2.0
+        */
        public static final String CAPABILITY_REPORT_STATUS = "report-status";
 
-       /** The server supports deleting refs. */
+       /**
+        * The server supports deleting refs.
+        * @since 2.0
+        */
        public static final String CAPABILITY_DELETE_REFS = "delete-refs";
 
-       /** The server supports packs with OFS deltas. */
+       /**
+        * The server supports packs with OFS deltas.
+        * @since 2.0
+        */
        public static final String CAPABILITY_OFS_DELTA = "ofs-delta";
 
-       /** The client supports using the 64K side-band for progress messages. */
+       /**
+        * The client supports using the 64K side-band for progress messages.
+        * @since 2.0
+        */
        public static final String CAPABILITY_SIDE_BAND_64K = "side-band-64k";
 
        private final boolean thinPack;
index 0a0de5b610516f741dfbb6f3a8b2817865e4f56a..44cf82916dadad77ea5120e16adb9ca727f41f39 100644 (file)
@@ -129,8 +129,9 @@ public class ReceiveCommand {
         *            commands to filter.
         * @param want
         *            desired status to filter by.
-        * @return a copy of the command list containing only those commands with the
-        *         desired status.
+        * @return a copy of the command list containing only those commands with
+        *         the desired status.
+        * @since 2.0
         */
        public static List<ReceiveCommand> filter(List<ReceiveCommand> commands,
                        final Result want) {
@@ -195,6 +196,7 @@ public class ReceiveCommand {
         *            name of the ref being affected.
         * @param type
         *            type of the command.
+        * @since 2.0
         */
        public ReceiveCommand(final ObjectId oldId, final ObjectId newId,
                        final String name, final Type type) {
@@ -269,6 +271,7 @@ public class ReceiveCommand {
         *
         * @param rp
         *            receive-pack session.
+        * @since 2.0
         */
        public void execute(final ReceivePack rp) {
                try {
index 4de6fa30e77f00bbdb341df2e6b7accfc9e2343d..8b45174c01e28db992680513dc5a2708f3660650 100644 (file)
 
 package org.eclipse.jgit.transport;
 
-/** Indicates that a client request has not yet been read from the wire. */
+/**
+ * Indicates that a client request has not yet been read from the wire.
+ *
+ * @since 2.0
+ */
 public class RequestNotYetReadException extends IllegalStateException {
        private static final long serialVersionUID = 1L;
 
index bf85068f2731ce364a2ac3d4685ac7ffc406c2af..86f6446827a30c9d9361d22c1329bf91e73c1939 100644 (file)
@@ -45,7 +45,11 @@ package org.eclipse.jgit.transport;
 
 import java.io.IOException;
 
-/** Indicates a transport service may not continue execution. */
+/**
+ * Indicates a transport service may not continue execution.
+ *
+ * @since 2.0
+ */
 public class ServiceMayNotContinueException extends IOException {
        private static final long serialVersionUID = 1L;
 
index 8fe78b680cf2ccf79def890143e669907703c8fe..770fcbed82060333ceb9da5022728ac57b9a29f0 100644 (file)
@@ -54,6 +54,8 @@ import org.eclipse.jgit.internal.JGitText;
  * <p>
  * This stream is buffered at packet sizes, so the caller doesn't need to wrap
  * it in yet another buffered stream.
+ *
+ * @since 2.0
  */
 public class SideBandOutputStream extends OutputStream {
        /** Channel used for pack data. */
index ca5fec2a9a661fa51af87a68a84bd9d7699094a0..752f20bf3874512654be57b7bfe37f66076d666c 100644 (file)
@@ -651,6 +651,7 @@ public abstract class AbstractTreeIterator {
         * JGit internal API for use by {@link DirCacheCheckout}
         *
         * @return start of name component part within {@link #getEntryPathBuffer()}
+        * @since 2.0
         */
        public int getNameOffset() {
                return pathOffset;
index 604363847588c96426af5aea71253ae224ce931b..11215c8c10c1b4a45e1b94000d1f45016d3c09db 100644 (file)
@@ -79,6 +79,7 @@ public class FileUtils {
 
        /**
         * Option not to throw exceptions when a deletion finally doesn't succeed.
+        * @since 2.0
         */
        public static final int IGNORE_ERRORS = 8;
 
index 910d9820150fe51d8bc61cf2470e4d505865bf35..4abe4a875080a80bf8f463f9f0e99b3d965b5780 100644 (file)
@@ -339,6 +339,7 @@ public class IO {
         * @param s
         *            the string to read
         * @return the string divided into lines
+        * @since 2.0
         */
        public static List<String> readLines(final String s) {
                List<String> l = new ArrayList<String>();
index f423f98e2755eb60e09b1c042654f2420f7f17b0..efb9abd8785fa7cfc0a49213aa97e69e07170a37 100644 (file)
@@ -132,6 +132,7 @@ public final class StringUtils {
         *            second string to compare.
         * @return negative, zero or positive if a sorts before, is equal to, or
         *         sorts after b.
+        * @since 2.0
         */
        public static int compareIgnoreCase(String a, String b) {
                for (int i = 0; i < a.length() && i < b.length(); i++) {
@@ -154,6 +155,7 @@ public final class StringUtils {
         *            second string to compare.
         * @return negative, zero or positive if a sorts before, is equal to, or
         *         sorts after b.
+        * @since 2.0
         */
        public static int compareWithCase(String a, String b) {
                for (int i = 0; i < a.length() && i < b.length(); i++) {
index 954c64676d55723fb918684db45e4575428cecaa..592183658be776c7b80d6d505cd960683898ee5d 100644 (file)
@@ -72,11 +72,12 @@ public class EolCanonicalizingInputStream extends InputStream {
 
        /**
         * Creates a new InputStream, wrapping the specified stream
-        * 
+        *
         * @param in
         *            raw input stream
         * @param detectBinary
         *            whether binaries should be detected
+        * @since 2.0
         */
        public EolCanonicalizingInputStream(InputStream in, boolean detectBinary) {
                this.in = in;