Mercurial > projects > dwt-addons
diff dwtx/jface/internal/text/revisions/HunkComputer.d @ 158:25f1f92fa3df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 26 Aug 2008 02:46:34 +0200 |
parents | f70d9508c95c |
children | c3583c6ec027 |
line wrap: on
line diff
--- a/dwtx/jface/internal/text/revisions/HunkComputer.d Mon Aug 25 19:06:44 2008 +0200 +++ b/dwtx/jface/internal/text/revisions/HunkComputer.d Tue Aug 26 02:46:34 2008 +0200 @@ -32,14 +32,14 @@ /** * Computes the diff hunks from an {@link ILineDiffer}. - * + * * @since 3.3 */ public final class HunkComputer { /** * Converts the line-based information of {@link ILineDiffer} into {@link Hunk}s, grouping * contiguous blocks of lines that are changed (added, deleted). - * + * * @param differ the line differ to query * @param lines the number of lines to query * @return the corresponding {@link Hunk} information @@ -82,8 +82,8 @@ changed= 0; } } - - return (Hunk[]) hunks.toArray(new Hunk[hunks.size()]); + + return arraycast!(Hunk)( hunks.toArray()); } private this() { }