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

Details

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

    Description

      @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>.

      Attachments

        Activity

          People

            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

            Dates

              Created:
              Updated:
              Resolved: