test_class.declarator: inMemoryDataSetMetadataRepository =
              new InMemoryDataSetMetadataRepository()
test_class.modifier: private
test_class.original_string: private InMemoryDataSetMetadataRepository inMemoryDataSetMetadataRepository =
              new InMemoryDataSetMetadataRepository();
test_class.type: InMemoryDataSetMetadataRepository
test_class.var_name: inMemoryDataSetMetadataRepository
test_class.file: dataprep-dataset/src/test/java/org/talend/dataprep/dataset/store/metadata/memory/InMemoryDataSetMetadataRepositoryTest.java
test_class.identifier: InMemoryDataSetMetadataRepositoryTest
test_case.body: @Test
      public void testResetTransiantOnDatasetMatadataFavorites() {
          TransientTestObject obj = new TransientTestObject();
          inMemoryDataSetMetadataRepository.resetTransientValues(obj);
          // check it has been reset to the default value
          assertTrue(Defaults.defaultValue(boolean.class).equals(obj.zeBoolean));
          assertTrue(Defaults.defaultValue(char.class).equals(obj.zeChar));
          assertTrue(Defaults.defaultValue(byte.class).equals(obj.zeByte));
          assertTrue(Defaults.defaultValue(short.class).equals(obj.zeShort));
          assertTrue(Defaults.defaultValue(int.class).equals(obj.zeInt));
          assertTrue(Defaults.defaultValue(float.class).equals(obj.zeFloat));
          assertTrue(Defaults.defaultValue(double.class).equals(obj.zeDouble));
          assertTrue(obj.zeObject == Defaults.defaultValue(Object.class));// cause it is null
          assertTrue(Defaults.defaultValue(boolean.class).equals(TransientTestObject.zeStaticBoolean));
      }
test_case.class_method_signature: InMemoryDataSetMetadataRepositoryTest.testResetTransiantOnDatasetMatadataFavorites()
test_case.full_signature: @Test public void testResetTransiantOnDatasetMatadataFavorites()
test_case.identifier: testResetTransiantOnDatasetMatadataFavorites
test_case.invocations: resetTransientValues assertTrue equals defaultValue assertTrue equals defaultValue assertTrue equals defaultValue assertTrue equals defaultValue assertTrue equals defaultValue assertTrue equals defaultValue assertTrue equals defaultValue assertTrue defaultValue assertTrue equals defaultValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResetTransiantOnDatasetMatadataFavorites()
focal_class.declarator: LOG = LoggerFactory.getLogger(InMemoryDataSetMetadataRepository.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(InMemoryDataSetMetadataRepository.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: metadataBuilder
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private DataSetMetadataBuilder metadataBuilder;
focal_class.type: DataSetMetadataBuilder
focal_class.var_name: metadataBuilder
focal_class.declarator: store = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, DataSetMetadata> store = new ConcurrentHashMap<>();
focal_class.type: Map<String, DataSetMetadata>
focal_class.var_name: store
focal_class.file: dataprep-dataset/src/main/java/org/talend/dataprep/dataset/store/metadata/memory/InMemoryDataSetMetadataRepository.java
focal_class.identifier: InMemoryDataSetMetadataRepository
focal_class.class_method_signature: InMemoryDataSetMetadataRepository.source()
focal_class.full_signature: @Override public Stream<DataSetMetadata> source()
focal_class.identifier: source
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Stream<DataSetMetadata>
focal_class.signature: Stream<DataSetMetadata> source()
focal_class.class_method_signature: InMemoryDataSetMetadataRepository.save(DataSetMetadata dataSetMetadata)
focal_class.full_signature: @Override public void save(DataSetMetadata dataSetMetadata)
focal_class.identifier: save
focal_class.modifiers: @Override public
focal_class.parameters: (DataSetMetadata dataSetMetadata)
focal_class.return: void
focal_class.signature: void save(DataSetMetadata dataSetMetadata)
focal_class.class_method_signature: InMemoryDataSetMetadataRepository.resetTransientValues(Object zeObject)
focal_class.full_signature:  void resetTransientValues(Object zeObject)
focal_class.identifier: resetTransientValues
focal_class.parameters: (Object zeObject)
focal_class.return: void
focal_class.signature: void resetTransientValues(Object zeObject)
focal_class.class_method_signature: InMemoryDataSetMetadataRepository.get(String id)
focal_class.full_signature: @Override public DataSetMetadata get(String id)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (String id)
focal_class.return: DataSetMetadata
focal_class.signature: DataSetMetadata get(String id)
focal_class.class_method_signature: InMemoryDataSetMetadataRepository.remove(String id)
focal_class.full_signature: @Override public void remove(String id)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void remove(String id)
focal_class.superclass: extends ObjectDataSetMetadataRepository
focal_method.body: void resetTransientValues(Object zeObject) {
          if (zeObject != null) {
              Field[] fields = zeObject.getClass().getDeclaredFields();
              for (Field field : fields) {
                  // ignore jacoco injected field
                  if (Modifier.isTransient(field.getModifiers()) && !field.getName().endsWith("jacocoData")) { //$NON-NLS-1$
                      Object defaultValue = Defaults.defaultValue(field.getType());
                      field.setAccessible(true);
                      try {
                          field.set(zeObject, defaultValue);
                      } catch (IllegalArgumentException | IllegalAccessException e) {
                          LOG.error("failed to reset the transient field [" + field + "] before storage", e);
                      }
                  }
              }
          } // else null so do nothing
      }
focal_method.class_method_signature: InMemoryDataSetMetadataRepository.resetTransientValues(Object zeObject)
focal_method.full_signature:  void resetTransientValues(Object zeObject)
focal_method.identifier: resetTransientValues
focal_method.invocations: getDeclaredFields getClass isTransient getModifiers endsWith getName defaultValue getType setAccessible set error
focal_method.parameters: (Object zeObject)
focal_method.return: void
focal_method.signature: void resetTransientValues(Object zeObject)