Skip to content

Commit

Permalink
remove internal MorphiaCursor
Browse files Browse the repository at this point in the history
update rewrite scripts to update usages of old cursor type
  • Loading branch information
evanchooly committed Oct 22, 2023
1 parent 7da16ff commit cba79ea
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 32 deletions.
4 changes: 0 additions & 4 deletions config/findbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
<Match>
<Bug pattern="EI_EXPOSE_REP"/>
</Match>
<Match>
<Class name="dev.morphia.query.internal.MorphiaCursor"/>
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/>
</Match>
<Match>
<Class name="~.*\.*Test.*"/>
<Not>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
import dev.morphia.aggregation.stages.Unset;
import dev.morphia.aggregation.stages.Unwind;
import dev.morphia.annotations.internal.MorphiaInternal;
import dev.morphia.query.MorphiaCursor;
import dev.morphia.query.filters.Filter;
import dev.morphia.query.internal.MorphiaCursor;

/**
* @param <T> The initial type of the aggregation. Used for collection name resolution.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
import dev.morphia.mapping.codec.pojo.EntityModel;
import dev.morphia.mapping.codec.reader.DocumentReader;
import dev.morphia.mapping.codec.writer.DocumentWriter;
import dev.morphia.query.MorphiaCursor;
import dev.morphia.query.filters.Filter;
import dev.morphia.query.internal.MorphiaCursor;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/dev/morphia/query/MorphiaQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import dev.morphia.mapping.codec.pojo.EntityModel;
import dev.morphia.mapping.codec.writer.DocumentWriter;
import dev.morphia.query.filters.Filter;
import dev.morphia.query.internal.MorphiaCursor;
import dev.morphia.query.updates.UpdateOperator;
import dev.morphia.sofia.Sofia;

Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/dev/morphia/query/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import dev.morphia.UpdateOptions;
import dev.morphia.aggregation.stages.Stage;
import dev.morphia.query.filters.Filter;
import dev.morphia.query.internal.MorphiaCursor;
import dev.morphia.query.updates.UpdateOperator;

/**
Expand Down
24 changes: 0 additions & 24 deletions core/src/main/java/dev/morphia/query/internal/MorphiaCursor.java

This file was deleted.

3 changes: 3 additions & 0 deletions upgrading/UpgradeTo30.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: dev.morphia.geo.Polygon
newFullyQualifiedTypeName: com.mongodb.client.model.geojson.Polygon
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: dev.morphia.query.internal.MorphiaCursor
newFullyQualifiedTypeName: dev.morphia.query.MorphiaCursor

0 comments on commit cba79ea

Please sign in to comment.