jdk/src/share/classes/java/util/regex/Pattern.java
changeset 13158 f628cbfcbfa0
parent 12675 3b7d71495649
child 13554 ad737436c54a
equal deleted inserted replaced
13157:2141a68fb2a7 13158:f628cbfcbfa0
  2024             }
  2024             }
  2025             next();
  2025             next();
  2026         }
  2026         }
  2027     }
  2027     }
  2028 
  2028 
       
  2029     @SuppressWarnings("fallthrough")
  2029     /**
  2030     /**
  2030      * Parsing of sequences between alternations.
  2031      * Parsing of sequences between alternations.
  2031      */
  2032      */
  2032     private Node sequence(Node end) {
  2033     private Node sequence(Node end) {
  2033         Node head = null;
  2034         Node head = null;
  2138         tail.next = end;
  2139         tail.next = end;
  2139         root = tail;      //double return
  2140         root = tail;      //double return
  2140         return head;
  2141         return head;
  2141     }
  2142     }
  2142 
  2143 
       
  2144     @SuppressWarnings("fallthrough")
  2143     /**
  2145     /**
  2144      * Parse and add a new Single or Slice.
  2146      * Parse and add a new Single or Slice.
  2145      */
  2147      */
  2146     private Node atom() {
  2148     private Node atom() {
  2147         int first = 0;
  2149         int first = 0;
  2976         if (!anonymous && groupIndex < 10)
  2978         if (!anonymous && groupIndex < 10)
  2977             groupNodes[groupIndex] = head;
  2979             groupNodes[groupIndex] = head;
  2978         return head;
  2980         return head;
  2979     }
  2981     }
  2980 
  2982 
       
  2983     @SuppressWarnings("fallthrough")
  2981     /**
  2984     /**
  2982      * Parses inlined match flags and set them appropriately.
  2985      * Parses inlined match flags and set them appropriately.
  2983      */
  2986      */
  2984     private void addFlag() {
  2987     private void addFlag() {
  2985         int ch = peek();
  2988         int ch = peek();
  3017             }
  3020             }
  3018             ch = next();
  3021             ch = next();
  3019         }
  3022         }
  3020     }
  3023     }
  3021 
  3024 
       
  3025     @SuppressWarnings("fallthrough")
  3022     /**
  3026     /**
  3023      * Parses the second part of inlined match flags and turns off
  3027      * Parses the second part of inlined match flags and turns off
  3024      * flags appropriately.
  3028      * flags appropriately.
  3025      */
  3029      */
  3026     private void subFlag() {
  3030     private void subFlag() {