On Structural replace of
Find:
try {
$TryStatement$;
} catch(Exception $ExceptionDcl$) {
$CatchStatement$;
}
Replace:
try {
$TryStatement$;
} catch(Throwable $ExceptionDcl$) {
$CatchStatement$;
}
is resulting in extra ';' for code like
for (int i = 0; i < MIMEHelper.MIME_MAP.length; i++)
{
String s = aFileNameWithOutExtention + MIMEHelper.MIME_MAP[i][0][0];
try
{
if (ENABLE_Z107_READING)
{
in = aFileNameWithOutExtention.getClass().getResourceAsStream(s);
}
else
{
data = ResourceHelper.readResource(s);
}
mime = MIMEHelper.MIME_MAP[i][1][0];
break;
}
catch (final Throwable e)
{
continue;
}
}
After replace the result is
for (int i = 0; i < MIMEHelper.MIME_MAP.length; i++)
{
String s = aFileNameWithOutExtention + MIMEHelper.MIME_MAP[i][0][0];
try
{
if (ENABLE_Z107_READING)
{
in = aFileNameWithOutExtention.getClass().getResourceAsStream(s);
}
else
{
data = ResourceHelper.readResource(s);
}
mime = MIMEHelper.MIME_MAP[i][1][0];
break;
;
}
catch (final Throwable e) {
continue
;;
}
}
This is resulting in compilation error of unreachable statement.
Regards,
Raja Nagendra Kumar
Environment: Windows
Issue was resolved