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.CollectionUtil;
|
||||
import com.samskivert.util.ListUtil;
|
||||
import com.samskivert.util.ObjectUtil;
|
||||
|
||||
import static com.samskivert.Log.log;
|
||||
|
||||
@@ -353,8 +354,7 @@ public class ObjectEditorTable extends JTable
|
||||
Object o = getObjectAt(row);
|
||||
Object oldValue = _interp.getValue(o, _fields[col]);
|
||||
// we only set the value if it has changed
|
||||
if ((oldValue == null && value != null) ||
|
||||
!oldValue.equals(value)) {
|
||||
if (!ObjectUtil.equals(oldValue, value)) {
|
||||
_interp.setValue(o, value, _fields[col]);
|
||||
|
||||
// fire the event
|
||||
|
||||
Reference in New Issue
Block a user