@@ -1599,39 +1599,17 @@ private static String quoteChar(char ch) {
15991599}
16001600}
16011601
1602- private static final Method getExtendsClause , getEndPosition , storeEnd ;
1602+ private static final Method getExtendsClause , getEndPosition ;
16031603
16041604static {
16051605getExtendsClause = getMethod (JCClassDecl .class , "getExtendsClause" , new Class <?>[0 ]);
16061606
16071607if (getJavaCompilerVersion () < 8 ) {
16081608getEndPosition = getMethod (DiagnosticPosition .class , "getEndPosition" , java .util .Map .class );
1609- storeEnd = getMethod (java .util .Map .class , "put" , Object .class , Object .class );
16101609} else {
16111610getEndPosition = getMethod (DiagnosticPosition .class , "getEndPosition" , "com.sun.tools.javac.tree.EndPosTable" );
1612- Method storeEndMethodTemp ;
1613- Class <?> endPosTable ;
1614- try {
1615- endPosTable = Class .forName ("com.sun.tools.javac.tree.EndPosTable" );
1616- } catch (ClassNotFoundException ex ) {
1617- throw sneakyThrow (ex );
1618- }
1619- try {
1620- storeEndMethodTemp = Permit .getMethod (endPosTable , "storeEnd" , JCTree .class , int .class );
1621- } catch (NoSuchMethodException e ) {
1622- try {
1623- endPosTable = Class .forName ("com.sun.tools.javac.parser.JavacParser$AbstractEndPosTable" );
1624- storeEndMethodTemp = Permit .getMethod (endPosTable , "storeEnd" , JCTree .class , int .class );
1625- } catch (NoSuchMethodException ex ) {
1626- throw sneakyThrow (ex );
1627- } catch (ClassNotFoundException ex ) {
1628- throw sneakyThrow (ex );
1629- }
1630- }
1631- storeEnd = storeEndMethodTemp ;
16321611}
16331612Permit .setAccessible (getEndPosition );
1634- Permit .setAccessible (storeEnd );
16351613}
16361614
16371615private static Method getMethod (Class <?> clazz , String name , Class <?>... paramTypes ) {
0 commit comments