changeset 1231:f790fc01d0bc

Clarify the behaviour of Replace Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-August/008038.html
author Omair Majid <omajid@redhat.com>
date Tue, 27 Aug 2013 10:23:45 -0400
parents ae2b04ff7a76
children 7936f09da466
files storage/core/src/main/java/com/redhat/thermostat/storage/core/Replace.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/storage/core/src/main/java/com/redhat/thermostat/storage/core/Replace.java	Mon Aug 26 11:12:28 2013 -0400
+++ b/storage/core/src/main/java/com/redhat/thermostat/storage/core/Replace.java	Tue Aug 27 10:23:45 2013 -0400
@@ -47,6 +47,9 @@
  * The only distinction to a regular {@link Update} is that if Replace is used
  * and the associated where yields no result, a <strong>new</strong> record will
  * be insterted into Storage.
+ * <p>
+ * The result of this operation is undefined if the {@code where} expression
+ * matches more than one record in storage.
  * 
  * @see Add
  * @see Remove