File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
src/main/java/org/javawebstack/validator Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 1616 </repositories >
1717
1818 <dependencies >
19- <dependency >
20- <groupId >com.google.code.gson</groupId >
21- <artifactId >gson</artifactId >
22- <version >2.8.6</version >
23- </dependency >
2419 <dependency >
2520 <groupId >org.javawebstack</groupId >
2621 <artifactId >AbstractData</artifactId >
Original file line number Diff line number Diff line change 11package org .javawebstack .validator ;
22
3- import com .google .gson .Gson ;
4- import com .google .gson .JsonArray ;
53import com .google .gson .annotations .SerializedName ;
64import org .javawebstack .abstractdata .AbstractArray ;
75import org .javawebstack .abstractdata .AbstractElement ;
@@ -85,7 +83,7 @@ public static ValidationRule makeRule(String source) {
8583 source = spl [0 ];
8684 String s = spl [1 ];
8785 s = s .substring (0 , s .length () - 1 );
88- AbstractArray array = AbstractArray .fromJson (new Gson (). fromJson ( "[" + s + "]" , JsonArray . class ) );
86+ AbstractArray array = AbstractElement .fromJson ("[" + s + "]" ). array ( );
8987 if (array .stream ().filter (e -> e .isPrimitive ()).count () == array .size ()) {
9088 params = new String [array .size ()];
9189 for (int i = 0 ; i < params .length ; i ++)
You can’t perform that action at this time.
0 commit comments