Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 4f7d3ea

Browse files
committed
Updating README to add stuff from #5
(cherry picked from commit aaea1d5)
1 parent 4789175 commit 4f7d3ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ Automatic View finding and injections for _Parsable_ components:
184184
private Button mLongClickableButton;
185185
}
186186
```
187+
[Google Guava-like verification](https://github.com/google/guava/wiki/PreconditionsExplained) with `Preconditions` class:
188+
```java
189+
void saveResource(@NonNull final String resource) {
190+
mResource = Preconditions.checkNotNull(resource); // crashes if resource is null
191+
}
192+
```
187193

188194
Setup
189195
-----

0 commit comments

Comments
 (0)