285. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/13/2018 10:35:27 AM 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.

285.1 Files compared

# Location File Last Modified
1 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\model\lookup AbstractSimpleLookup.java Fri Dec 7 17:36:36 2018 UTC
2 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\model\lookup AbstractSimpleLookup.java Wed Dec 12 22:26:42 2018 UTC

285.2 Comparison summary

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

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

285.4 Active regular expressions

No regular expressions were active.

285.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2006 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4  
  5   package go v.va.med.f w.model.lo okup;
  6  
  7   import jav a.util.Map ;
  8  
  9   import org .apache.co mmons.lang .ClassUtil s;
  10   import org .apache.co mmons.lang .enums.Enu m;
  11   import org .springfra mework.cor e.Constant s;
  12  
  13   /**
  14    * Lookup  implementa tion for e numerated  values tha t are not  database d riven.
  15    * 
  16    * Created  Aug 3, 20 06 4:19:58  PM
  17    * 
  18    * DNS
  19    */
  20   public abs tract clas s Abstract SimpleLook up extends  Enum impl ements Loo kup {
  21           pr ivate stat ic final l ong serial VersionUID  = -106394 3405242112 824L;
  22  
  23           pu blic Abstr actSimpleL ookup(Stri ng code) {
  24                    supe r(code);
  25                    Simp leLookupUt ils.addLoo kupClass(g etClass()) ;
  26           }
  27  
  28           pu blic Strin g getCode( ) {
  29                    retu rn getName ();
  30           }
  31  
  32           pu blic Strin g getDescr iption() {
  33                    retu rn SimpleL ookupUtils .getConsta ntName(get Class(), g etCode());
  34           }
  35  
  36           pu blic final  String to String() {
  37                    Stri ngBuilder  buf = new  StringBuil der();
  38                    buf. append(Cla ssUtils.ge tShortClas sName(getC lass())).a ppend(" [" );
  39                    buf. append(get Code()).ap pend(", ") ;
  40                    buf. append(get Descriptio n()).appen d("]");
  41                    retu rn buf.toS tring();
  42           }
  43   }
  44  
  45   class Enum Constants  extends Co nstants {
  46           En umConstant s(Class<?>  clazz) {
  47                    supe r(clazz);
  48           }
  49  
  50           @S uppressWar nings("unc hecked")
  51           St ring getCo nstantName (String co de) {
  52                    Map< String, Ob ject> cons tantToLook up = getFi eldCache() ;
  53                    //Ma p<String,  Lookup> co nstantToLo okup = get FieldCache ();
  54                    for  (Map.Entry <String, O bject> ent ry : const antToLooku p.entrySet ()) {
  55                             if (co de.equals( ((Lookup)e ntry.getVa lue()).get Code()))
  56                                      return e ntry.getKe y();
  57                    }
  58                    retu rn null;
  59           }
  60   }