commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adri...@apache.org
Subject svn commit: r922892 - in /commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert: MiscConverters.java NetConverters.java
Date Sun, 14 Mar 2010 16:49:32 GMT
Author: adrianc
Date: Sun Mar 14 16:49:31 2010
New Revision: 922892

URL: http://svn.apache.org/viewvc?rev=922892&view=rev
Log:
Removed some OFBiz-specific code.

Modified:
    commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java
    commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/NetConverters.java

Modified: commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java
URL: http://svn.apache.org/viewvc/commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java?rev=922892&r1=922891&r2=922892&view=diff
==============================================================================
--- commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java
(original)
+++ commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java
Sun Mar 14 16:49:31 2010
@@ -34,20 +34,6 @@ import java.util.regex.Pattern;
 /** Miscellaneous Converter classes. */
 public class MiscConverters implements ConverterLoader {
 
-    public static class BlobToBlob extends AbstractConverter<Blob, Blob> {
-        public BlobToBlob() {
-            super(Blob.class, Blob.class);
-        }
-
-        public Blob convert(Blob obj) throws ConversionException {
-            try {
-                return new javax.sql.rowset.serial.SerialBlob(obj.getBytes(1, (int) obj.length()));
-            } catch (Exception e) {
-                throw new ConversionException(e);
-            }
-        }
-    }
-
     public static class BlobToByteArray extends AbstractConverter<Blob, byte[]> {
         public BlobToByteArray() {
             super(Blob.class, byte[].class);

Modified: commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/NetConverters.java
URL: http://svn.apache.org/viewvc/commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/NetConverters.java?rev=922892&r1=922891&r2=922892&view=diff
==============================================================================
--- commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/NetConverters.java
(original)
+++ commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/NetConverters.java
Sun Mar 14 16:49:31 2010
@@ -27,7 +27,6 @@ import java.net.URL;
 
 /** Net Converter classes. */
 public class NetConverters implements ConverterLoader {
-    public static final String module = NetConverters.class.getName();
 
     public static class StringToInetAddress extends AbstractConverter<String, InetAddress>
{
         public StringToInetAddress() {



Mime
View raw message