Skip to content

Commit 38f8fae

Browse files
Mark cache-related API as unstable (#1311)
1 parent 38b164c commit 38f8fae

File tree

6 files changed

+11
-1
lines changed

6 files changed

+11
-1
lines changed

python-frontend/src/main/java/org/sonar/plugins/python/api/PythonCheck.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.util.List;
2424
import javax.annotation.Nullable;
2525
import org.sonar.api.Beta;
26-
import org.sonar.api.batch.fs.InputFile;
2726
import org.sonar.plugins.python.api.tree.Token;
2827
import org.sonar.plugins.python.api.tree.Tree;
2928

python-frontend/src/main/java/org/sonar/plugins/python/api/PythonInputFileContext.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.io.File;
2323
import javax.annotation.CheckForNull;
2424
import javax.annotation.Nullable;
25+
import org.sonar.api.Beta;
2526
import org.sonar.plugins.python.api.caching.CacheContext;
2627

2728
public class PythonInputFileContext {
@@ -40,6 +41,7 @@ public PythonFile pythonFile() {
4041
return pythonFile;
4142
}
4243

44+
@Beta
4345
public CacheContext cacheContext() {
4446
return cacheContext;
4547
}

python-frontend/src/main/java/org/sonar/plugins/python/api/SubscriptionContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ public interface SubscriptionContext {
5858
@CheckForNull
5959
File workingDirectory();
6060

61+
@Beta
6162
CacheContext cacheContext();
6263
}

python-frontend/src/main/java/org/sonar/plugins/python/api/caching/CacheContext.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*/
2020
package org.sonar.plugins.python.api.caching;
2121

22+
import org.sonar.api.Beta;
23+
24+
@Beta
2225
public interface CacheContext {
2326
boolean isCacheEnabled();
2427

python-frontend/src/main/java/org/sonar/plugins/python/api/caching/PythonReadCache.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
import java.io.InputStream;
2323
import javax.annotation.CheckForNull;
24+
import org.sonar.api.Beta;
2425

26+
@Beta
2527
public interface PythonReadCache {
2628
/**
2729
* Returns an input stream for the data cached with the provided {@code key}. It is the responsibility of the caller to close the stream.

python-frontend/src/main/java/org/sonar/plugins/python/api/caching/PythonWriteCache.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*/
2020
package org.sonar.plugins.python.api.caching;
2121

22+
import org.sonar.api.Beta;
23+
24+
@Beta
2225
public interface PythonWriteCache {
2326
/**
2427
* Save a new entry in the cache.

0 commit comments

Comments
 (0)