Changeset 7776
- Timestamp:
- Feb 18, 2020, 9:50:54 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/util/AnnotationUtil.java
r7767 r7776 222 222 private Set<Integer> loadExtracts() 223 223 { 224 Set<Integer> extractsInChain ;224 Set<Integer> extractsInChain = Collections.emptySet(); 225 225 switch (item.getType()) 226 226 { … … 229 229 case RAWBIOASSAY: 230 230 { 231 extractsInChain = new HashSet< Integer>();231 extractsInChain = new HashSet<>(); 232 232 if (chain != null) extractsInChain.addAll(chain.extractsInChain); 233 233 if (extract != null) extractsInChain.add(extract.getId()); 234 234 break; 235 235 } 236 case EXTRACT: 237 { 238 if (chain != null && !chain.extractsInChain.contains(item.getId())) 239 { 240 extractsInChain = new HashSet<>(chain.extractsInChain); 241 } 242 break; 243 } 236 244 default: 237 { 238 extractsInChain = Collections.emptySet(); 239 } 245 {} 240 246 } 241 247 return extractsInChain; … … 356 362 cmap.put(wrapper, parents); 357 363 } 364 365 @Override 366 public String toString() 367 { 368 return cmap.toString(); 369 } 370 358 371 359 372 }
Note: See TracChangeset
for help on using the changeset viewer.