forked from eclipse-jdtls/eclipse.jdt.ls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add java.compile.nullAnalysis.nonnullbydefault property
- Loading branch information
Showing
4 changed files
with
111 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
org.eclipse.jdt.ls.tests/projects/gradle/null-analysis/src/main/java/org/sample/Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.sample; | ||
|
||
public class Test { | ||
|
||
private String obj = ""; | ||
private Integer count; | ||
public String getObj() { | ||
return obj; | ||
} | ||
public void setObj(String obj) { | ||
this.obj = obj; | ||
} | ||
public Integer getCount() { | ||
return count; | ||
} | ||
public void setCount(Integer count) { | ||
this.count = count; | ||
} | ||
|
||
} | ||
|
||
|
2 changes: 2 additions & 0 deletions
2
...pse.jdt.ls.tests/projects/gradle/null-analysis/src/main/java/org/sample/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@org.eclipse.jdt.annotation.NonNullByDefault | ||
package org.sample; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters