< prev index next >

src/share/classes/java/util/regex/Matcher.java

Print this page
rev 1388 : 6600143: Remove another 450 unnecessary casts
Reviewed-by: alanb, iris, lmalvent, bristor, peterjones, darcy, wetmore

@@ -247,11 +247,11 @@
      */
     public MatchResult toMatchResult() {
         Matcher result = new Matcher(this.parentPattern, text.toString());
         result.first = this.first;
         result.last = this.last;
-        result.groups = (int[])(this.groups.clone());
+        result.groups = this.groups.clone();
         return result;
     }
 
     /**
       * Changes the <tt>Pattern</tt> that this <tt>Matcher</tt> uses to
< prev index next >