From ed0e9a439d8ffd1f5ac3407c273ecd34df513c54 Mon Sep 17 00:00:00 2001 From: shrverma Date: Wed, 26 Jul 2023 13:08:53 +0000 Subject: [PATCH] Fix class not found error --- .../main/java/io/cdap/directives/transformation/UrlDecode.java | 2 +- .../main/java/io/cdap/directives/transformation/UrlEncode.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wrangler-core/src/main/java/io/cdap/directives/transformation/UrlDecode.java b/wrangler-core/src/main/java/io/cdap/directives/transformation/UrlDecode.java index d7ef6003e..98ca135cd 100644 --- a/wrangler-core/src/main/java/io/cdap/directives/transformation/UrlDecode.java +++ b/wrangler-core/src/main/java/io/cdap/directives/transformation/UrlDecode.java @@ -117,7 +117,7 @@ public Relation transform(RelationalTranformContext relationalTranformContext, } return relation.setColumn( column, expressionFactory.get().compile( - String.format("reflect('java.net.url.Decoder', 'decode', %s, 'utf-8')", column))); + String.format("reflect('java.net.URLDecoder', 'decode', %s, 'utf-8')", column))); } } diff --git a/wrangler-core/src/main/java/io/cdap/directives/transformation/UrlEncode.java b/wrangler-core/src/main/java/io/cdap/directives/transformation/UrlEncode.java index dcdd27e49..b693672f4 100644 --- a/wrangler-core/src/main/java/io/cdap/directives/transformation/UrlEncode.java +++ b/wrangler-core/src/main/java/io/cdap/directives/transformation/UrlEncode.java @@ -117,6 +117,6 @@ public Relation transform(RelationalTranformContext relationalTranformContext, } return relation.setColumn( column, expressionFactory.get().compile( - String.format("reflect('java.net.url.Encoder', 'encode', %s, 'utf-8')", column))); + String.format("reflect('java.net.URLEncoder', 'encode', %s, 'utf-8')", column))); } }