aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authormemesaregood1 <63505425+memesaregood1@users.noreply.github.com>2023-06-15 21:09:50 +0300
committerGitHub <noreply@github.com>2023-06-15 21:09:50 +0300
commit2275e7d4e739eab9e24eab66d068cf0afafc5bb8 (patch)
tree0017d2caa8b1b9dd4a67661969680f562c5eee1b /src/main
parent57414098b8295e91d9c2436cf4be18c0ef430fd3 (diff)
downloadtrackermap-server-2275e7d4e739eab9e24eab66d068cf0afafc5bb8.tar.gz
trackermap-server-2275e7d4e739eab9e24eab66d068cf0afafc5bb8.tar.bz2
trackermap-server-2275e7d4e739eab9e24eab66d068cf0afafc5bb8.zip
Update src/main/java/org/traccar/handler/ComputedAttributesHandler.java
Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/handler/ComputedAttributesHandler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/handler/ComputedAttributesHandler.java b/src/main/java/org/traccar/handler/ComputedAttributesHandler.java
index 29d9bcdcb..8ad4e41e4 100644
--- a/src/main/java/org/traccar/handler/ComputedAttributesHandler.java
+++ b/src/main/java/org/traccar/handler/ComputedAttributesHandler.java
@@ -66,9 +66,9 @@ public class ComputedAttributesHandler extends BaseDataHandler {
JexlSandbox sandbox = new JexlSandbox(false);
sandbox.allow("com.safe.Functions");
sandbox.allow(Math.class.getName());
- List.of(Double.class, Float.class, Integer.class,
- Long.class, Short.class, Character.class,
- Boolean.class, String.class, Byte.class)
+ List.of(
+ Double.class, Float.class, Integer.class, Long.class, Short.class,
+ Character.class, Boolean.class, String.class, Byte.class)
.forEach((type) -> sandbox.allow(type.getName()));
features = new JexlFeatures()
.localVar(config.getBoolean(Keys.PROCESSING_COMPUTED_ATTRIBUTES_LOCAL_VARIABLES))