Skip to content

Commit e5ae7a9

Browse files
ngorogiannisfacebook-github-bot
authored andcommitted
[eradicate/nullsafe] remove checkers
Summary: Eradicate/Nullsafe has been deprecated and can be removed. Reviewed By: geralt-encore Differential Revision: D52017524 Privacy Context Container: L1122176 fbshipit-source-id: 26c0d05b56e23fd80a4c0d791c87c5ec4bd8ea37
1 parent cfedb47 commit e5ae7a9

File tree

196 files changed

+100
-16450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+100
-16450
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ rebar3.crashdump
200200
/infer/src/clang/dune
201201
/infer/src/integration/dune
202202
/infer/src/java/dune
203-
/infer/src/nullsafe/unit/dune
204203
/infer/src/opensource/dune
205204
/infer/src/python/unit/dune
206205
/infer/src/unit/dune

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ DIRECT_TESTS += \
246246
java_immutability \
247247
java_inefficientKeysetIterator \
248248
java_litho-required-props \
249-
java_nullsafe \
250-
java_nullsafe-annotation-graph \
251249
java_performance \
252250
java_performance-exclusive \
253251
java_pulse \

examples/demo/demo.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ infer -- make -C 02 clean all
1313
infer explore --no-source-preview --select 0
1414
infer -- make -C 03 clean all
1515
infer explore --no-source-preview --select 1
16-
infer --eradicate-only -- make -C 04 clean all

infer/annotations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Infer annotations
22

3-
This project provides extra annotations for Java checkers, such as starvation or nullsafe.
3+
This project provides extra annotations for Java checkers, such as starvation.
44

55
## How to build JARs (suitable for release)
66

infer/annotations/src/main/java/com/facebook/infer/annotation/Assertions.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ public static <T> T assumeNotNull(@Nullable T object) {
5555
}
5656

5757
/**
58-
* Makes Nullsafe stop complaining when {@code object} is dereferenced or converted to a
59-
* non-nullable. In contrast with {@code #assumeNotNull()}, indicates cases when the proper fix
60-
* needs to be committed, but for some reason it is hard or impossible to do it staight away.
58+
* Makes Nullsafe (a nullability type checker) stop complaining when {@code object} is
59+
* dereferenced or converted to a non-nullable. In contrast with {@code #assumeNotNull()},
60+
* indicates cases when the proper fix needs to be committed, but for some reason it is hard or
61+
* impossible to do it staight away.
6162
*/
6263
public static <T> T nullsafeFIXME(@Nullable T object, String explanationOrTask) {
6364
return object;

infer/documentation/checkers/Eradicate.md

Lines changed: 0 additions & 75 deletions
This file was deleted.

infer/documentation/checkers/Pulse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void false_negative() {
6969
int* x = (int*) malloc(sizeof(int));
7070
if (x) {
7171
// unknown call to x makes Pulse forget that x was allocated, in case it frees x
72-
unknown(x);
72+
unknown(x);
7373
}
7474
} // no memory leak reported: false negative!
7575
@@ -94,7 +94,7 @@ $ infer debug --procedures --procedures-filter 'false_negative' --procedures-sum
9494

9595
## Pulse x Nullsafe
9696

97-
[Nullsafe](/docs/next/checker-eradicate) is a type checker for `@Nullable` annotations for Java. Classes following the Nullsafe discipline are annotated with `@Nullsafe`.
97+
Nullsafe is a type checker for `@Nullable` annotations for Java. Classes following the Nullsafe discipline are annotated with `@Nullsafe`.
9898

9999
Consider the classes `Person` and `Registry` from the previous example. Assuming that class `Person` is annotated with `@Nullsafe`. In this case, we also annotate `getEmergencyContact()` with `@Nullable`, to make explicit that this method can return the `null` value. There is still the risk that classes depending on `Person` have Null dereferences. In this case, Pulse would report a Null dereference on `Registry`. It could also be the case that class `Registry` is annotated with `@Nullsafe`. By default Pulse reports on `@Nullsafe` files too, see the `--pulse-nullsafe-report-npe` option (Facebook-specific: Pulse does not report on `@Nullsafe` files).
100100

infer/documentation/issues/CHECKERS_IMMUTABLE_CAST.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

infer/documentation/issues/ERADICATE_CONDITION_REDUNDANT.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

infer/documentation/issues/ERADICATE_FIELD_NOT_INITIALIZED.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)