84. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/1/2018 12:13:17 PM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

84.1 Files compared

# Location File Last Modified
1 ehealth_xchange_cif.zip\NHIN_adapter\AdapterLIB\src\main\java\gov\va\med\nhin\adapter\datamanager\translators LatestDateDataTranslator.java Thu Feb 22 14:26:42 2018 UTC
2 ehealth_xchange_cif.zip\NHIN_adapter\AdapterLIB\src\main\java\gov\va\med\nhin\adapter\datamanager\translators LatestDateDataTranslator.java Tue Feb 27 14:28:53 2018 UTC

84.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 86
Changed 1 2
Inserted 0 0
Removed 0 0

84.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

84.4 Active regular expressions

No regular expressions were active.

84.5 Comparison detail

  1   package go v.va.med.n hin.adapte r.datamana ger.transl ators;
  2  
  3   import jav a.util.Dat e;
  4  
  5   import gov .va.med.nh in.adapter .datamanag er.DataMan agerExcept ion;
  6   import gov .va.med.nh in.adapter .datamanag er.DataQue ry;
  7   import gov .va.med.nh in.adapter .datamanag er.DataTra nslator;
  8   import gov .va.med.nh in.adapter .datamanag er.Referen ce;
  9  
  10   /**
  11    *
  12    * @author   DN S      VAZQUD
  13    */
  14   public cla ss LatestD ateDataTra nslator im plements D ataTransla tor<Date>
  15   {
  16           @O verride
  17           pu blic Date  translate( Object inp ut, Object  result, R eference t ranslation , DataQuer y dataQuer y)
  18           {
  19                    Date  ret = nul l;
  20                    Stri ng propert yNames = t ranslation .getProper ty("proper tyNames");
  21  
  22                    for( String pro pertyName  : property Names.spli t(","))
  23                    {
  24                             try
  25                             {
  26                                      Object v alue = tra nslation.g etValue(pr opertyName );
  27                                      if(value  != null)
  28                                      {
  29                                               Date dateV alue = (Da te) value;
  30                                               if(ret ==  null || da teValue.af ter(ret))
  31                                               {
  32                                                       re t = dateVa lue;
  33                                               }
  34                                      }
  35                             }
  36                             catch( ClassCastE xception c ce)
  37                             {
  38                                      throw ne w DataMana gerExcepti on("Only p roperties  of type ja va.util.Da te are sup ported.");
  39                             }
  40                    }
  41  
  42                    retu rn ret;
  43           }
  44   }