File tree Expand file tree Collapse file tree
src/main/java/org/sputnikdev/bluetooth/gattparser/spec Expand file tree Collapse file tree Original file line number Diff line number Diff line change 167167 <dependency >
168168 <groupId >com.thoughtworks.xstream</groupId >
169169 <artifactId >xstream</artifactId >
170- <version >1.4.7 </version >
170+ <version >1.4.19 </version >
171171 </dependency >
172172 <dependency >
173173 <groupId >com.google.code.gson</groupId >
Original file line number Diff line number Diff line change 2929import org .slf4j .LoggerFactory ;
3030
3131import java .io .File ;
32- import java .io .FilenameFilter ;
3332import java .io .IOException ;
3433import java .io .InputStreamReader ;
3534import java .lang .reflect .Type ;
3635import java .net .MalformedURLException ;
37- import java .net .URISyntaxException ;
3836import java .net .URL ;
3937import java .util .ArrayList ;
4038import java .util .Collection ;
4442import java .util .Iterator ;
4543import java .util .List ;
4644import java .util .Map ;
47- import java .util .Scanner ;
4845import java .util .Set ;
4946import java .util .stream .Collectors ;
5047
@@ -397,6 +394,8 @@ private Characteristic getCharacteristic(URL file) {
397394 private <T > T getSpec (URL file ) {
398395 try {
399396 XStream xstream = new XStream (new DomDriver ());
397+ xstream .allowTypesByWildcard (
398+ new String []{getClass ().getPackage ().getName () + ".*" });
400399 xstream .autodetectAnnotations (true );
401400 xstream .processAnnotations (Bit .class );
402401 xstream .processAnnotations (BitField .class );
You can’t perform that action at this time.
0 commit comments