File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
build-plugin/spring-boot-antlib/src/main/java/org/springframework/boot/ant Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 23
23
import org .apache .tools .ant .BuildException ;
24
24
import org .apache .tools .ant .Project ;
25
25
import org .apache .tools .ant .Task ;
26
+ import org .jspecify .annotations .Nullable ;
26
27
27
28
import org .springframework .boot .loader .tools .MainClassFinder ;
28
29
import org .springframework .util .StringUtils ;
@@ -37,11 +38,11 @@ public class FindMainClass extends Task {
37
38
38
39
private static final String SPRING_BOOT_APPLICATION_CLASS_NAME = "org.springframework.boot.autoconfigure.SpringBootApplication" ;
39
40
40
- private String mainClass ;
41
+ private @ Nullable String mainClass ;
41
42
42
- private File classesRoot ;
43
+ private @ Nullable File classesRoot ;
43
44
44
- private String property ;
45
+ private @ Nullable String property ;
45
46
46
47
public FindMainClass (Project project ) {
47
48
setProject (project );
Original file line number Diff line number Diff line change 19
19
import org .apache .tools .ant .BuildException ;
20
20
import org .apache .tools .ant .Project ;
21
21
import org .apache .tools .ant .Task ;
22
+ import org .jspecify .annotations .Nullable ;
22
23
23
24
import org .springframework .util .StringUtils ;
24
25
30
31
*/
31
32
public class ShareAntlibLoader extends Task {
32
33
33
- private String refid ;
34
+ private @ Nullable String refid ;
34
35
35
36
public ShareAntlibLoader (Project project ) {
36
37
setProject (project );
@@ -44,7 +45,7 @@ public void execute() throws BuildException {
44
45
getProject ().addReference (this .refid , getClass ().getClassLoader ());
45
46
}
46
47
47
- public void setRefid (String refid ) {
48
+ public void setRefid (@ Nullable String refid ) {
48
49
this .refid = refid ;
49
50
}
50
51
Original file line number Diff line number Diff line change 17
17
/**
18
18
* Support for building Spring Boot applications using Ant.
19
19
*/
20
+ @ NullMarked
20
21
package org .springframework .boot .ant ;
22
+
23
+ import org .jspecify .annotations .NullMarked ;
You can’t perform that action at this time.
0 commit comments