Revision 44408 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/AbstractStoresRepository.java
AbstractStoresRepository.java | ||
---|---|---|
188 | 188 |
@Override |
189 | 189 |
public UnmodifiableBasicSet<String> keySet() { |
190 | 190 |
List<UnmodifiableBasicSet<String>> sets = new ArrayList<>(); |
191 |
sets.add(this.getMyKeySet()); |
|
191 |
UnmodifiableBasicSet<String> keyset = this.getMyKeySet(); |
|
192 |
if( keyset!=null && !keyset.isEmpty() ) { |
|
193 |
sets.add(keyset); |
|
194 |
} |
|
192 | 195 |
for (StoresRepository theRepository : this.subrepositories) { |
193 |
sets.add(theRepository.keySet()); |
|
196 |
if( theRepository!=null ) { |
|
197 |
keyset = theRepository.keySet(); |
|
198 |
if( keyset!=null && !keyset.isEmpty() ) { |
|
199 |
sets.add(keyset); |
|
200 |
} |
|
201 |
} |
|
194 | 202 |
} |
195 | 203 |
if( sets.isEmpty() ) { |
196 | 204 |
return UnmodifiableBasicSet.EMPTY_UNMODIFIABLEBASICSET; |
Also available in: Unified diff