Skip to content

Java upgrade to 21#46

Open
devops-thiago wants to merge 3 commits intomasterfrom
java-upgrade-20251216120325-dkyc
Open

Java upgrade to 21#46
devops-thiago wants to merge 3 commits intomasterfrom
java-upgrade-20251216120325-dkyc

Conversation

@devops-thiago
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 15:49
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@codecov
Copy link

codecov bot commented Dec 16, 2025

Codecov Report

❌ Patch coverage is 0% with 71 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (40a1fcc) to head (1405a08).

Files with missing lines Patch % Lines
.../mongocom/management/CollectionManagerFactory.java 0.00% 42 Missing ⚠️
...volivre/mongocom/management/CollectionManager.java 0.00% 22 Missing ⚠️
...m/arquivolivre/mongocom/management/MongoQuery.java 0.00% 7 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master     #46   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files          10      10           
  Lines         537     532    -5     
  Branches       97      98    +1     
======================================
+ Misses        537     532    -5     
Flag Coverage Δ
unittests 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Repository owner deleted a comment from cursor bot Dec 16, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 26 out of 26 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -24,7 +24,7 @@ jobs:
- name: Set up JDK 17
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The step name still says "Set up JDK 17" but the Java version has been updated to 21. Update the step name to "Set up JDK 21" to match the actual version being configured.

Copilot uses AI. Check for mistakes.
@@ -84,7 +84,7 @@ jobs:
- name: Set up JDK 17
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The step name still says "Set up JDK 17" but the Java version has been updated to 21. Update the step name to "Set up JDK 21" to match the actual version being configured.

Copilot uses AI. Check for mistakes.
@@ -21,7 +21,7 @@ jobs:
- name: Set up JDK 17
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The step name still says "Set up JDK 17" but the Java version has been updated to 21. Update the step name to "Set up JDK 21" to match the actual version being configured.

Copilot uses AI. Check for mistakes.
Comment on lines 118 to +123
public Document getQuery() {
return query;
return query != null ? new Document(query) : new Document();
}

public Document getConstraints() {
return constraints;
return constraints != null ? new Document(constraints) : null;
}

public Document getOrderBy() {
return orderBy;
return orderBy != null ? new Document(orderBy) : null;
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The getQuery(), getConstraints(), and getOrderBy() methods have inconsistent null-handling behavior. getQuery() returns an empty Document when query is null, but getConstraints() and getOrderBy() return null. This inconsistency can lead to confusion and potential NullPointerExceptions. Consider making all three methods consistent by either all returning empty Documents or all returning null when the field is null.

Copilot uses AI. Check for mistakes.
properties.containsKey("mongocom.database")
? properties.getProperty("mongocom.database")
: "";
if (!user.equals("")) {
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inefficient comparison to empty string, check for zero length instead.

Copilot uses AI. Check for mistakes.
if (!user.equals("")) {
builder.append(user).append(":").append(password).append("@");
}
if (host.equals("")) {
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inefficient comparison to empty string, check for zero length instead.

Copilot uses AI. Check for mistakes.
} else {
builder.append(host);
}
if (!port.equals("")) {
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inefficient comparison to empty string, check for zero length instead.

Copilot uses AI. Check for mistakes.
builder.append(port);
}
builder.append("/");
if (!dbName.equals("")) {
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inefficient comparison to empty string, check for zero length instead.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant