From 53256c82683b82d69d72c5535527c99566a3188c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 23 Feb 2019 10:27:06 -0800 Subject: Small improvement --- src/org/traccar/helper/Log.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/helper/Log.java b/src/org/traccar/helper/Log.java index 667f669fe..224a497e8 100644 --- a/src/org/traccar/helper/Log.java +++ b/src/org/traccar/helper/Log.java @@ -243,7 +243,7 @@ public final class Log { s.append("*"); } else { file = element.getFileName(); - s.append(file.substring(0, file.length() - 5)); // remove ".java" + s.append(file, 0, file.length() - 5); // remove ".java" count -= 1; } s.append(":").append(element.getLineNumber()); -- cgit v1.2.3