camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r731849 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/StringSource.java
Date Tue, 06 Jan 2009 06:49:07 GMT
Author: davsclaus
Date: Mon Jan  5 22:49:07 2009
New Revision: 731849

URL: http://svn.apache.org/viewvc?rev=731849&view=rev
Log:
Polished code so its immutable (no setters)

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/StringSource.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/StringSource.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/StringSource.java?rev=731849&r1=731848&r2=731849&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/StringSource.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/StringSource.java
Mon Jan  5 22:49:07 2009
@@ -32,7 +32,7 @@
 
 /**
  * A helper class which provides a JAXP {@link javax.xml.transform.Source Source} from a
String which can
- * be read as many times as required.
+ * be read as many times as required. Encoding is default UTF-8.
  *
  * @version $Revision$
  */
@@ -50,6 +50,7 @@
 
     public StringSource(String text, String systemId) {
         this(text);
+        ObjectHelper.notNull(systemId, "systemId");
         setSystemId(systemId);
     }
 



Mime
View raw message