Skip to content

Commit 2340e79

Browse files
authored
Merge pull request #42 from NehaSony/main
[Fix] [BUG] Can't set JSON engine in JsonParser. JsonParser.withJsonEngine made public for external usage.
2 parents adfbb17 + 489ecb7 commit 2340e79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.mastercard.developer</groupId>
88
<artifactId>client-encryption</artifactId>
9-
<version>1.7.2-SNAPSHOT</version>
9+
<version>1.7.3-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111
<description>Library for Mastercard API compliant payload encryption/decryption</description>
1212
<url>https://github.com/Mastercard/client-encryption-java</url>

src/main/java/com/mastercard/developer/encryption/JsonParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import java.util.Collection;
1111
import java.util.Collections;
1212

13-
final class JsonParser {
13+
public final class JsonParser {
1414

1515
private JsonParser() {
1616
// Nothing to do here
@@ -24,7 +24,7 @@ private JsonParser() {
2424
*
2525
* @param jsonEngine A {@link com.mastercard.developer.json.JsonEngine} instance
2626
*/
27-
static synchronized Configuration withJsonEngine(JsonEngine jsonEngine) {
27+
public static synchronized Configuration withJsonEngine(JsonEngine jsonEngine) {
2828
JsonParser.jsonEngine = jsonEngine;
2929
JsonParser.jsonPathConfig = new Configuration.ConfigurationBuilder()
3030
.jsonProvider(jsonEngine.getJsonProvider())

0 commit comments

Comments
 (0)