Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
7ca960b4
Commit
7ca960b4
authored
14 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1661 Using Double.compare() for comparing two double values which could be NaN
SVN: 17463
parent
df371d79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DoubleTableCell.java
+1
-1
1 addition, 1 deletion
...isd/openbis/generic/shared/basic/dto/DoubleTableCell.java
with
1 addition
and
1 deletion
openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DoubleTableCell.java
+
1
−
1
View file @
7ca960b4
...
...
@@ -44,7 +44,7 @@ public class DoubleTableCell implements ISerializableComparable
double
v1
=
number
;
DoubleTableCell
numberTableCell
=
(
DoubleTableCell
)
o
;
double
v2
=
numberTableCell
.
number
;
return
v1
<
v2
?
-
1
:
(
v1
>
v2
?
1
:
0
);
return
Double
.
compare
(
v1
,
v2
);
}
return
toString
().
compareTo
(
o
.
toString
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment