From 6e0c20ed4dcdd7087b3c6adec312ac5796274ba1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 29 Apr 2019 22:34:49 -0700 Subject: Fix code style issues --- src/main/java/org/traccar/helper/Log.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/traccar/helper') diff --git a/src/main/java/org/traccar/helper/Log.java b/src/main/java/org/traccar/helper/Log.java index 607a0585f..358f11a31 100644 --- a/src/main/java/org/traccar/helper/Log.java +++ b/src/main/java/org/traccar/helper/Log.java @@ -211,9 +211,10 @@ public final class Log { } public static String exceptionStack(Throwable exception) { - Throwable cause; - while (null != (cause = exception.getCause()) && (exception != cause) ) { + Throwable cause = exception.getCause(); + while (cause != null && exception != cause) { exception = cause; + cause = cause.getCause(); } StringBuilder s = new StringBuilder(); -- cgit v1.2.3