Add missing @since tags

Change-Id: Id21e626201363dd3d0358bd709765e7fd07a0cbf
This commit is contained in:
Matthias Sohn 2021-12-04 17:47:48 +01:00
parent d8f5b5c691
commit 8924b14d3a
7 changed files with 67 additions and 0 deletions

View File

@ -1,5 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<component id="org.eclipse.jgit.junit" version="2">
<resource path="src/org/eclipse/jgit/junit/MockSystemReader.java" type="org.eclipse.jgit.junit.MockSystemReader">
<filter id="1141899266">
<message_arguments>
<message_argument value="5.1"/>
<message_argument value="5.5"/>
<message_argument value="setSystemGitConfig(FileBasedConfig)"/>
</message_arguments>
</filter>
<filter id="1142947843">
<message_arguments>
<message_argument value="5.1.9"/>
<message_argument value="setSystemGitConfig(FileBasedConfig)"/>
</message_arguments>
</filter>
<filter id="1142947843">
<message_arguments>
<message_argument value="5.1.9"/>
<message_argument value="setUserGitConfig(FileBasedConfig)"/>
</message_arguments>
</filter>
<filter id="1143996420">
<message_arguments>
<message_argument value="getJGitConfig()"/>
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/junit/Repeat.java" type="org.eclipse.jgit.junit.Repeat">
<filter id="1092616195">
<message_arguments>
@ -8,4 +34,34 @@
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/junit/RepeatRule.java" type="org.eclipse.jgit.junit.RepeatRule$RepeatedTestException">
<filter id="1142947843">
<message_arguments>
<message_argument value="5.1.9"/>
<message_argument value="RepeatedTestException(String)"/>
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/junit/RepositoryTestCase.java" type="org.eclipse.jgit.junit.RepositoryTestCase">
<filter id="338792546">
<message_arguments>
<message_argument value="org.eclipse.jgit.junit.RepositoryTestCase"/>
<message_argument value="fsTick(File)"/>
</message_arguments>
</filter>
<filter id="1142947843">
<message_arguments>
<message_argument value="5.1.9"/>
<message_argument value="fsTick(File)"/>
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/junit/time/TimeUtil.java" type="org.eclipse.jgit.junit.time.TimeUtil">
<filter id="1109393411">
<message_arguments>
<message_argument value="5.1.9"/>
<message_argument value="org.eclipse.jgit.junit.time.TimeUtil"/>
</message_arguments>
</filter>
</resource>
</component>

View File

@ -113,6 +113,7 @@ public String toString() {
* @param userGitConfig
* set another user-level git config
* @return the old user-level git config
* @since 5.1.9
*/
public FileBasedConfig setUserGitConfig(FileBasedConfig userGitConfig) {
FileBasedConfig old = this.userGitConfig;
@ -125,6 +126,7 @@ public FileBasedConfig setUserGitConfig(FileBasedConfig userGitConfig) {
*
* @param jgitConfig
* set the jgit configuration
* @since 5.5
*/
public void setJGitConfig(FileBasedConfig jgitConfig) {
this.jgitConfig = jgitConfig;
@ -136,6 +138,7 @@ public void setJGitConfig(FileBasedConfig jgitConfig) {
* @param systemGitConfig
* the new system-level git config
* @return the old system-level config
* @since 5.1.9
*/
public FileBasedConfig setSystemGitConfig(FileBasedConfig systemGitConfig) {
FileBasedConfig old = this.systemGitConfig;

View File

@ -93,6 +93,7 @@ public static class RepeatedTestException extends RuntimeException {
*
* @param message
* the error message
* @since 5.1.9
*/
public RepeatedTestException(String message) {
super(message);

View File

@ -362,6 +362,7 @@ public static String slashify(String str) {
* greater than then the lastmodification time of lastfile.
* @throws InterruptedException
* @throws IOException
* @since 5.1.9
*/
public static Instant fsTick(File lastFile)
throws InterruptedException,

View File

@ -54,6 +54,8 @@
* This class is used when it's required to load jgit classes in separate
* classloader for each test class. It can be needed to isolate static field
* initialization between separate tests.
*
* @since 5.5
*/
public class SeparateClassloaderTestRunner extends BlockJUnit4ClassRunner {

View File

@ -370,6 +370,7 @@ public RevObject get(RevTree tree, String path)
* zero or more IDs of the commit's parents.
* @return the ID of the new commit.
* @throws Exception
* @since 5.5
*/
public ObjectId unparsedCommit(ObjectId... parents) throws Exception {
return unparsedCommit(1, tree(), parents);
@ -462,6 +463,7 @@ public RevCommit commit(final int secDelta, final RevTree tree,
* zero or more IDs of the commit's parents.
* @return the ID of the new commit.
* @throws Exception
* @since 5.5
*/
public ObjectId unparsedCommit(final int secDelta, final RevTree tree,
final ObjectId... parents) throws Exception {

View File

@ -53,6 +53,8 @@
/**
* Utility methods for handling timestamps
*
* @since 5.1.9
*/
public class TimeUtil {
/**