Improved the "compare result changed" error message to include the most
likely cause of the error.
This commit is contained in:
parent
1315af8d52
commit
4919620e61
@ -700,7 +700,9 @@ public class ListSort<T> {
|
|||||||
arr[dest + lengthB] = tempArray[iterA];
|
arr[dest + lengthB] = tempArray[iterA];
|
||||||
} else if(lengthA == 0){
|
} else if(lengthA == 0){
|
||||||
throw new UnsupportedOperationException("Compare function result changed! " +
|
throw new UnsupportedOperationException("Compare function result changed! " +
|
||||||
"Make sure you do not modify the scene from another thread!");
|
"Make sure you do not modify the scene from"
|
||||||
|
+ " another thread and that the comparisons are not based"
|
||||||
|
+ " on NaN values.");
|
||||||
} else {//Fail label
|
} else {//Fail label
|
||||||
System.arraycopy(tempArray, iterA, arr, dest, lengthA);
|
System.arraycopy(tempArray, iterA, arr, dest, lengthA);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user