mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 06:45:21 +00:00
#2421 - Change database.diff() to return empty map rather than null with null bean argument
This commit is contained in:
1 parent
a61c73c62a
commit
5a4924b6cb
2 files changed
+14
-17
No files matched your search
@@ -566,7 +566,7 @@ public final class DefaultServer implements SpiServer, SpiEbeanServer {
|
||||
@Override
|
||||
public Map<String, ValuePair> diff(Object a, Object b) {
|
||||
if (a == null) {
|
||||
return null;
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
BeanDescriptor<?> desc = descriptor(a.getClass());
|
||||
return DiffHelp.diff(a, b, desc);
|
||||
|
||||
Reference in new issue
Block a user