File tree 2 files changed +4
-0
lines changed
brut.apktool/apktool-lib/src/main/java/brut/androlib/meta 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 19
19
import org .yaml .snakeyaml .constructor .AbstractConstruct ;
20
20
import org .yaml .snakeyaml .constructor .Constructor ;
21
21
import org .yaml .snakeyaml .error .YAMLException ;
22
+ import org .yaml .snakeyaml .LoaderOptions ;
22
23
import org .yaml .snakeyaml .nodes .Node ;
23
24
import org .yaml .snakeyaml .nodes .ScalarNode ;
24
25
import org .yaml .snakeyaml .nodes .Tag ;
@@ -29,6 +30,7 @@ public class ClassSafeConstructor extends Constructor {
29
30
protected final List <Class <?>> allowableClasses = new ArrayList <>();
30
31
31
32
public ClassSafeConstructor () {
33
+ super (new LoaderOptions ());
32
34
this .yamlConstructors .put (Tag .STR , new ConstructStringEx ());
33
35
34
36
this .allowableClasses .add (MetaInfo .class );
Original file line number Diff line number Diff line change 16
16
*/
17
17
package brut .androlib .meta ;
18
18
19
+ import org .yaml .snakeyaml .DumperOptions ;
19
20
import org .yaml .snakeyaml .nodes .Node ;
20
21
import org .yaml .snakeyaml .representer .Representer ;
21
22
22
23
public class EscapedStringRepresenter extends Representer {
23
24
public EscapedStringRepresenter () {
25
+ super (new DumperOptions ());
24
26
RepresentStringEx representStringEx = new RepresentStringEx ();
25
27
multiRepresenters .put (String .class , representStringEx );
26
28
representers .put (String .class , representStringEx );
You can’t perform that action at this time.
0 commit comments