Skip to content

working and tested changes of solr 9.1#1262

Closed
vatsalpatel3689 wants to merge 1 commit intoapache:mainfrom
vatsalpatel3689:solr_9.1
Closed

working and tested changes of solr 9.1#1262
vatsalpatel3689 wants to merge 1 commit intoapache:mainfrom
vatsalpatel3689:solr_9.1

Conversation

@vatsalpatel3689
Copy link
Copy Markdown

https://issues.apache.org/jira/browse/SOLR-XXXXX

Description

Please provide a short description of the changes you're making with this pull request.

Solution

Please provide a short description of the approach taken to implement your solution.

Tests

Please describe the tests you've developed or run to confirm this patch implements the feature or solves the problem.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

@vatsalpatel3689 vatsalpatel3689 closed this by deleting the head repository Jan 2, 2023
@@ -409,14 +409,14 @@ public static int compare(double a, double b, FacetRequest.SortDirection directi
if (a < b) return -1;
if (a > b) return 1;

if (Double.isNaN(a)) {
if (Double.isNaN(b)) {
if (a != a) { // a==NaN
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

39% of developers fix this issue

💬 2 similar findings have been found in this PR


opt.semgrep.java.lang.correctness.eqeq.eqeq: a == a or a != a is always true. (Unless the value compared is a float or double).
To test if a is not-a-number, use Double.isNaN(a).


🔎 Expand here to view all instances of this finding
File Path Line Number
solr/core/src/java/org/apache/solr/search/facet/FacetModule.java 413
solr/core/src/java/org/apache/solr/search/facet/FacetModule.java 419

Visit the Lift Web Console to find more details in your report.


ℹ️ Learn about @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

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