Skip to content

Commit 5db0e9e

Browse files
authored
Fix typo in Javadoc and code formatting (#142)
Signed-off-by: renato <renatomamel410@gmail.com>
1 parent 0c51f9b commit 5db0e9e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/openapitools/jackson/nullable/JsonNullable.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public T orElseGet(Supplier<? extends T> supplier) {
8989
* NoSuchElementException.
9090
*
9191
* @return the value of this JsonNullable
92-
* @throws NoSuchElementException if no value if present
92+
* @throws NoSuchElementException if no value is present
9393
*
9494
* @since 0.2.8
9595
*/
@@ -117,7 +117,7 @@ public T orElseThrow() {
117117
public <X extends Throwable> T orElseThrow(Supplier<? extends X> supplier)
118118
throws X
119119
{
120-
if( this.isPresent ) {
120+
if (this.isPresent) {
121121
return this.value;
122122
}
123123
throw supplier.get();
@@ -278,7 +278,7 @@ public <U> JsonNullable<U> flatMap( Function<? super T, ? extends JsonNullable<?
278278
*/
279279
@SuppressWarnings("unchecked")
280280
public JsonNullable<T> or( Supplier<? extends JsonNullable<? extends T>> supplier ) {
281-
if( supplier == null ) {
281+
if (supplier == null) {
282282
throw new NullPointerException("or supplier is null");
283283
}
284284
if (this.isPresent) {

0 commit comments

Comments
 (0)