0
0
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:
Arne Schwabe 2013-02-10 12:16:39 +01:00
parent 06e132493b
commit 76355e501a

View File

@ -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