Import GNU Classpath (20121202).

2012-12-19  Matthias Klose  <doko@ubuntu.com>

        Import GNU Classpath (20121202).

        * Regenerate class and header files.
        * Regenerate auto* files.
        * sources.am, gcj/javaprims.h: Regenerate.
        * gnu/java/nio/FileLockImpl.java (close): New override.

From-SVN: r194618
This commit is contained in:
Matthias Klose
2012-12-19 17:03:15 +00:00
parent baeb2e1647
commit a1906e8bbf
454 changed files with 5224 additions and 2925 deletions
+23 -1
View File
@@ -102,6 +102,28 @@ public final class Matcher implements MatchResult
anchoringBounds = 0;
}
/**
* Changes the pattern used by the {@link Matcher} to
* the one specified. Existing match information is lost,
* but the input and the matcher's position within it is
* retained.
*
* @param newPattern the new pattern to use.
* @return this matcher.
* @throws IllegalArgumentException if {@code newPattern} is
* {@code null}.
* @since 1.5
*/
public Matcher usePattern(Pattern newPattern)
{
if (newPattern == null)
throw new IllegalArgumentException("The new pattern was null.");
pattern = newPattern;
match = null;
return this;
}
/**
* @param sb The target string buffer
* @param replacement The replacement string
@@ -620,7 +642,7 @@ public final class Matcher implements MatchResult
*
* @param s the string to literalize.
* @return the literalized string.
* @since 1.5
* @since 1.5
*/
public static String quoteReplacement(String s)
{