Skip to content

Commit 945ea28

Browse files
csarrazirozza
authored andcommitted
Fixed wrong static imports in builders documentation (#398)
1 parent 5cf7cbb commit 945ea28

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/reference/content/builders/aggregation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pipeline operators]({{< docsref "reference/operator/aggregation/" >}}). Each me
1717
For brevity, you may choose to import the methods of the `Aggregates` class statically:
1818

1919
```java
20-
import com.mongodb.client.model.Aggregates.*;
20+
import static com.mongodb.client.model.Aggregates.*;
2121
```
2222

2323
All the examples below assume this static import.

docs/reference/content/builders/filters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ any method that expects a query filter.
1616
For brevity, you may choose to import the methods of the `Filters` class statically:
1717

1818
```java
19-
import com.mongodb.client.model.Filters.*;
19+
import static com.mongodb.client.model.Filters.*;
2020
```
2121

2222
All the examples below assume this static import.

docs/reference/content/builders/indexes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ methods.
1616
For brevity, you may choose to import the methods of the `Indexes` class statically:
1717

1818
```java
19-
import com.mongodb.client.model.Indexes.*;
19+
import static com.mongodb.client.model.Indexes.*;
2020
```
2121

2222
All the examples below assume this static import.

docs/reference/content/builders/sorts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ any method that expects sort criteria.
1616
For brevity, you may choose to import the methods of the `Sorts` class statically:
1717

1818
```java
19-
import com.mongodb.client.model.Sorts.*;
19+
import static com.mongodb.client.model.Sorts.*;
2020
```
2121

2222
All the examples below assume this static import.

docs/reference/content/builders/updates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ any method that expects an update.
1616
For brevity, you may choose to import the methods of the `Updates` class statically:
1717

1818
```java
19-
import com.mongodb.client.model.Updates.*;
19+
import static com.mongodb.client.model.Updates.*;
2020
```
2121

2222
All the examples below assume this static import.

0 commit comments

Comments
 (0)