Add missing @since tags to mark API added in 2.2
Change-Id: I458167739210214fa54c4b3d62fac5abc82f96f7 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Signed-off-by: Chris Aniszczyk <zx@twitter.com>
This commit is contained in:
parent
318f3d4643
commit
05a7113002
|
@ -67,6 +67,7 @@ public static CLIText get() {
|
||||||
* @param line
|
* @param line
|
||||||
* the line to format
|
* the line to format
|
||||||
* @return the formatted line
|
* @return the formatted line
|
||||||
|
* @since 2.2
|
||||||
*/
|
*/
|
||||||
public static String formatLine(String line) {
|
public static String formatLine(String line) {
|
||||||
return MessageFormat.format(get().lineFormat, line);
|
return MessageFormat.format(get().lineFormat, line);
|
||||||
|
|
|
@ -83,10 +83,18 @@ public abstract class TextBuiltin {
|
||||||
@Option(name = "--help", usage = "usage_displayThisHelpText", aliases = { "-h" })
|
@Option(name = "--help", usage = "usage_displayThisHelpText", aliases = { "-h" })
|
||||||
private boolean help;
|
private boolean help;
|
||||||
|
|
||||||
/** Writer to output to, typically this is standard output. */
|
/**
|
||||||
|
* Writer to output to, typically this is standard output.
|
||||||
|
*
|
||||||
|
* @since 2.2
|
||||||
|
*/
|
||||||
protected ThrowingPrintWriter outw;
|
protected ThrowingPrintWriter outw;
|
||||||
|
|
||||||
/** Stream to output to, typically this is standard output. */
|
/**
|
||||||
|
* Stream to output to, typically this is standard output.
|
||||||
|
*
|
||||||
|
* @since 2.2
|
||||||
|
*/
|
||||||
protected OutputStream outs;
|
protected OutputStream outs;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -450,6 +450,7 @@ public boolean isIntentToAdd() {
|
||||||
* Returns whether this entry is in the fully-merged stage (0).
|
* Returns whether this entry is in the fully-merged stage (0).
|
||||||
*
|
*
|
||||||
* @return true if this entry is merged
|
* @return true if this entry is merged
|
||||||
|
* @since 2.2
|
||||||
*/
|
*/
|
||||||
public boolean isMerged() {
|
public boolean isMerged() {
|
||||||
return getStage() == STAGE_0;
|
return getStage() == STAGE_0;
|
||||||
|
|
|
@ -45,7 +45,11 @@
|
||||||
|
|
||||||
import org.eclipse.jgit.events.RepositoryListener;
|
import org.eclipse.jgit.events.RepositoryListener;
|
||||||
|
|
||||||
/** Receives {@link BeforeDfsPackIndexLoadedEvent}s. */
|
/**
|
||||||
|
* Receives {@link BeforeDfsPackIndexLoadedEvent}s.
|
||||||
|
*
|
||||||
|
* @since 2.2
|
||||||
|
*/
|
||||||
public interface BeforeDfsPackIndexLoadedListener extends RepositoryListener {
|
public interface BeforeDfsPackIndexLoadedListener extends RepositoryListener {
|
||||||
/**
|
/**
|
||||||
* Invoked just before a pack index is loaded from the block cache.
|
* Invoked just before a pack index is loaded from the block cache.
|
||||||
|
|
|
@ -172,7 +172,10 @@ public DfsPackDescription getPackDescription() {
|
||||||
return packDesc;
|
return packDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return whether the pack index file is loaded and cached in memory. */
|
/**
|
||||||
|
* @return whether the pack index file is loaded and cached in memory.
|
||||||
|
* @since 2.2
|
||||||
|
*/
|
||||||
public boolean isIndexLoaded() {
|
public boolean isIndexLoaded() {
|
||||||
DfsBlockCache.Ref<PackIndex> idxref = index;
|
DfsBlockCache.Ref<PackIndex> idxref = index;
|
||||||
return idxref != null && idxref.get() != null;
|
return idxref != null && idxref.get() != null;
|
||||||
|
|
|
@ -67,6 +67,8 @@
|
||||||
public final class RawParseUtils {
|
public final class RawParseUtils {
|
||||||
/**
|
/**
|
||||||
* UTF-8 charset constant.
|
* UTF-8 charset constant.
|
||||||
|
*
|
||||||
|
* @since 2.2
|
||||||
*/
|
*/
|
||||||
public static final Charset UTF8_CHARSET = Charset.forName("UTF-8");
|
public static final Charset UTF8_CHARSET = Charset.forName("UTF-8");
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,8 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An alternative PrintWriter that doesn't catch exceptions.
|
* An alternative PrintWriter that doesn't catch exceptions.
|
||||||
|
*
|
||||||
|
* @since 2.2
|
||||||
*/
|
*/
|
||||||
public class ThrowingPrintWriter extends Writer {
|
public class ThrowingPrintWriter extends Writer {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue