ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1858145 - /ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/CuiCodeUtil.java
Date Thu, 25 Apr 2019 15:06:26 GMT
Author: seanfinan
Date: Thu Apr 25 15:06:26 2019
New Revision: 1858145

URL: http://svn.apache.org/viewvc?rev=1858145&view=rev
Log:
error to warning

Modified:
    ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/CuiCodeUtil.java

Modified: ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/CuiCodeUtil.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/CuiCodeUtil.java?rev=1858145&r1=1858144&r2=1858145&view=diff
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/CuiCodeUtil.java
(original)
+++ ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/CuiCodeUtil.java
Thu Apr 25 15:06:26 2019
@@ -23,7 +23,7 @@ public enum CuiCodeUtil {
 
    final private List<PrefixerPair> _prefixerPairList = new ArrayList<>();
 
-   private CuiCodeUtil() {
+   CuiCodeUtil() {
       // Add the standard C as the default encoding prefix
       _prefixerPairList.add( new PrefixerPair( "C0000000" ) );
    }
@@ -31,7 +31,7 @@ public enum CuiCodeUtil {
    public String getAsCui( final Long code ) {
       final long multiplier = code / PREFIX_MULTIPLIER;
       if ( code < 0 || multiplier < 0 || multiplier >= _prefixerPairList.size()
) {
-         LOGGER.error( "Could not create Cui String for " + code );
+         LOGGER.warn( "Could not create Cui String for " + code );
          return "" + code;
       }
       return _prefixerPairList.get( (int)multiplier ).getAsCui( code % PREFIX_MULTIPLIER
);



Mime
View raw message