From cfd88df324cda7a78f38917e9fc6473262e45414 Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Sat, 26 Dec 2020 22:51:23 +0100 Subject: [PATCH] Add `.gitignore` And fix two typos. --- .gitignore | 11 +++++++++++ error-prone-contrib/README.md | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..7e97731955 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# General Java development. +.attach_pid* +.classpath +.DS_Store +.factorypath +.idea +.project +.settings +target +*.iml +*.swp diff --git a/error-prone-contrib/README.md b/error-prone-contrib/README.md index 2ca03e9e21..b4b237d667 100644 --- a/error-prone-contrib/README.md +++ b/error-prone-contrib/README.md @@ -235,7 +235,7 @@ The following is a list of checks we'd like to see implemented: `expr.switchIfEmpty(Single.error(...))`, so that an application-specific exception is thrown instead of `NoSuchElementException`. - An RxJava-specific check which flags use of `#assertValueSet` without - `#assertValueCount`, as the former method doesn't do what one may intuitivily + `#assertValueCount`, as the former method doesn't do what one may intuitively expect it to do. See ReactiveX/RxJava#6151. ### Refaster extension ideas @@ -262,7 +262,7 @@ Refaster's expressiveness: rewriting `optional1.map(Optional::of).orElse(optional2)` to `optional1.or(() -> optional2)` is not behavior preserving if evaluation of `optional2` has side-effects. -- Similarly, ceratin refactoring operations are only valid if one of the +- Similarly, certain refactoring operations are only valid if one of the matches expressions is not `@Nullable`. It'd be nice to be able to express this. - Generalize `@Placeholder` support such that rules can reference e.g. "any