kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nehanarkh...@apache.org
Subject git commit: KAFKA-1057 Trim whitespaces from user specified configs; reviewed by Neha Narkhede
Date Sat, 04 Oct 2014 23:34:43 GMT
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 <manikumar.reddy@gmail.com>
Authored: Sat Oct 4 16:34:16 2014 -0700
Committer: Neha Narkhede <neha.narkhede@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()
   }
 
   /**


Mime
View raw message