Class TryWithResourcesJavac11Filter.Matcher

  • Enclosing class:
    TryWithResourcesJavac11Filter

    private class TryWithResourcesJavac11Filter.Matcher
    extends AbstractMatcher
         r = ...;
         try {
             ...
         } body-only-finally {
             if (r != null)
                 r.close();
         } catch (Throwable primaryExc) {
             if (r != null)
                 try {
                     r.close();
                 } catch (Throwable t) {
                     primaryExc.addSuppressed(t);
                 }
             throw primaryExc;
         }
     
    null check for resource is omitted when it is initialized using new
    • Field Detail

      • withNullCheck

        private boolean withNullCheck
      • expectedOwner

        private java.lang.String expectedOwner
    • Constructor Detail

      • Matcher

        private Matcher()
    • Method Detail

      • match

        void match​(org.objectweb.asm.tree.AbstractInsnNode start,
                   IFilterOutput output,
                   boolean withNullCheck)
      • nextIsJavacClose

        private boolean nextIsJavacClose()
      • nextIsClose

        private void nextIsClose()