Change return type of UpdateDefinition.isIsolated to primitive.

Switch return from Boolean to boolean.

Closes: #4922
Original Pull Request: #4981

Signed-off-by: Hyunsang Han <gustkd3@gmail.com>
This commit is contained in:
Hyunsang Han
2025-05-25 00:21:48 +09:00
committed by Christoph Strobl
parent 9a40b7e701
commit c57581f6d2
4 changed files with 5 additions and 4 deletions

View File

@@ -140,7 +140,7 @@ public class MappedDocument {
}
@Override
public Boolean isIsolated() {
public boolean isIsolated() {
return delegate.isIsolated();
}

View File

@@ -248,7 +248,7 @@ public class AggregationUpdate extends Aggregation implements UpdateDefinition {
}
@Override
public Boolean isIsolated() {
public boolean isIsolated() {
return isolated;
}

View File

@@ -444,7 +444,7 @@ public class Update implements UpdateDefinition {
}
@Override
public Boolean isIsolated() {
public boolean isIsolated() {
return isolated;
}

View File

@@ -24,6 +24,7 @@ import org.bson.Document;
*
* @author Christoph Strobl
* @author Mark Paluch
* @author Hyunsang Han
* @since 2.2
*/
public interface UpdateDefinition {
@@ -34,7 +35,7 @@ public interface UpdateDefinition {
*
* @return {@literal true} if update isolated is set.
*/
Boolean isIsolated();
boolean isIsolated();
/**
* @return the actual update in its native {@link Document} format. Never {@literal null}.