* @param line
* the line to format
* @return the formatted line
+ * @since 2.2
*/
public static String formatLine(String line) {
return MessageFormat.format(get().lineFormat, line);
@Option(name = "--help", usage = "usage_displayThisHelpText", aliases = { "-h" })
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;
- /** Stream to output to, typically this is standard output. */
+ /**
+ * Stream to output to, typically this is standard output.
+ *
+ * @since 2.2
+ */
protected OutputStream outs;
/**
* Returns whether this entry is in the fully-merged stage (0).
*
* @return true if this entry is merged
+ * @since 2.2
*/
public boolean isMerged() {
return getStage() == STAGE_0;
import org.eclipse.jgit.events.RepositoryListener;
-/** Receives {@link BeforeDfsPackIndexLoadedEvent}s. */
+/**
+ * Receives {@link BeforeDfsPackIndexLoadedEvent}s.
+ *
+ * @since 2.2
+ */
public interface BeforeDfsPackIndexLoadedListener extends RepositoryListener {
/**
* Invoked just before a pack index is loaded from the block cache.
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() {
DfsBlockCache.Ref<PackIndex> idxref = index;
return idxref != null && idxref.get() != null;
public final class RawParseUtils {
/**
* UTF-8 charset constant.
+ *
+ * @since 2.2
*/
public static final Charset UTF8_CHARSET = Charset.forName("UTF-8");
/**
* An alternative PrintWriter that doesn't catch exceptions.
+ *
+ * @since 2.2
*/
public class ThrowingPrintWriter extends Writer {