chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1235873 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java
Date Wed, 25 Jan 2012 18:52:54 GMT
Author: jens
Date: Wed Jan 25 18:52:54 2012
New Revision: 1235873

URL: http://svn.apache.org/viewvc?rev=1235873&view=rev
Log:
always deliver a product version in repository info

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java?rev=1235873&r1=1235872&r2=1235873&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java
Wed Jan 25 18:52:54 2012
@@ -91,8 +91,9 @@ public class StoreManagerImpl implements
             OPENCMIS_VERSION = "?";
             OPENCMIS_SERVER = "Apache-Chemistry-OpenCMIS-InMemory";
         } else {
-            OPENCMIS_VERSION = p.getImplementationVersion();
-            OPENCMIS_SERVER = "Apache-Chemistry-OpenCMIS-InMemory/" + (OPENCMIS_VERSION ==
null ? "?" : OPENCMIS_VERSION);
+            String ver = p.getImplementationVersion();
+            OPENCMIS_VERSION = (null == ver ? "?" : ver);
+            OPENCMIS_SERVER = "Apache-Chemistry-OpenCMIS-InMemory/" + OPENCMIS_VERSION;
         }
     }
 



Mime
View raw message