I just thought I was missing something.


On Thu, Apr 3, 2014 at 1:30 PM, Justin Lee <justin.lee@mongodb.com> wrote:

> No worries.  I have it cleaned up and merged.
>
>
> On Thu, Apr 3, 2014 at 1:20 PM, Scott Bessler <notifications@github.com>wrote:
>
>> In morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java:
>>
>> > @@ -870,6 +870,9 @@ protected DBObject entityToDBObj(final Object entity, final Map<Object, DBObject
>> >      }
>> >
>> >      public <T> Iterable<Key<T>> save(final Iterable<T> entities) {
>> > +        if (entities.isEmpty()) {
>>
>> oops, thats what i get for rushing.. i'll push again with the proper code
>> in a sec.
>> ... <#14528a482ceef1fc_145289ae32938f92_>
>> On Thu, Apr 3, 2014 at 10:05 AM, Justin Lee <notifications@github.com>wrote:
>> In morphia/src/main/java/org/mongodb/morphia/DatastoreImpl.java: > @@
>> -870,6 +870,9 @@ protected DBObject entityToDBObj(final Object entity,
>> final Map<Object, DBObject > } > > public <T> Iterable<Key<T>> save(final
>> Iterable<T> entities) { > + if (entities.isEmpty()) { this method doesn't
>> exist on Iterable in any Java version I can find. Did this build for you?
>> -- Reply to this email directly or view it on GitHub<
>> https://github.com/mongodb/morphia/pull/594/files#r11261352> .
>>
>> --
>> Reply to this email directly or view it on GitHub<https://github.com/mongodb/morphia/pull/594/files#r11262117>
>> .
>>
>
>