diff dwtx/jface/text/rules/FastPartitioner.d @ 160:3678e4f1a766

toHash, toString
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 02:07:22 +0200
parents f70d9508c95c
children 1a5b8f8129df
line wrap: on
line diff
--- a/dwtx/jface/text/rules/FastPartitioner.d	Wed Aug 27 01:57:58 2008 +0200
+++ b/dwtx/jface/text/rules/FastPartitioner.d	Wed Aug 27 02:07:22 2008 +0200
@@ -136,7 +136,7 @@
     public this(IPartitionTokenScanner scanner, String[] legalContentTypes) {
         fScanner= scanner;
         fLegalContentTypes= TextUtilities.copy(legalContentTypes);
-        fPositionCategory= CONTENT_TYPES_CATEGORY + hashCode();
+        fPositionCategory= CONTENT_TYPES_CATEGORY + toHash();
         fPositionUpdater= new DefaultPositionUpdater(fPositionCategory);
     }
 
@@ -845,7 +845,7 @@
      * @param position the position to format
      * @return a formatted string
      */
-    private String toString(Position position) {
+    private override String toString(Position position) {
         return "P[" + position.getOffset() + "+" + position.getLength() + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
     }
 }