Project

General

Profile

« Previous | Next » 

Revision 54e0164b

Added by Andreas Müller about 2 years ago

ref #8127 reenable null value removal in Util class

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/hibernate/HHH_9751_Util.java
18 18
 * Helper class to remove null values from collections which are left over artifacts due to
19 19
 * https://hibernate.atlassian.net/browse/HHH-9751
20 20
 *
21
 * Note by AM: HHH-9751 is closed as duplicate in the meanwhile, the remaining issue is
22
 *             https://hibernate.atlassian.net/browse/HHH-9979
23
 *
21 24
 * @author a.kohlbecker
22 25
 * @since Jun 13, 2016
23 26
 */
......
30 33
     * @return the number of null values removed from the collection
31 34
     */
32 35
    static public int removeAllNull(Collection<?> collection) {
33
        if (true) {
34
            return 0;
35
        }
36 36
        int cnt = 0;
37 37
        try {
38 38

  
cdmlib-model/src/test/java/eu/etaxonomy/cdm/hibernate/HHH_9751_UtilTest.java
11 11
import java.util.ArrayList;
12 12

  
13 13
import org.junit.Assert;
14
import org.junit.Ignore;
15 14
import org.junit.Test;
16 15

  
17 16
/**
18 17
 * @author a.kohlbecker
19 18
 * @since Jun 13, 2016
20 19
 */
21
@Ignore //not needed anymore since upgrade to hibernate 5.2 (#10067) and fixing #8127
22 20
// TODO fully remove once the correct functionality is tested intensively
23 21
public class HHH_9751_UtilTest extends Assert {
24 22

  

Also available in: Unified diff