-
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.
- Loading branch information
Showing
13 changed files
with
155 additions
and
56 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
version=2021.5.4 | ||
version=2021.5.5 |
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
13 changes: 13 additions & 0 deletions
13
src/test/java/examples/java/noreceiver/notnullannotation/Correct.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,13 @@ | ||
package examples.java.noreceiver.notnullannotation; | ||
|
||
import edu.illinois.cs.cs125.jenisol.core.NotNull; | ||
|
||
public class Correct { | ||
public static int it(@NotNull String input) { | ||
if (input == null) { | ||
return 0; | ||
} else { | ||
return input.length(); | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/java/examples/java/noreceiver/notnullannotation/Correct0.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,7 @@ | ||
package examples.java.noreceiver.notnullannotation; | ||
|
||
public class Correct0 { | ||
public static int it(String input) { | ||
return input.length(); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/java/examples/java/noreceiver/notnullannotation/Incorrect0.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,7 @@ | ||
package examples.java.noreceiver.notnullannotation; | ||
|
||
public class Incorrect0 { | ||
public static int it(String input) { | ||
return 0; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/test/java/examples/java/noreceiver/onewithoutwrapper/Correct.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,24 @@ | ||
package examples.java.noreceiver.onewithoutwrapper; | ||
|
||
import edu.illinois.cs.cs125.jenisol.core.FixedParameters; | ||
import edu.illinois.cs.cs125.jenisol.core.RandomParameters; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.Random; | ||
|
||
public class Correct { | ||
@FixedParameters private static final List<String> FIXED = Arrays.asList(null, "8888"); | ||
|
||
@RandomParameters | ||
private static String valueParameters(int complexity, Random random) { | ||
if (random.nextBoolean()) { | ||
return null; | ||
} else { | ||
return ""; | ||
} | ||
} | ||
|
||
public static boolean value(String first) { | ||
return first.equals("8888"); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/java/examples/java/noreceiver/onewithoutwrapper/Incorrect0.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,9 @@ | ||
package examples.java.noreceiver.onewithoutwrapper; | ||
|
||
@SuppressWarnings("unused") | ||
public class Incorrect0 { | ||
@SuppressWarnings("unused") | ||
public static boolean value(String first) { | ||
return false; | ||
} | ||
} |
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