cancel
Showing results for 
Search instead for 
Did you mean: 

KeyValueBlobTransientStore

Eric_Ace
Confirmed Champ
Confirmed Champ

Nuxeo Folks: KeyValueBlobTransientStore.getBlobs can return Collections.emptyList which you can't add to. However, SimpleTransientStore.getBlobs returns an ArrayList and so a unit test that expects to be able to add to the return value from getBlobs can pass, but then fail if deployed over a K/V transient store...

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

The Javadoc for TransientStore.getBlobs doesn't promise anything about mutability of the returned List, so you shouldn't assume that it's an ArrayList even though that's the case for the current implementation of SimpleTransientStore.

True. It is a shortcoming of Java that interface contracts don't explicitly state mutability. Lacking that, programmers tend to interpret the contract to be

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.