From 76355e501a513a66329b062cf3bebd9eff81c0ba Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sun, 10 Feb 2013 12:16:39 +0100 Subject: Remove reflection. --HG-- branch : ovpn3 --- src/de/blinkt/openvpn/OpenVpnService.java | 19 +------------------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3