File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
junit-platform-engine/src/main/java/org/junit/platform/engine/reporting Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 17
17
import java .util .Optional ;
18
18
19
19
import org .apiguardian .api .API ;
20
+ import org .jspecify .annotations .Nullable ;
20
21
import org .junit .platform .commons .util .Preconditions ;
21
22
import org .junit .platform .commons .util .ToStringBuilder ;
22
23
@@ -38,15 +39,17 @@ public final class FileEntry {
38
39
* @param mediaType the media type of the path to publish; may be
39
40
* {@code null}
40
41
*/
41
- public static FileEntry from (Path path , String mediaType ) {
42
+ public static FileEntry from (Path path , @ Nullable String mediaType ) {
42
43
return new FileEntry (path , mediaType );
43
44
}
44
45
45
46
private final LocalDateTime timestamp = LocalDateTime .now ();
46
47
private final Path path ;
48
+
49
+ @ Nullable
47
50
private final String mediaType ;
48
51
49
- private FileEntry (Path path , String mediaType ) {
52
+ private FileEntry (Path path , @ Nullable String mediaType ) {
50
53
this .path = Preconditions .notNull (path , "path must not be null" );
51
54
this .mediaType = mediaType ;
52
55
}
Original file line number Diff line number Diff line change 3
3
* listeners.
4
4
*/
5
5
6
+ @ NullMarked
6
7
package org .junit .platform .engine .reporting ;
8
+
9
+ import org .jspecify .annotations .NullMarked ;
You can’t perform that action at this time.
0 commit comments