Mercurial > projects > dwt-addons
diff dwtx/jface/text/templates/persistence/TemplateReaderWriter.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | 6dcb0baaa031 |
line wrap: on
line diff
--- a/dwtx/jface/text/templates/persistence/TemplateReaderWriter.d Sun Aug 24 01:29:22 2008 +0200 +++ b/dwtx/jface/text/templates/persistence/TemplateReaderWriter.d Sun Aug 24 01:46:20 2008 +0200 @@ -217,7 +217,7 @@ } catch (SAXException e) { Throwable t= e.getCause(); if (t instanceof IOException) - throw (IOException) t; + throw cast(IOException) t; else if (t !is null) throw new IOException(t.getMessage()); else @@ -331,7 +331,7 @@ Assert.isTrue(false); } catch (TransformerException e) { if (e.getException() instanceof IOException) - throw (IOException) e.getException(); + throw cast(IOException) e.getException(); Assert.isTrue(false); } }