[HepData-svn] r1785 - trunk/hepdata-model/src/main/java/cedar/hepdata/model

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Apr 17 12:56:50 BST 2014


Author: watt
Date: Thu Apr 17 12:56:50 2014
New Revision: 1785

Log:
Set 'doi = null' if string equals 'null'

Modified:
   trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java

Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java
==============================================================================
--- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java	Wed Apr 16 15:12:34 2014	(r1784)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java	Thu Apr 17 12:56:50 2014	(r1785)
@@ -582,6 +582,7 @@
     }
     /** Set paper doi */
     public Paper setDOI(String doi) {
+	if (doi.equals("null")) { doi = null; }
         _doi = doi;
         return this;
     }


More information about the HepData-svn mailing list