chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1775724 - in /chemistry/opencmis/trunk: chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/...
Date Thu, 22 Dec 2016 20:15:36 GMT
Author: fmui
Date: Thu Dec 22 20:15:36 2016
New Revision: 1775724

URL: http://svn.apache.org/viewvc?rev=1775724&view=rev
Log:
some tiny optimizations

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
    chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/impl/TypeDefinitionCacheImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisCookieStoreImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/DateTimeHelper.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyDefinition.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChoiceImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/CmisExtensionElementImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamHashImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ExtensionFeatureImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FailedToDeleteDataImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectDataImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderContainerImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderListImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectListImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionMappingDataImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractConverterTest.java
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/CmisRepositoryContextListener.java
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/AbstractBrowserServiceCall.java
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/AttributeCallContextHandler.java
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/BasicAuthCallContextHandler.java
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/UserPrincipalCallContextHandler.java
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientModel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java Thu Dec 22 20:15:36 2016
@@ -250,7 +250,7 @@ public class AtomEntryWriter {
     }
 
     private static String getUpdated() {
-        return DateTimeHelper.formatXmlDateTime(new GregorianCalendar(TimeZone.getTimeZone("GMT")));
+        return DateTimeHelper.formatXmlDateTime(new GregorianCalendar(DateTimeHelper.GMT));
     }
 
     private static void writeTag(XmlSerializer writer, String tagNameSpace, String tagName, String text)

Modified: chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ObjectServiceImpl.java Thu Dec 22 20:15:36 2016
@@ -541,7 +541,7 @@ public class ObjectServiceImpl extends A
 
                 // prepare result
                 FailedToDeleteDataImpl result = new FailedToDeleteDataImpl();
-                List<String> ids = new ArrayList<String>();
+                List<String> ids = new ArrayList<String>(feed.getEntries().size());
                 result.setIds(ids);
 
                 // get the children ids

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/impl/TypeDefinitionCacheImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/impl/TypeDefinitionCacheImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/impl/TypeDefinitionCacheImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/impl/TypeDefinitionCacheImpl.java Thu Dec 22 20:15:36 2016
@@ -68,7 +68,7 @@ public class TypeDefinitionCacheImpl imp
 
     @Override
     public void put(String repositoryId, TypeDefinition typeDefinition) {
-        if (typeDefinition == null || typeDefinition.getId() == null) {
+        if (repositoryId == null || typeDefinition == null || typeDefinition.getId() == null) {
             return;
         }
 
@@ -77,6 +77,10 @@ public class TypeDefinitionCacheImpl imp
 
     @Override
     public TypeDefinition get(String repositoryId, String typeId) {
+        if(repositoryId == null || typeId == null) {
+            throw new IllegalArgumentException("Invalid repository ot type ID!");
+        }
+        
         return (TypeDefinition) cache.get(repositoryId, typeId);
     }
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java Thu Dec 22 20:15:36 2016
@@ -46,6 +46,7 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
 import org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException;
 import org.apache.chemistry.opencmis.commons.impl.Base64;
+import org.apache.chemistry.opencmis.commons.impl.DateTimeHelper;
 import org.apache.chemistry.opencmis.commons.impl.XMLConstants;
 import org.apache.chemistry.opencmis.commons.impl.XMLConverter;
 import org.apache.chemistry.opencmis.commons.impl.XMLUtils;
@@ -161,7 +162,7 @@ public class AtomEntryWriter {
 
         // atom:updated
         XMLUtils.write(writer, XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, TAG_ATOM_UPDATED,
-                new GregorianCalendar(TimeZone.getTimeZone("GMT")));
+                new GregorianCalendar(DateTimeHelper.GMT));
 
         // content
         if (stream != null) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisCookieStoreImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisCookieStoreImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisCookieStoreImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisCookieStoreImpl.java Thu Dec 22 20:15:36 2016
@@ -49,7 +49,7 @@ public class CmisCookieStoreImpl impleme
 
     public CmisCookieStoreImpl(final int maxUrls) {
         this.maxUrls = maxUrls;
-        storeList = new ArrayDeque<CmisHttpCookie>(maxUrls);
+        storeList = new ArrayDeque<CmisHttpCookie>(64);
     }
 
     public void add(final URI uri, final CmisHttpCookie cookie) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java Thu Dec 22 20:15:36 2016
@@ -491,7 +491,7 @@ public abstract class AbstractCmisObject
             throw new IllegalArgumentException("New name must not be empty!");
         }
 
-        Map<String, Object> prop = new HashMap<String, Object>();
+        Map<String, Object> prop = new HashMap<String, Object>(2);
         prop.put(PropertyIds.NAME, newName);
 
         return updateProperties(prop);
@@ -503,7 +503,7 @@ public abstract class AbstractCmisObject
             throw new IllegalArgumentException("New name must not be empty!");
         }
 
-        Map<String, Object> prop = new HashMap<String, Object>();
+        Map<String, Object> prop = new HashMap<String, Object>(2);
         prop.put(PropertyIds.NAME, newName);
 
         return updateProperties(prop, refresh);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/OperationContextImpl.java Thu Dec 22 20:15:36 2016
@@ -378,16 +378,24 @@ public class OperationContextImpl implem
 
         StringBuilder sb = new StringBuilder(128);
 
-        sb.append(includeAcls ? '1' : '0');
-        sb.append(includeAllowableActions ? '1' : '0');
-        sb.append(includePolicies ? '1' : '0');
-        sb.append('|');
-        sb.append(filter == null ? "" : getFilterString());
-        sb.append('|');
-        sb.append(includeRelationships == null ? "" : includeRelationships.value());
+        int bits = 0;
+        if (includeAcls) {
+            bits += 1;
+        }
+        if (includeAllowableActions) {
+            bits += 2;
+        }
+        if (includePolicies) {
+            bits += 4;
+        }
 
-        sb.append('|');
-        sb.append(renditionFilter == null ? "" : getRenditionFilterString());
+        sb.append((char) ('0' + bits));
+        sb.append(includeRelationships == null ? '-' : (char) ('a' + includeRelationships.ordinal()));
+        sb.append(filter == null ? "" : getFilterString());
+        if (renditionFilter != null && renditionFilter.size() > 0) {
+            sb.append('\\');
+            sb.append(getRenditionFilterString());
+        }
 
         cacheKey = sb.toString();
     }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java Thu Dec 22 20:15:36 2016
@@ -41,6 +41,7 @@ import org.apache.chemistry.opencmis.cli
 import org.apache.chemistry.opencmis.client.api.Session;
 import org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition;
 import org.apache.chemistry.opencmis.commons.enums.BaseTypeId;
+import org.apache.chemistry.opencmis.commons.impl.DateTimeHelper;
 import org.apache.chemistry.opencmis.commons.impl.StringListBuilder;
 
 /**
@@ -671,7 +672,7 @@ public class QueryStatementImpl implemen
 
     private static String convert(Date date) {
         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
-        sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
+        sdf.setTimeZone(DateTimeHelper.GMT);
 
         return "'" + sdf.format(date) + "'";
     }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java Thu Dec 22 20:15:36 2016
@@ -96,6 +96,7 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.enums.ChangeType;
 import org.apache.chemistry.opencmis.commons.enums.Updatability;
 import org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException;
+import org.apache.chemistry.opencmis.commons.impl.DateTimeHelper;
 import org.apache.chemistry.opencmis.commons.impl.dataobjects.ContentStreamImpl;
 import org.apache.chemistry.opencmis.commons.impl.dataobjects.PartialContentStreamImpl;
 import org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory;
@@ -617,6 +618,7 @@ public class ObjectFactoryImpl implement
                     List<GregorianCalendar> list = new ArrayList<GregorianCalendar>(values.size());
                     for (Object d : values) {
                         GregorianCalendar cal = new GregorianCalendar();
+                        cal.setTimeZone(DateTimeHelper.GMT);
                         cal.setTime((Date) d);
                         list.add(cal);
                     }
@@ -707,7 +709,7 @@ public class ObjectFactoryImpl implement
         }
 
         if ((objectData.getProperties() != null) && (objectData.getProperties().getPropertyList() != null)) {
-            properties = new HashMap<String, List<?>>();
+            properties = new HashMap<String, List<?>>(objectData.getProperties().getPropertyList().size());
 
             for (PropertyData<?> property : objectData.getProperties().getPropertyList()) {
                 properties.put(property.getId(), property.getValues());

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/DateTimeHelper.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/DateTimeHelper.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/DateTimeHelper.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/DateTimeHelper.java Thu Dec 22 20:15:36 2016
@@ -30,7 +30,7 @@ import java.util.regex.Pattern;
 
 public final class DateTimeHelper {
 
-    private static final TimeZone GMT = TimeZone.getTimeZone("GMT");
+    public static final TimeZone GMT = TimeZone.getTimeZone("GMT");
 
     private static final Pattern XML_DATETIME = Pattern
             .compile("(\\d{4,9})-([01]\\d)-([0-3]\\d)T([0-2]\\d):([0-5]\\d):([0-5]\\d)(\\.(\\d+))?(([+-][0-2]\\d:[0-5]\\d)|Z)?");

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java Thu Dec 22 20:15:36 2016
@@ -651,7 +651,7 @@ public final class JSONConverter {
 
                     Object perms = permissionMap.get(JSON_ACLCAP_MAPPING_PERMISSION);
                     if (perms instanceof List) {
-                        List<String> permList = new ArrayList<String>();
+                        List<String> permList = new ArrayList<String>(3);
 
                         for (Object perm : (List<Object>) perms) {
                             if (perm != null) {
@@ -1962,7 +1962,7 @@ public final class JSONConverter {
 
                     List<Object> jsonPermissions = getList(entry.get(JSON_ACE_PERMISSIONS));
                     if (jsonPermissions != null) {
-                        List<String> permissions = new ArrayList<String>();
+                        List<String> permissions = new ArrayList<String>(5);
                         for (Object perm : jsonPermissions) {
                             if (perm != null) {
                                 permissions.add(perm.toString());
@@ -2382,7 +2382,7 @@ public final class JSONConverter {
             result = new ArrayList<GregorianCalendar>(source.size());
             for (Object obj : source) {
                 if (obj instanceof Number) {
-                    GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
+                    GregorianCalendar cal = new GregorianCalendar(DateTimeHelper.GMT);
                     cal.setTimeInMillis(((Number) obj).longValue());
                     result.add(cal);
                 } else if (obj instanceof String) {
@@ -2929,7 +2929,7 @@ public final class JSONConverter {
             throw new CmisRuntimeException("Invalid Decimal value!");
         case DATETIME:
             if (value instanceof Number) {
-                GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
+                GregorianCalendar cal = new GregorianCalendar(DateTimeHelper.GMT);
                 cal.setTimeInMillis(((Number) value).longValue());
                 return cal;
             } else if (value instanceof String) {
@@ -3056,7 +3056,7 @@ public final class JSONConverter {
         Object obj = json.get(key);
 
         if (obj instanceof Number) {
-            GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
+            GregorianCalendar cal = new GregorianCalendar(DateTimeHelper.GMT);
             cal.setTimeInMillis(((Number) obj).longValue());
             return cal;
         } else if (obj instanceof String) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java Thu Dec 22 20:15:36 2016
@@ -30,7 +30,7 @@ public final class MimeTypes {
 
     private static final String OCTET_STREAM = "application/octet-stream";
     private static final MimetypesFileTypeMap TYPE_MAP = new MimetypesFileTypeMap();
-    private static final Map<String, String> MIME2EXT = new HashMap<String, String>();
+    private static final Map<String, String> MIME2EXT = new HashMap<String, String>(180);
 
     private MimeTypes() {
     }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyDefinition.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyDefinition.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyDefinition.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyDefinition.java Thu Dec 22 20:15:36 2016
@@ -135,7 +135,7 @@ public abstract class AbstractPropertyDe
     @Override
     public List<Choice<T>> getChoices() {
         if (choiceList == null) {
-            choiceList = new ArrayList<Choice<T>>();
+            choiceList = new ArrayList<Choice<T>>(0);
         }
 
         return choiceList;
@@ -149,7 +149,7 @@ public abstract class AbstractPropertyDe
     @Override
     public List<T> getDefaultValue() {
         if (defaultValue == null) {
-            defaultValue = new ArrayList<T>();
+            defaultValue = new ArrayList<T>(0);
         }
 
         return defaultValue;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java Thu Dec 22 20:15:36 2016
@@ -68,7 +68,7 @@ public class AccessControlEntryImpl exte
     @Override
     public List<String> getPermissions() {
         if (permissions == null) {
-            permissions = new ArrayList<String>();
+            permissions = new ArrayList<String>(0);
         }
 
         return permissions;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java Thu Dec 22 20:15:36 2016
@@ -51,7 +51,7 @@ public class AccessControlListImpl exten
     @Override
     public List<Ace> getAces() {
         if (aces == null) {
-            aces = new ArrayList<Ace>();
+            aces = new ArrayList<Ace>(0);
         }
 
         return aces;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java Thu Dec 22 20:15:36 2016
@@ -62,7 +62,7 @@ public class AclCapabilitiesDataImpl ext
     @Override
     public Map<String, PermissionMapping> getPermissionMapping() {
         if (permissionMapping == null) {
-            permissionMapping = new HashMap<String, PermissionMapping>();
+            permissionMapping = new HashMap<String, PermissionMapping>(2);
         }
 
         return permissionMapping;
@@ -75,7 +75,7 @@ public class AclCapabilitiesDataImpl ext
     @Override
     public List<PermissionDefinition> getPermissions() {
         if (permissionDefinitionList == null) {
-            permissionDefinitionList = new ArrayList<PermissionDefinition>();
+            permissionDefinitionList = new ArrayList<PermissionDefinition>(0);
         }
 
         return permissionDefinitionList;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChoiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChoiceImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChoiceImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChoiceImpl.java Thu Dec 22 20:15:36 2016
@@ -46,7 +46,7 @@ public class ChoiceImpl<T> implements Ch
     @Override
     public List<T> getValue() {
         if (value == null) {
-            value = new ArrayList<T>();
+            value = new ArrayList<T>(0);
         }
 
         return value;
@@ -57,14 +57,14 @@ public class ChoiceImpl<T> implements Ch
     }
 
     public void setValue(T value) {
-        this.value = new ArrayList<T>();
+        this.value = new ArrayList<T>(1);
         this.value.add(value);
     }
 
     @Override
     public List<Choice<T>> getChoice() {
         if (choice == null) {
-            choice = new ArrayList<Choice<T>>();
+            choice = new ArrayList<Choice<T>>(0);
         }
 
         return choice;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/CmisExtensionElementImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/CmisExtensionElementImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/CmisExtensionElementImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/CmisExtensionElementImpl.java Thu Dec 22 20:15:36 2016
@@ -47,12 +47,12 @@ public class CmisExtensionElementImpl im
         this.name = name;
         this.namespace = namespace;
         this.value = value;
-        children = Collections.emptyList();
+        children = null;
 
         if (attributes != null) {
             this.attributes = Collections.unmodifiableMap(new HashMap<String, String>(attributes));
         } else {
-            this.attributes = Collections.emptyMap();
+            this.attributes = null;
         }
     }
 
@@ -72,13 +72,13 @@ public class CmisExtensionElementImpl im
         if (children != null) {
             this.children = Collections.unmodifiableList(new ArrayList<CmisExtensionElement>(children));
         } else {
-            this.children = Collections.emptyList();
+            this.children = null;
         }
 
         if (attributes != null) {
             this.attributes = Collections.unmodifiableMap(new HashMap<String, String>(attributes));
         } else {
-            this.attributes = Collections.emptyMap();
+            this.attributes = null;
         }
     }
 
@@ -116,11 +116,19 @@ public class CmisExtensionElementImpl im
 
     @Override
     public List<CmisExtensionElement> getChildren() {
+        if (children == null) {
+            return Collections.emptyList();
+        }
+        
         return children;
     }
 
     @Override
     public Map<String, String> getAttributes() {
+        if (attributes == null) {
+            return Collections.emptyMap();
+        }
+
         return attributes;
     }
 
@@ -135,9 +143,13 @@ public class CmisExtensionElementImpl im
             sb.append("  ");
         }
 
-        sb.append((namespace == null ? "" : "{" + namespace + "}") + name + " " + attributes + ": ");
+        sb.append(namespace == null ? "" : "{" + namespace + "}")
+                .append(name)
+                .append(" ")
+                .append(attributes == null ? "[]" : attributes)
+                .append(": ");
 
-        if (children.isEmpty()) {
+        if (children == null || children.isEmpty()) {
             sb.append(value);
             sb.append('\n');
         } else {
@@ -159,7 +171,9 @@ public class CmisExtensionElementImpl im
 
     @Override
     public String toString() {
-        return (namespace == null ? "" : "{" + namespace + "}") + name + " " + attributes + ": "
-                + (children.isEmpty() ? value : children.toString());
+        return (namespace == null ? "" : "{" + namespace + "}")
+                + name + " " 
+                + (attributes == null ? "[]" : attributes) + ": "
+                + (children == null || children.isEmpty() ? value : children.toString());
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamHashImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamHashImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamHashImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamHashImpl.java Thu Dec 22 20:15:36 2016
@@ -195,7 +195,7 @@ public class ContentStreamHashImpl imple
             }
         }
 
-        List<ContentStreamHash> result = new ArrayList<ContentStreamHash>();
+        List<ContentStreamHash> result = new ArrayList<ContentStreamHash>(md.length);
 
         for (int i = 0; i < md.length; i++) {
             result.add(new ContentStreamHashImpl(algorithm[i], md[i].digest()));

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ExtensionFeatureImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ExtensionFeatureImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ExtensionFeatureImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ExtensionFeatureImpl.java Thu Dec 22 20:15:36 2016
@@ -83,7 +83,7 @@ public class ExtensionFeatureImpl extend
     @Override
     public Map<String, String> getFeatureData() {
         if (featureData == null) {
-            featureData = new HashMap<String, String>();
+            featureData = new HashMap<String, String>(2);
         }
 
         return featureData;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FailedToDeleteDataImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FailedToDeleteDataImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FailedToDeleteDataImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FailedToDeleteDataImpl.java Thu Dec 22 20:15:36 2016
@@ -35,7 +35,7 @@ public class FailedToDeleteDataImpl exte
     @Override
     public List<String> getIds() {
         if (ids == null) {
-            ids = new ArrayList<String>();
+            ids = new ArrayList<String>(0);
         }
 
         return ids;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectDataImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectDataImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectDataImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectDataImpl.java Thu Dec 22 20:15:36 2016
@@ -96,7 +96,7 @@ public class ObjectDataImpl extends Abst
     @Override
     public List<ObjectData> getRelationships() {
         if (relationships == null) {
-            relationships = new ArrayList<ObjectData>();
+            relationships = new ArrayList<ObjectData>(0);
         }
 
         return relationships;
@@ -110,7 +110,7 @@ public class ObjectDataImpl extends Abst
     @Override
     public List<RenditionData> getRenditions() {
         if (renditions == null) {
-            renditions = new ArrayList<RenditionData>();
+            renditions = new ArrayList<RenditionData>(0);
         }
 
         return renditions;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderContainerImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderContainerImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderContainerImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderContainerImpl.java Thu Dec 22 20:15:36 2016
@@ -67,7 +67,7 @@ public class ObjectInFolderContainerImpl
     @Override
     public List<ObjectInFolderContainer> getChildren() {
         if (children == null) {
-            children = new ArrayList<ObjectInFolderContainer>();
+            children = new ArrayList<ObjectInFolderContainer>(0);
         }
 
         return children;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderListImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderListImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderListImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderListImpl.java Thu Dec 22 20:15:36 2016
@@ -39,7 +39,7 @@ public class ObjectInFolderListImpl exte
     @Override
     public List<ObjectInFolderData> getObjects() {
         if (objects == null) {
-            objects = new ArrayList<ObjectInFolderData>();
+            objects = new ArrayList<ObjectInFolderData>(0);
         }
 
         return objects;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectListImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectListImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectListImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectListImpl.java Thu Dec 22 20:15:36 2016
@@ -39,7 +39,7 @@ public class ObjectListImpl extends Abst
     @Override
     public List<ObjectData> getObjects() {
         if (objects == null) {
-            objects = new ArrayList<ObjectData>();
+            objects = new ArrayList<ObjectData>(0);
         }
 
         return objects;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionMappingDataImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionMappingDataImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionMappingDataImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionMappingDataImpl.java Thu Dec 22 20:15:36 2016
@@ -45,7 +45,7 @@ public class PermissionMappingDataImpl e
     @Override
     public List<String> getPermissions() {
         if (permissions == null) {
-            permissions = new ArrayList<String>();
+            permissions = new ArrayList<String>(0);
         }
 
         return permissions;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java Thu Dec 22 20:15:36 2016
@@ -36,7 +36,7 @@ public class RelationshipTypeDefinitionI
     @Override
     public List<String> getAllowedSourceTypeIds() {
         if (allowedSourceTypes == null) {
-            allowedSourceTypes = new ArrayList<String>();
+            allowedSourceTypes = new ArrayList<String>(0);
         }
 
         return allowedSourceTypes;
@@ -50,7 +50,7 @@ public class RelationshipTypeDefinitionI
     @Override
     public List<String> getAllowedTargetTypeIds() {
         if (allowedTargetTypes == null) {
-            allowedTargetTypes = new ArrayList<String>();
+            allowedTargetTypes = new ArrayList<String>(0);
         }
 
         return allowedTargetTypes;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java Thu Dec 22 20:15:36 2016
@@ -207,7 +207,7 @@ public class RepositoryInfoImpl extends
     @Override
     public List<BaseTypeId> getChangesOnType() {
         if (changesOnType == null) {
-            changesOnType = new ArrayList<BaseTypeId>();
+            changesOnType = new ArrayList<BaseTypeId>(0);
         }
 
         return changesOnType;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java Thu Dec 22 20:15:36 2016
@@ -39,7 +39,6 @@ public class TypeDefinitionContainerImpl
 
     public TypeDefinitionContainerImpl(TypeDefinition typeDef) {
         type = typeDef;
-        children = new ArrayList<TypeDefinitionContainer>();
     }
 
     @Override
@@ -54,7 +53,7 @@ public class TypeDefinitionContainerImpl
     @Override
     public List<TypeDefinitionContainer> getChildren() {
         if (children == null) {
-            children = new ArrayList<TypeDefinitionContainer>();
+            children = new ArrayList<TypeDefinitionContainer>(0);
         }
 
         return children;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java Thu Dec 22 20:15:36 2016
@@ -1080,7 +1080,7 @@ public abstract class AbstractCmisServic
      */
     private Map<String, ObjectInfo> getObjectInfoMap() {
         if (objectInfoMap == null) {
-            objectInfoMap = new HashMap<String, ObjectInfo>();
+            objectInfoMap = new HashMap<String, ObjectInfo>(2);
         }
 
         return objectInfoMap;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractConverterTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractConverterTest.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractConverterTest.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractConverterTest.java Thu Dec 22 20:15:36 2016
@@ -18,10 +18,6 @@
  */
 package org.apache.chemistry.opencmis.commons.impl.xml;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
 import java.lang.reflect.Method;
 import java.math.BigDecimal;
 import java.math.BigInteger;
@@ -34,7 +30,6 @@ import java.util.Map;
 import java.util.Random;
 import java.util.Set;
 import java.util.TimeZone;
-
 import org.apache.chemistry.opencmis.commons.data.CmisExtensionElement;
 import org.apache.chemistry.opencmis.commons.data.PropertyData;
 import org.apache.chemistry.opencmis.commons.data.PropertyId;
@@ -49,6 +44,9 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyIntegerImpl;
 import org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyStringImpl;
 import org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyUriImpl;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 import org.junit.Before;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/CmisRepositoryContextListener.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/CmisRepositoryContextListener.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/CmisRepositoryContextListener.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/CmisRepositoryContextListener.java Thu Dec 22 20:15:36 2016
@@ -135,7 +135,7 @@ public class CmisRepositoryContextListen
         CmisServiceFactory factory = (CmisServiceFactory) object;
 
         // initialize factory instance
-        Map<String, String> parameters = new HashMap<String, String>();
+        Map<String, String> parameters = new HashMap<String, String>(props.size());
 
         for (Enumeration<?> e = props.propertyNames(); e.hasMoreElements();) {
             String key = (String) e.nextElement();

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/ObjectService.java Thu Dec 22 20:15:36 2016
@@ -48,6 +48,7 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException;
 import org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException;
 import org.apache.chemistry.opencmis.commons.impl.Constants;
+import org.apache.chemistry.opencmis.commons.impl.DateTimeHelper;
 import org.apache.chemistry.opencmis.commons.impl.IOUtils;
 import org.apache.chemistry.opencmis.commons.impl.MimeHelper;
 import org.apache.chemistry.opencmis.commons.impl.ReturnVersion;
@@ -847,7 +848,7 @@ public class ObjectService {
 
             // write basic Atom feed elements
             feed.writeFeedElements(null, null, null, "Bulk Update Properties",
-                    new GregorianCalendar(TimeZone.getTimeZone("GMT")), null,
+                    new GregorianCalendar(DateTimeHelper.GMT), null,
                     (result == null ? null : BigInteger.valueOf(result.size())));
 
             // write links

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/AbstractBrowserServiceCall.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/AbstractBrowserServiceCall.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/AbstractBrowserServiceCall.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/AbstractBrowserServiceCall.java Thu Dec 22 20:15:36 2016
@@ -386,7 +386,7 @@ public abstract class AbstractBrowserSer
                 GregorianCalendar cal;
                 try {
                     long timestamp = Long.parseLong(s);
-                    cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
+                    cal = new GregorianCalendar(DateTimeHelper.GMT);
                     cal.setTimeInMillis(timestamp);
                 } catch (NumberFormatException e) {
                     cal = DateTimeHelper.parseXmlDateTime(s);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/AttributeCallContextHandler.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/AttributeCallContextHandler.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/AttributeCallContextHandler.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/AttributeCallContextHandler.java Thu Dec 22 20:15:36 2016
@@ -58,7 +58,7 @@ public class AttributeCallContextHandler
         Map<String, String> result = null;
 
         if (request.getAttribute(USERNAME_ATTRIBUTE) != null) {
-            result = new HashMap<String, String>();
+            result = new HashMap<String, String>(2);
             result.put(CallContext.USERNAME, request.getAttribute(USERNAME_ATTRIBUTE).toString());
         }
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/BasicAuthCallContextHandler.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/BasicAuthCallContextHandler.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/BasicAuthCallContextHandler.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/BasicAuthCallContextHandler.java Thu Dec 22 20:15:36 2016
@@ -77,7 +77,7 @@ public class BasicAuthCallContextHandler
             }
 
             // extract user and password and add them to map
-            result = new HashMap<String, String>();
+            result = new HashMap<String, String>(2);
             result.put(CallContext.USERNAME, credentials.substring(0, x));
             result.put(CallContext.PASSWORD, credentials.substring(x + 1));
         }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/UserPrincipalCallContextHandler.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/UserPrincipalCallContextHandler.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/UserPrincipalCallContextHandler.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/UserPrincipalCallContextHandler.java Thu Dec 22 20:15:36 2016
@@ -46,7 +46,7 @@ public class UserPrincipalCallContextHan
         Map<String, String> result = null;
 
         if (request.getUserPrincipal() != null) {
-            result = new HashMap<String, String>();
+            result = new HashMap<String, String>(2);
             result.put(CallContext.USERNAME, request.getUserPrincipal().getName());
         }
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java Thu Dec 22 20:15:36 2016
@@ -1252,7 +1252,7 @@ public final class TypeDefinitionFactory
             return null;
         }
 
-        List<Choice<T>> result = new ArrayList<Choice<T>>();
+        List<Choice<T>> result = new ArrayList<Choice<T>>(0);
 
         for (Choice<T> c : source.getChoices()) {
             result.add(copyChoice(c));

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java Thu Dec 22 20:15:36 2016
@@ -75,6 +75,7 @@ public class DeleteTreePanel extends Act
             @Override
             protected void done() {
                 super.done();
+                
                 reload(false);
             }
         };

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientModel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientModel.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientModel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientModel.java Thu Dec 22 20:15:36 2016
@@ -113,7 +113,8 @@ public class ClientModel {
 
     public String getRepositoryName() {
         try {
-            return getRepositoryInfo().getName();
+            String name = getRepositoryInfo().getName();
+            return name == null ? "(no name)" : name;
         } catch (Exception e) {
             return "?";
         }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java?rev=1775724&r1=1775723&r2=1775724&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java Thu Dec 22 20:15:36 2016
@@ -125,8 +125,6 @@ public abstract class ActionPanel extend
     }
 
     protected void reload(final boolean reloadObject) {
-        final ClientModel model = getClientModel();
-
         if (model.getCurrentFolder() != null) {
             LoadObjectWorker worker = new LoadObjectWorker(ActionPanel.this, model, model.getCurrentFolder().getId()) {
                 @Override



Mime
View raw message