catch clause parameter is always not null
This commit is contained in:
committed by
Pavel V. Talanov
parent
d0b46704d3
commit
5be56e15ba
@@ -2,10 +2,10 @@ try
|
||||
{
|
||||
callMethod(params)
|
||||
}
|
||||
catch (e : Exception?) {
|
||||
catch (e : Exception) {
|
||||
println(1)
|
||||
}
|
||||
catch (e : IOException?) {
|
||||
catch (e : IOException) {
|
||||
println(0)
|
||||
}
|
||||
finally
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
try
|
||||
{
|
||||
}
|
||||
catch (e : Exception?) {
|
||||
catch (e : Exception) {
|
||||
println(1)
|
||||
}
|
||||
catch (e : IOException?) {
|
||||
catch (e : IOException) {
|
||||
println(0)
|
||||
}
|
||||
finally
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
try
|
||||
{
|
||||
}
|
||||
catch (e : Exception?) {
|
||||
catch (e : Exception) {
|
||||
println(1)
|
||||
}
|
||||
catch (e : IOException?) {
|
||||
catch (e : IOException) {
|
||||
println(0)
|
||||
}
|
||||
finally
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
try
|
||||
{
|
||||
}
|
||||
catch (e : Exception?) {
|
||||
catch (e : Exception) {
|
||||
println(1)
|
||||
}
|
||||
catch (e : IOException?) {
|
||||
catch (e : IOException) {
|
||||
println(0)
|
||||
}
|
||||
Reference in New Issue
Block a user