Skip to content

Commit

Permalink
Update README (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
be-hase committed May 23, 2024
1 parent c9d92a9 commit bed88d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Protobuf uses builders to set values. Since this code is written in Java, there
When used from Kotlin, it is often misunderstood that it is okay to set null for optional fields, which results in
passing null and encountering NPEs (NullPointerExceptions).

```
```kotlin
Sample.newBuilder()
.setHoge(null) // This code raises NPE 😭
.setBar(1)
Expand Down Expand Up @@ -280,7 +280,7 @@ If you want to use default values, you can use java builder or kotlin DSL.

### Compile Options

Perhaps you only want the *OrNull extension property and do not need the factory function. (and vice versa).
Perhaps you only want the `*OrNull` extension property and do not need the factory function. (and vice versa).

This can be achieved by setting the compile options.

Expand Down

0 comments on commit bed88d8

Please sign in to comment.