14082. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 1/4/2018 4:54:41 PM Eastern 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.

14082.1 Files compared

# Location File Last Modified
1 CHAMPVA_Benefit_Eligibility_v1.0.0.zip\webservice\champvapay-service\src\main\java\gov\va\med\mbcp\champva\domain\impl CodeResult.java Thu Dec 21 19:52:28 2017 UTC
2 CHAMPVA_Benefit_Eligibility_v1.0.0.zip\webservice\champvapay-service\src\main\java\gov\va\med\mbcp\champva\domain\impl CodeResult.java Thu Jan 4 21:00:29 2018 UTC

14082.2 Comparison summary

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

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

14082.4 Active regular expressions

No regular expressions were active.

14082.5 Comparison detail

  1   /**
  2    * The pac kage gov.v a.med.mbcp .champva.d omain.impl  contains  the CodeRe sult class , which
  3    * represe nts a Code  Result Tr ansfer Obj ect in the  Service L ayer. The  abstract C hampVAExce ption,
  4    * along w ith its co ncrete imp lementatio ns, are al so defined  here. 
  5    * 
  6    */
  7   package go v.va.med.m bcp.champv a.domain.i mpl;
  8  
  9   import com .fasterxml .jackson.a nnotation. JsonIgnore Properties ;
  10  
  11   import gov .va.med.mb cp.champva .domain.co mmon.ICode Result;
  12  
  13   /**
  14    * Class C odeResult  is the Dat a Transfer  Object fo r the CHAM PVA Pay Se rvice
  15    * 
  16    * @author   PII
  17    * @versio n 1.0.0
  18    */
  19   @JsonIgnor ePropertie s(ignoreUn known = tr ue)
  20   public cla ss CodeRes ult implem ents ICode Result {
  21       
  22       privat e String r esult;
  23       privat e String m essage;
  24  
  25       public  CodeResul t() {
  26           su per();
  27       }
  28  
  29       public  CodeResul t(String c rString) {
  30           th is();
  31           St ring piece s[] = crSt ring.split ("\\^");
  32           th is.setResu lt(pieces[ 0]);
  33           if  (pieces.l ength == 2 ) {
  34                this.set Message(pi eces[1]);
  35           }
  36       }
  37  
  38       /* (no n-Javadoc)
  39        * @se e gov.va.m ed.mbcp.ch ampva.doma in.common. ICodeResul t#getResul t()
  40        */
  41       @Overr ide
  42       public  String ge tResult()  {
  43           re turn resul t;
  44       }
  45       
  46       privat e void set Result(Str ing result ) {
  47           th is.result  = result;
  48       }
  49  
  50       /* (no n-Javadoc)
  51        * @se e gov.va.m ed.mbcp.ch ampva.doma in.common. ICodeResul t#getMessa ge()
  52        */
  53       @Overr ide
  54       public  String ge tMessage()  {
  55           re turn messa ge;
  56       }
  57  
  58       privat e void set Message(St ring messa ge) {
  59           th is.message  = message ;
  60       }
  61  
  62       /* (no n-Javadoc)
  63        * @se e java.lan g.Object#h ashCode()
  64        */
  65       @Overr ide
  66       public  int hashC ode() {
  67           fi nal int pr ime = 31;
  68           in t result =  1;
  69           re sult = pri me * resul t + ((mess age == nul l) ? 0 : m essage.has hCode());
  70           re sult = pri me * resul t + ((this .result ==  null) ? 0  : this.re sult.hashC ode());
  71           re turn resul t;
  72       }
  73  
  74       /* (no n-Javadoc)
  75        * @se e java.lan g.Object#e quals(java .lang.Obje ct)
  76        */
  77       @Overr ide
  78       public  boolean e quals(Obje ct obj) {
  79           if  (this ==  obj) {
  80                return t rue;
  81           }
  82           if  (obj == n ull) {
  83                return f alse;
  84           }
  85           if  (!(obj in stanceof C odeResult) ) {
  86                return f alse;
  87           }
  88           Co deResult o ther = (Co deResult)  obj;
  89           if  (message  == null) {
  90                if (othe r.message  != null) {
  91                    retu rn false;
  92                }
  93           }  else if (! message.eq uals(other .message))  {
  94                return f alse;
  95           }
  96           if  (result = = null) {
  97                if (othe r.result ! = null) {
  98                    retu rn false;
  99                }
  100           }  else if (! result.equ als(other. result)) {
  101                return f alse;
  102           }
  103           re turn true;
  104       }
  105   }