Author: glandais Date: 2008-04-14 08:53:41 +0000 (Mon, 14 Apr 2008) New Revision: 1469 Modified: trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/metadata/MetaData.java Log: Version is now immuable Modified: trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/metadata/MetaData.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/metadata/MetaData.java 2008-04-14 08:53:19 UTC (rev 1468) +++ trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/metadata/MetaData.java 2008-04-14 08:53:41 UTC (rev 1469) @@ -28,6 +28,7 @@ /** * The Class MetaData. Used by IS to store relative data of a LoggableElement. SimExplorer should not set properties of * this class. + * * @author Code Lutin, Landais Gabriel, Chemit Tony */ @org.codelutin.i18n.I18nable @@ -135,11 +136,7 @@ * @param version the version to set */ public void setVersion(Version version) { - if (version == null) { - this.version = null; - } else { - this.version = Version.valueOf(version.toString()); - } + this.version = version; } /** @@ -211,11 +208,7 @@ * @param parentVersion the parentVersionVersion to set */ public void setParentVersion(Version parentVersion) { - if (parentVersion == null) { - this.parentVersion = null; - } else { - this.parentVersion = Version.valueOf(parentVersion.toString()); - } + this.parentVersion = parentVersion; } /**
participants (1)
-
glandais@users.labs.libre-entreprise.org