refactored clone to cloneObj

This commit is contained in:
Francesco Mangiacrapa 2022-12-06 16:21:09 +01:00
parent 6aaa8e4b4d
commit fb3790b2ef
3 changed files with 13 additions and 6 deletions

View File

@ -16,12 +16,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>

View File

@ -0,0 +1,2 @@
disabled=06target
eclipse.preferences.version=1

View File

@ -1,5 +1,6 @@
package org.gcube.application.geoportaldatamapper.shared;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@ -16,7 +17,7 @@ import org.gcube.portlets.widgets.mpformbuilder.shared.metadata.MetadataFieldWra
*
* Nov 23, 2022
*/
public class MetaDataProfileBeanExt extends MetaDataProfileBean implements Cloneable {
public class MetaDataProfileBeanExt extends MetaDataProfileBean implements Serializable {
/**
*
@ -28,7 +29,7 @@ public class MetaDataProfileBeanExt extends MetaDataProfileBean implements Clone
* Instantiates a new meta data profile bean ext.
*/
public MetaDataProfileBeanExt() {
super();
}
/**
@ -64,8 +65,12 @@ public class MetaDataProfileBeanExt extends MetaDataProfileBean implements Clone
this.listFileset = listFileset;
}
@Override
protected MetaDataProfileBeanExt clone() throws CloneNotSupportedException {
/**
* Clone obj.
*
* @return the meta data profile bean ext
*/
public MetaDataProfileBeanExt cloneObj() {
MetaDataProfileBeanExt clonedMDPBE = new MetaDataProfileBeanExt();
clonedMDPBE.setTitle(this.getTitle());