chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1676694 [2/2] - in /chemistry/opencmis/trunk: chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/ chemistry-opencmis-android/chemistry-opencmis-android-clien...
Date Wed, 29 Apr 2015 09:02:54 GMT
Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ConnectionErrorDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ConnectionErrorDialog.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ConnectionErrorDialog.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ConnectionErrorDialog.java
Wed Apr 29 09:02:50 2015
@@ -77,7 +77,7 @@ public class ConnectionErrorDialog exten
 
         setLayout(new BorderLayout());
 
-        StringBuilder hint = new StringBuilder();
+        StringBuilder hint = new StringBuilder(1024);
         hint.append("<h2><font color=\"red\">Exception: <em>" + exception.getClass().getSimpleName()
                 + "</em></font><br>" + exception.getMessage() + "</h2>");
         if (exception.getCause() != null) {
@@ -134,9 +134,9 @@ public class ConnectionErrorDialog exten
             return "The CMIS Workbench could connect to the server but the provided URL is
not a CMIS endpoint URL."
                     + "<br>Check your URL and proxy settings." + getProxyConfig();
         } else if (exception instanceof CmisUnauthorizedException) {
-            return "The provide credentials are invalid.<br>Check your credentials.";
+            return "The provided credentials are invalid.<br>Check your credentials.";
         } else if (exception instanceof CmisPermissionDeniedException) {
-            return "The provide credentials are invalid or the user has no permission to
connect."
+            return "The provided credentials are invalid or the user has no permission to
connect."
                     + "<br>Check your credentials.";
         } else if (exception instanceof CmisProxyAuthenticationException) {
             return "The proxy server requires valid credentials.<br>Check the session
parameters "
@@ -198,7 +198,7 @@ public class ConnectionErrorDialog exten
     }
 
     private String getProxyConfig() {
-        StringBuilder sb = new StringBuilder();
+        StringBuilder sb = new StringBuilder(256);
 
         sb.append("<br><br><hr><br><em>Current proxy settings:</em><br><br>");
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
Wed Apr 29 09:02:50 2015
@@ -101,7 +101,7 @@ public class ExpertLoginTab extends Abst
     public void setSessionParameters(Map<String, String> parameters) {
         configs.setSelectedIndex(0);
 
-        StringBuilder sb = new StringBuilder();
+        StringBuilder sb = new StringBuilder(128);
         for (Map.Entry<String, String> parameter : parameters.entrySet()) {
             sb.append(parameter.getKey());
             sb.append('=');

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/InfoDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/InfoDialog.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/InfoDialog.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/InfoDialog.java
Wed Apr 29 09:02:50 2015
@@ -70,7 +70,7 @@ public class InfoDialog extends JDialog
 
         add(topPanel);
 
-        StringBuilder readme = new StringBuilder();
+        StringBuilder readme = new StringBuilder(1024);
 
         readme.append(loadText("/META-INF/README-cmis-workbench.txt", "CMIS Workbench"));
         readme.append("\n---------------------------------------------------------\n");
@@ -112,7 +112,7 @@ public class InfoDialog extends JDialog
         InputStream stream = getClass().getResourceAsStream(file);
         if (stream != null) {
             try {
-                return IOUtils.readAllLines(stream);
+                return IOUtils.readAllLines(stream, 10000);
             } catch (IOException e) {
                 return defaultText;
             }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
Wed Apr 29 09:02:50 2015
@@ -278,7 +278,8 @@ public class PropertyEditorFrame extends
                     + propDef.getCardinality().value()
                     + " value)"
                     + (propDef.getDescription() != null ? "<br>"
-                            + ClientHelper.encodeHtml(new StringBuilder(), propDef.getDescription())
: ""));
+                            + ClientHelper.encodeHtml(new StringBuilder(propDef.getDescription().length()
+ 16),
+                                    propDef.getDescription()) : ""));
             add(titlePanel);
 
             JPanel namePanel = new JPanel();

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ProxyDetector.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ProxyDetector.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ProxyDetector.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ProxyDetector.java
Wed Apr 29 09:02:50 2015
@@ -467,7 +467,7 @@ public class ProxyDetector {
         }
 
         public String toJavaConfigString() {
-            StringBuilder sb = new StringBuilder();
+            StringBuilder sb = new StringBuilder(128);
 
             if (httpProxyHost != null) {
                 sb.append("-D" + HTTP_PROXY_HOST + "=" + httpProxyHost + " -D" + HTTP_PROXY_PORT
+ "=" + httpProxyPort);
@@ -546,7 +546,7 @@ public class ProxyDetector {
 
         @Override
         public String toString() {
-            StringBuilder sb = new StringBuilder();
+            StringBuilder sb = new StringBuilder(128);
 
             if (httpProxyHost != null) {
                 sb.append("HTTP proxy: " + httpProxyHost + ":" + httpProxyPort);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
Wed Apr 29 09:02:50 2015
@@ -454,7 +454,7 @@ public class QueryFrame extends JFrame {
 
             final List<?> values = model.getMultiValueAt(rowIndex, columnIndex);
             if (values != null) {
-                StringBuilder sb = new StringBuilder();
+                StringBuilder sb = new StringBuilder(128);
 
                 for (Object value : values) {
                     if (sb.length() == 0) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java
Wed Apr 29 09:02:50 2015
@@ -117,7 +117,7 @@ public class RepositoryInfoFrame extends
             addLine("Principal id anyone:").setText(repInfo.getPrincipalIdAnyone());
             addYesNoLabel("Changes incomplete:").setValue(is(repInfo.getChangesIncomplete()));
 
-            StringBuilder sb = new StringBuilder();
+            StringBuilder sb = new StringBuilder(64);
             if (repInfo.getChangesOnType() != null) {
                 for (BaseTypeId bt : repInfo.getChangesOnType()) {
                     appendToString(sb, bt.value());
@@ -147,7 +147,7 @@ public class RepositoryInfoFrame extends
                 addLine("Changes:").setText(str(cap.getChangesCapability()));
                 addLine("ACLs:").setText(str(cap.getAclCapability()));
 
-                sb = new StringBuilder();
+                sb = new StringBuilder(128);
                 if (cap.getNewTypeSettableAttributes() != null) {
                     if (Boolean.TRUE.equals(cap.getNewTypeSettableAttributes().canSetId()))
{
                         appendToString(sb, "id");

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
Wed Apr 29 09:02:50 2015
@@ -623,9 +623,11 @@ public class TckDialog {
                 status.put(tr.getStatus(), x + 1);
             }
 
-            StringBuilder sb = new StringBuilder("<html>");
+            StringBuilder sb = new StringBuilder(128);
             int x;
 
+            sb.append("<html>");
+            
             x = status.get(CmisTestResultStatus.INFO);
             if (x > 0) {
                 sb.append("<font color='#000000'>[Info: " + x + "]</font>  ");

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
Wed Apr 29 09:02:50 2015
@@ -133,7 +133,7 @@ public class TypeSplitPane extends JSpli
                 policyLabel.setValue(is(type.isControllablePolicy()));
 
                 if (type.getTypeMutability() != null) {
-                    StringBuilder sb = new StringBuilder();
+                    StringBuilder sb = new StringBuilder(64);
 
                     if (Boolean.TRUE.equals(type.getTypeMutability().canCreate())) {
                         sb.append("create");

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
Wed Apr 29 09:02:50 2015
@@ -428,7 +428,7 @@ public class TypesFrame extends JFrame {
     }
 
     private boolean checkTypeDefinition(TypeDefinition type) {
-        StringBuilder sb = new StringBuilder();
+        StringBuilder sb = new StringBuilder(128);
 
         List<ValidationError> typeResult = TypeUtils.validateTypeDefinition(type);
 

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=1676694&r1=1676693&r2=1676694&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
Wed Apr 29 09:02:50 2015
@@ -76,8 +76,9 @@ public class DeleteTreePanel extends Act
                 (UnfileObject) unfileObjectsBox.getSelectedItem(), continueOnFailureBox.isSelected());
 
         if (ids != null && !ids.isEmpty()) {
-            StringBuilder sb = new StringBuilder(
-                    "Delete tree failed! At least the following objects could not be deleted:\n");
+            StringBuilder sb = new StringBuilder(128);
+
+            sb.append("Delete tree failed! At least the following objects could not be deleted:\n");
 
             for (String id : ids) {
                 sb.append('\n');

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.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/ClientSession.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java
Wed Apr 29 09:02:50 2015
@@ -285,7 +285,7 @@ public class ClientSession {
         if (!sessionParameters.containsKey(FOLDER_PREFIX + ClientOperationContext.FILTER))
{
             ObjectType type = session.getTypeDefinition(BaseTypeId.CMIS_DOCUMENT.value());
 
-            StringBuilder filter = new StringBuilder();
+            StringBuilder filter = new StringBuilder(128);
             for (String propId : FOLDER_PROPERTY_SET) {
                 PropertyDefinition<?> propDef = type.getPropertyDefinitions().get(propId);
                 if (propDef != null) {
@@ -313,7 +313,7 @@ public class ClientSession {
         if (!sessionParameters.containsKey(VERSION_PREFIX + ClientOperationContext.FILTER))
{
             ObjectType type = session.getTypeDefinition(BaseTypeId.CMIS_DOCUMENT.value());
 
-            StringBuilder filter = new StringBuilder();
+            StringBuilder filter = new StringBuilder(128);
             for (String propId : VERSION_PROPERTY_SET) {
                 PropertyDefinition<?> propDef = type.getPropertyDefinitions().get(propId);
                 if (propDef != null) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.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/CollectionRenderer.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.java
Wed Apr 29 09:02:50 2015
@@ -74,7 +74,10 @@ public class CollectionRenderer extends
         }
 
         // build string
-        StringBuilder sb = new StringBuilder("<html>");
+        StringBuilder sb = new StringBuilder(128);
+
+        sb.append("<html>");
+
         for (Object o : col) {
             sb.append("<span>"); // workaround for a bug in Swing
             if (o == null) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/IdRenderer.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/IdRenderer.java?rev=1676694&r1=1676693&r2=1676694&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/IdRenderer.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/IdRenderer.java
Wed Apr 29 09:02:50 2015
@@ -46,7 +46,8 @@ public class IdRenderer extends DefaultT
         String text = "";
         if (value instanceof ObjectId) {
             if (((ObjectId) value).getId() != null) {
-                StringBuilder sb = new StringBuilder("<html><u>");
+                StringBuilder sb = new StringBuilder(128);
+                sb.append("<html><u>");
                 ClientHelper.encodeHtml(sb, ((ObjectId) value).getId());
                 sb.append("</u></html>");
                 text = sb.toString();



Mime
View raw message