You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by am...@apache.org on 2015/04/23 12:08:07 UTC

incubator-lens git commit: LENS-521 : Fix findbug errors in lens-regression (Arshad Matin via amareshwari)

Repository: incubator-lens
Updated Branches:
  refs/heads/master 6008ffb1c -> a35b4b08f


LENS-521 : Fix findbug errors in lens-regression (Arshad Matin via amareshwari)


Project: http://git-wip-us.apache.org/repos/asf/incubator-lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-lens/commit/a35b4b08
Tree: http://git-wip-us.apache.org/repos/asf/incubator-lens/tree/a35b4b08
Diff: http://git-wip-us.apache.org/repos/asf/incubator-lens/diff/a35b4b08

Branch: refs/heads/master
Commit: a35b4b08f7647d1f3cecb009f86f844cc92bc3f0
Parents: 6008ffb
Author: Arshad Matin <ar...@gmail.com>
Authored: Thu Apr 23 15:37:54 2015 +0530
Committer: Amareshwari Sriramadasu <am...@apache.org>
Committed: Thu Apr 23 15:37:54 2015 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/lens/regression/util/Util.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/a35b4b08/lens-regression/src/main/java/org/apache/lens/regression/util/Util.java
----------------------------------------------------------------------
diff --git a/lens-regression/src/main/java/org/apache/lens/regression/util/Util.java b/lens-regression/src/main/java/org/apache/lens/regression/util/Util.java
index 2d03af6..6bd7314 100644
--- a/lens-regression/src/main/java/org/apache/lens/regression/util/Util.java
+++ b/lens-regression/src/main/java/org/apache/lens/regression/util/Util.java
@@ -39,7 +39,7 @@ public class Util {
   private static final String PROPERTY_FILE = "lens.properties";
   private static Properties properties;
 
-  public static Properties getPropertiesObj(String filename) {
+  public static synchronized Properties getPropertiesObj(String filename) {
     try {
       if (properties == null) {
         properties = new Properties();
@@ -107,7 +107,7 @@ public class Util {
 
   public static void writeFile(String fileName, String str) {
     try {
-      PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(fileName)));
+      PrintWriter out = new PrintWriter(fileName, "UTF-8");
       out.println(str);
       out.close();
     } catch (IOException e) {