From 9f30cd935f262c4130ee5c5a7e9f3b56a02513f5 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Fri, 6 Mar 2015 03:45:03 +0000 Subject: [PATCH] ICU-11265 T not A for generic Appendable type name X-SVN-Rev: 37153 --- .../classes/core/src/com/ibm/icu/text/UnicodeSet.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java b/icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java index 1570a7a5bd2..87374f2ba9f 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java @@ -635,7 +635,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable, Compa * Append the toPattern() representation of a * string to the given Appendable. */ - private static A _appendToPat(A buf, String s, boolean escapeUnprintable) { + private static T _appendToPat(T buf, String s, boolean escapeUnprintable) { int cp; for (int i = 0; i < s.length(); i += Character.charCount(cp)) { cp = s.codePointAt(i); @@ -648,7 +648,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable, Compa * Append the toPattern() representation of a * character to the given Appendable. */ - private static A _appendToPat(A buf, int c, boolean escapeUnprintable) { + private static T _appendToPat(T buf, int c, boolean escapeUnprintable) { try { if (escapeUnprintable && Utility.isUnprintable(c)) { // Use hex escape notation (uxxxx or Uxxxxxxxx) for anything @@ -704,7 +704,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable, Compa * a cleaned version of the string passed to applyPattern(), if there * is one. Otherwise it will be generated. */ - private A _toPattern(A result, + private T _toPattern(T result, boolean escapeUnprintable) { if (pat == null) { return appendNewPattern(result, escapeUnprintable, true); @@ -768,8 +768,8 @@ public class UnicodeSet extends UnicodeFilter implements Iterable, Compa return appendNewPattern(result, escapeUnprintable, includeStrings); } - private A appendNewPattern( - A result, boolean escapeUnprintable, boolean includeStrings) { + private T appendNewPattern( + T result, boolean escapeUnprintable, boolean includeStrings) { try { result.append('['); -- 2.40.0