Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadCommandSystem
Commits
aacf77e3
Commit
aacf77e3
authored
Apr 23, 2015
by
yannick legoc
Browse files
corrected SpyPropertyDescriptorComparator
parent
7852ea8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fr/ill/ics/nscclient/servant/SpyPropertyDescriptorComparator.java
View file @
aacf77e3
...
...
@@ -30,6 +30,18 @@ public class SpyPropertyDescriptorComparator implements Comparator<SpyPropertyDe
if
(
d1
.
getSetpointID
()
==
d2
.
getSetpointID
())
{
return
Integer
.
compare
(
d1
.
getActualID
(),
d2
.
getActualID
());
}
if
(
d2
.
getSetpointID
()
==
0
)
{
// d1.setpointID > 0
// so d1 is considered smaller than d2
return
-
1
;
}
if
(
d1
.
getSetpointID
()
==
0
)
{
// d2.setpointID > 0
// so d1 is considered greater than d2
return
1
;
}
return
Integer
.
compare
(
d1
.
getSetpointID
(),
d2
.
getSetpointID
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment