private void readMapFile(String mapFile) { CodeChickenCorePlugin.logger.debug("Adding Accesstransformer map: " + mapFile); try { Method parentMapFile = AccessTransformer.class.getDeclaredMethod("readMapFile", String.class); parentMapFile.setAccessible(true); parentMapFile.invoke(this, mapFile); } catch(Exception e) { throw new RuntimeException(e); } }
private void readMapFile(String mapFile) { try { Method parentMapFile = AccessTransformer.class.getDeclaredMethod("readMapFile", String.class); parentMapFile.setAccessible(true); parentMapFile.invoke(this, mapFile); } catch(Exception e) { e.printStackTrace(); throw new RuntimeException(e); } }
private void readMapFile(final String mapFile) { try { final Method parentMapFile = AccessTransformer.class.getDeclaredMethod("readMapFile", String.class); parentMapFile.setAccessible(true); parentMapFile.invoke(this, mapFile); } catch (final Exception e) { throw new RuntimeException(e); } }