mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-1897 remove unnecessary try/catch
X-SVN-Rev: 8951
This commit is contained in:
parent
31e8a2b206
commit
4444dd19e0
1 changed files with 8 additions and 8 deletions
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/search/SearchTest.java,v $
|
||||
* $Date: 2002/06/22 00:14:13 $
|
||||
* $Revision: 1.15 $
|
||||
* $Date: 2002/06/26 18:33:52 $
|
||||
* $Revision: 1.16 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
|
@ -176,14 +176,14 @@ public class SearchTest extends TestFmwk {
|
|||
CharacterIterator text = new StringCharacterIterator(
|
||||
"string spring string");
|
||||
String pattern = "string";
|
||||
try {
|
||||
//try { // Try/catch disabled; there's no way Exception can be thrown
|
||||
StringSearch strsrch = new StringSearch(pattern, text, encoll, brk);
|
||||
strsrch = new StringSearch(pattern, text, encoll);
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
errln("Error getting instance");
|
||||
}
|
||||
//}
|
||||
//catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// errln("Error getting instance");
|
||||
//}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue