tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlmonte...@apache.org
Subject [tomee] branch master updated: Fix checkstyle
Date Mon, 14 Jan 2019 12:04:40 GMT
This is an automated email from the ASF dual-hosted git repository.

jlmonteiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d92501  Fix checkstyle
0d92501 is described below

commit 0d92501dbf875b5018c3030074a6aa4652f84f40
Author: Jean-Louis Monteiro <jeanouii@gmail.com>
AuthorDate: Mon Jan 14 13:04:37 2019 +0100

    Fix checkstyle
---
 .../apache/tomee/catalina/routing/SimpleRouter.java  | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/routing/SimpleRouter.java
b/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/routing/SimpleRouter.java
index d69f2e3..56ecba0 100644
--- a/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/routing/SimpleRouter.java
+++ b/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/routing/SimpleRouter.java
@@ -48,8 +48,8 @@ import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
 public class SimpleRouter {
-	
-	private static Logger logger = Logger.getInstance(LogCategory.OPENEJB, SimpleRouter.class);
+
+    private static Logger logger = Logger.getInstance(LogCategory.OPENEJB, SimpleRouter.class);
 
     private static final Pattern PATTERN = Pattern.compile("(.*)->(.*)");
 
@@ -72,19 +72,19 @@ public class SimpleRouter {
             while ((line = reader.readLine()) != null) {
                 line = line.trim();
                 if (!line.isEmpty() && !line.startsWith("#")) {
-                   parseRoute(line);
+                    parseRoute(line);
                 }
             }
         } catch (final IOException e) {
             throw new RouterException("can't read " + url.toExternalForm());
         } finally {
-        	if(reader != null) {
-        		try {
-					reader.close();
-				} catch (IOException e) {
-					logger.warning(e.getMessage(), e);
-				}
-        	}
+            if (reader != null) {
+                try {
+                    reader.close();
+                } catch (IOException e) {
+                    logger.warning(e.getMessage(), e);
+                }
+            }
         }
         return this;
     }


Mime
View raw message