CPD Results

The following document contains the results of PMD's CPD 4.2.2.

Duplications

File Line
org/dozer/MappingProcessor.java 657
org/dozer/MappingProcessor.java 715
      if (RelationshipType.NON_CUMULATIVE.equals(fieldMap.getRelationshipType())
              && result.contains(destValue)) {
        int index = result.indexOf(destValue);
        // perform an update if complex type - can't map strings
        Object obj = result.get(index);
        // make sure it is not a String
        if (!obj.getClass().isAssignableFrom(String.class)) {
          map(null, srcValue, obj, false, null);
          mappedElements.add(obj);
        }
      } else {
        result.add(destValue);
        mappedElements.add(destValue);
      }

    }

    // If remove orphans - we only want to keep the objects we've mapped from the src collection
    if (fieldMap.isRemoveOrphans()) {