Switching from printStackTrace to UnhandledException as per LANG-450
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@688011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2d575a7359
commit
8b718d2470
|
@ -162,8 +162,7 @@ public class StringEscapeUtils {
|
||||||
return writer.toString();
|
return writer.toString();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
// this should never ever happen while writing to a StringWriter
|
// this should never ever happen while writing to a StringWriter
|
||||||
ioe.printStackTrace();
|
throw new UnhandledException(ioe);
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,8 +285,7 @@ public class StringEscapeUtils {
|
||||||
return writer.toString();
|
return writer.toString();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
// this should never ever happen while writing to a StringWriter
|
// this should never ever happen while writing to a StringWriter
|
||||||
ioe.printStackTrace();
|
throw new UnhandledException(ioe);
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -461,11 +459,9 @@ public class StringEscapeUtils {
|
||||||
StringWriter writer = new StringWriter ((int)(str.length() * 1.5));
|
StringWriter writer = new StringWriter ((int)(str.length() * 1.5));
|
||||||
escapeHtml(writer, str);
|
escapeHtml(writer, str);
|
||||||
return writer.toString();
|
return writer.toString();
|
||||||
} catch (IOException e) {
|
} catch (IOException ioe) {
|
||||||
//assert false;
|
|
||||||
//should be impossible
|
//should be impossible
|
||||||
e.printStackTrace();
|
throw new UnhandledException(ioe);
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -533,11 +529,9 @@ public class StringEscapeUtils {
|
||||||
StringWriter writer = new StringWriter ((int)(str.length() * 1.5));
|
StringWriter writer = new StringWriter ((int)(str.length() * 1.5));
|
||||||
unescapeHtml(writer, str);
|
unescapeHtml(writer, str);
|
||||||
return writer.toString();
|
return writer.toString();
|
||||||
} catch (IOException e) {
|
} catch (IOException ioe) {
|
||||||
//assert false;
|
|
||||||
//should be impossible
|
//should be impossible
|
||||||
e.printStackTrace();
|
throw new UnhandledException(ioe);
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -733,8 +727,7 @@ public class StringEscapeUtils {
|
||||||
return writer.toString();
|
return writer.toString();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
// this should never ever happen while writing to a StringWriter
|
// this should never ever happen while writing to a StringWriter
|
||||||
ioe.printStackTrace();
|
throw new UnhandledException(ioe);
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -811,8 +804,7 @@ public class StringEscapeUtils {
|
||||||
return writer.toString();
|
return writer.toString();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
// this should never ever happen while writing to a StringWriter
|
// this should never ever happen while writing to a StringWriter
|
||||||
ioe.printStackTrace();
|
throw new UnhandledException(ioe);
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue