Skip to content

Commit d299a25

Browse files
PLUGINAPI-138 deprecate FilePredicates.hasAnyStatus() because it's not used anymore, and all implementations SQ/SC/SL always return true
1 parent f1b041d commit d299a25

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ target/
1414

1515
# ---- Mac OS X
1616
.DS_Store?
17+
.DS_Store
1718
Icon?
1819
# Thumbnails
1920
._*

plugin-api/src/main/java/org/sonar/api/batch/fs/FilePredicates.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ public interface FilePredicates {
168168
/**
169169
* Explicitely look for InputFile having any {@link InputFile#status()}
170170
* @since 6.6
171+
* @deprecated since 11.4, use {@link #hasStatus(InputFile.Status)} instead
171172
*/
172-
FilePredicate hasAnyStatus();
173+
@Deprecated(forRemoval = true, since = "11.4")
174+
default FilePredicate hasAnyStatus(){
175+
return input -> true;
176+
}
173177

174178
}

0 commit comments

Comments
 (0)