Correct and easier to read.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2713 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -37,6 +37,7 @@ import com.samskivert.swing.event.CommandEvent;
|
|||||||
import com.samskivert.util.ClassUtil;
|
import com.samskivert.util.ClassUtil;
|
||||||
import com.samskivert.util.CollectionUtil;
|
import com.samskivert.util.CollectionUtil;
|
||||||
import com.samskivert.util.ListUtil;
|
import com.samskivert.util.ListUtil;
|
||||||
|
import com.samskivert.util.ObjectUtil;
|
||||||
|
|
||||||
import static com.samskivert.Log.log;
|
import static com.samskivert.Log.log;
|
||||||
|
|
||||||
@@ -353,8 +354,7 @@ public class ObjectEditorTable extends JTable
|
|||||||
Object o = getObjectAt(row);
|
Object o = getObjectAt(row);
|
||||||
Object oldValue = _interp.getValue(o, _fields[col]);
|
Object oldValue = _interp.getValue(o, _fields[col]);
|
||||||
// we only set the value if it has changed
|
// we only set the value if it has changed
|
||||||
if ((oldValue == null && value != null) ||
|
if (!ObjectUtil.equals(oldValue, value)) {
|
||||||
!oldValue.equals(value)) {
|
|
||||||
_interp.setValue(o, value, _fields[col]);
|
_interp.setValue(o, value, _fields[col]);
|
||||||
|
|
||||||
// fire the event
|
// fire the event
|
||||||
|
|||||||
Reference in New Issue
Block a user