mirror of
https://github.com/schwabe/ics-openvpn.git
synced 2024-09-20 03:52:27 +02:00
Remove reflection.
--HG-- branch : ovpn3
This commit is contained in:
parent
06e132493b
commit
76355e501a
@ -342,24 +342,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
|
||||
}
|
||||
|
||||
private OpenVPNMangement instantiateOpenVPN3Core() {
|
||||
//new OpenVPNThreadv3(this,mProfile);
|
||||
try {
|
||||
Class cl = Class.forName("Lde/blinkt/openvpn/OpenVPNThreadv3;");
|
||||
return (OpenVPNMangement) cl.getConstructor(OpenVpnService.class,VpnProfile.class).newInstance(this,mProfile);
|
||||
} catch (IllegalArgumentException e) {
|
||||
e.printStackTrace();
|
||||
} catch (InstantiationException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IllegalAccessException e) {
|
||||
e.printStackTrace();
|
||||
} catch (InvocationTargetException e) {
|
||||
e.printStackTrace();
|
||||
} catch (NoSuchMethodException e) {
|
||||
e.printStackTrace();
|
||||
} catch (ClassNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
return new OpenVPNThreadv3(this,mProfile);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user