db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r890220 - in /db/derby/code/trunk/java/engine/org/apache/derby/iapi: types/SqlXmlUtil.java util/StringUtil.java
Date Mon, 14 Dec 2009 08:30:00 GMT
Author: kristwaa
Date: Mon Dec 14 08:29:59 2009
New Revision: 890220

URL: http://svn.apache.org/viewvc?rev=890220&view=rev
Log:
DERBY-4473: [patch] remove some allocated but unused objects
Removed the allocation of a StringWriter and a StringBuffer object.

Patch contributed by Dave Brosius (dbrosius at mebigfatguy dot com).

Patch file: ds.diff


Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/StringUtil.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java?rev=890220&r1=890219&r2=890220&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java Mon Dec 14
08:29:59 2009
@@ -680,8 +680,6 @@
      */
     private void loadSerializer() throws java.io.IOException
     {
-        java.io.StringWriter sWriter = new java.io.StringWriter();
-
         // Set serialization properties.
         Properties props = OutputProperties.getDefaultMethodProperties("xml");
 

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/StringUtil.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/StringUtil.java?rev=890220&r1=890219&r2=890220&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/StringUtil.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/StringUtil.java Mon Dec 14
08:29:59 2009
@@ -531,7 +531,6 @@
 	 * @param depth indentation level the string is to be printed at (0,1,2..)
 	 */
 	public static String ensureIndent(String formatted, int depth) {
-		StringBuffer buf = new StringBuffer();
 		StringBuffer indent = new StringBuffer();
 
 		while (depth-- > 0) {



Mime
View raw message