ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1763936 - /ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/pretty/row/DefaultItemRow.java
Date Sat, 08 Oct 2016 21:56:17 GMT
Author: seanfinan
Date: Sat Oct  8 21:56:17 2016
New Revision: 1763936

URL: http://svn.apache.org/viewvc?rev=1763936&view=rev
Log:
revert

Modified:
    ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/pretty/row/DefaultItemRow.java

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/pretty/row/DefaultItemRow.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/pretty/row/DefaultItemRow.java?rev=1763936&r1=1763935&r2=1763936&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/pretty/row/DefaultItemRow.java
(original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/pretty/row/DefaultItemRow.java
Sat Oct  8 21:56:17 2016
@@ -76,13 +76,7 @@ public final class DefaultItemRow implem
             sb.replace( begin, begin + width, new String( fill_chars ) );
          } else {
             final int paddedOffset = getPaddedOffset( annotationText, width );
-            final int b = (begin + paddedOffset < 0) ? begin : begin + paddedOffset;
-            final int e = Math.min( b + annotationText.length(), rowWidth - b );
-            if ( e - b < annotationText.length() ) {
-               sb.replace( b, e, annotationText.substring( 0, e - b ) );
-            } else {
-               sb.replace( b, e, annotationText );
-            }
+            sb.replace( begin + paddedOffset, begin + paddedOffset + annotationText.length(),
annotationText );
          }
       }
       return sb.toString();



Mime
View raw message