You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ne...@apache.org on 2014/10/05 01:34:43 UTC

git commit: KAFKA-1057 Trim whitespaces from user specified configs; reviewed by Neha Narkhede

Repository: kafka
Updated Branches:
  refs/heads/trunk e05704c40 -> 9cb59f319


KAFKA-1057 Trim whitespaces from user specified configs; reviewed by Neha Narkhede


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/9cb59f31
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/9cb59f31
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/9cb59f31

Branch: refs/heads/trunk
Commit: 9cb59f319e26a5ad0b2646f9718bdb90deb21656
Parents: e05704c
Author: Manikumar Reddy <ma...@gmail.com>
Authored: Sat Oct 4 16:34:16 2014 -0700
Committer: Neha Narkhede <ne...@gmail.com>
Committed: Sat Oct 4 16:34:34 2014 -0700

----------------------------------------------------------------------
 core/src/main/scala/kafka/utils/VerifiableProperties.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/9cb59f31/core/src/main/scala/kafka/utils/VerifiableProperties.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/utils/VerifiableProperties.scala b/core/src/main/scala/kafka/utils/VerifiableProperties.scala
index 2f95d54..2ffc7f4 100644
--- a/core/src/main/scala/kafka/utils/VerifiableProperties.scala
+++ b/core/src/main/scala/kafka/utils/VerifiableProperties.scala
@@ -35,7 +35,7 @@ class VerifiableProperties(val props: Properties) extends Logging {
   def getProperty(name: String): String = {
     val value = props.getProperty(name)
     referenceSet.add(name)
-    return value
+    if(value == null) value else value.trim()
   }
 
   /**