Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-260

Cloner should be able to deep clone entities in Map<String, List<PlanningEntity>> too

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0.Beta1
    • 6.1.0.CR2
    • optaplanner-core
    • None

      @PlanningEntity
      public class TestdataEntityCollectionPropertyEntity extends TestdataObject {
      
          private List<TestdataEntityCollectionPropertyEntity> entityList;
          private Set<TestdataEntityCollectionPropertyEntity> entitySet;
          private Map<String, TestdataEntityCollectionPropertyEntity> stringToEntityMap;
          private Map<TestdataEntityCollectionPropertyEntity, String> entityToStringMap;
          private Map<String, List<TestdataEntityCollectionPropertyEntity>> stringToEntityListMap;
      
      

      The last field, stringToEntityListMap, should also clone the map values List<TestdataEntityCollectionPropertyEntity>.

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: