12. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/24/2017 5:17:18 PM Eastern Daylight 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.

12.1 Files compared

# Location File Last Modified
1 MHV_2017.2.0.0 Code In Flight.zip\National Portal\mhv_common\mhv-common-data\src\main\java\gov\va\med\mhv\common\data\util SsnFormatter.java Wed May 25 17:23:34 2016 UTC
2 MHV_2017.2.0.0 Code In Flight.zip\National Portal\mhv_common\mhv-common-data\src\main\java\gov\va\med\mhv\common\data\util SsnFormatter.java Fri Mar 24 20:04:49 2017 UTC

12.2 Comparison summary

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

12.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

12.4 Active regular expressions

No regular expressions were active.

12.5 Comparison detail

  1   package go v.va.med.m hv.common. data.util;
  2  
  3   import org .apache.co mmons.lang 3.StringUt ils;
  4  
  5   /**
  6    * @author   DN S
  7    */
  8   public cla ss SsnForm atter {
  9  
  10           pu blic stati c String f ormat(Stri ng ssn) {
  11                    if ( StringUtil s.isBlank( ssn)) {
  12                             return  null;
  13                    }
  14  
  15                    if ( ssn.length () == 9) {
  16                             String Buffer for mattedSsn  = new Stri ngBuffer() ;
  17                             format tedSsn.app end(ssn.su bstring(0,  3));
  18                             format tedSsn.app end('-');
  19                             format tedSsn.app end(ssn.su bstring(3,  5));
  20                             format tedSsn.app end('-');
  21                             format tedSsn.app end(ssn.su bstring(5,  9));
  22                             return  formatted Ssn.toStri ng();
  23                    } el se if (ssn .length()  == 11) {
  24                             return  ssn;
  25                    } el se {
  26                             throw  new Illega lArgumentE xception(" Cannot for mat SSN: " );
  27                    }
  28           }
  29  
  30   }