Skip to content

Commit 5b91bba

Browse files
committed
add Nullable annotation
1 parent 4956def commit 5b91bba

File tree

1 file changed

+2
-0
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/configuration

1 file changed

+2
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/configuration/Project.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import java.util.logging.Logger;
3535
import java.util.regex.PatternSyntaxException;
3636

37+
import org.jetbrains.annotations.Nullable;
3738
import org.jetbrains.annotations.VisibleForTesting;
3839
import org.opengrok.indexer.logger.LoggerFactory;
3940
import org.opengrok.indexer.util.ClassUtil;
@@ -548,6 +549,7 @@ public static Project getProject(String path) {
548549
* @param file the file to lookup
549550
* @return the project that this file belongs to (or {@code null} if the file doesn't belong to a project)
550551
*/
552+
@Nullable
551553
public static Project getProject(File file) {
552554
Project ret = null;
553555
try {

0 commit comments

Comments
 (0)