diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-02-10 12:16:39 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-02-10 12:16:39 +0100 |
commit | 76355e501a513a66329b062cf3bebd9eff81c0ba (patch) | |
tree | 0e57f2ff1efb9e2a3b09ad07b23fc488202442be /src/de/blinkt/openvpn | |
parent | 06e132493b6877078f0130cffb6c39a0d3ca2bf2 (diff) |
Remove reflection.
--HG--
branch : ovpn3
Diffstat (limited to 'src/de/blinkt/openvpn')
-rw-r--r-- | src/de/blinkt/openvpn/OpenVpnService.java | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnService.java b/src/de/blinkt/openvpn/OpenVpnService.java index 34f612c3..c2768347 100644 --- a/src/de/blinkt/openvpn/OpenVpnService.java +++ b/src/de/blinkt/openvpn/OpenVpnService.java @@ -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 |