Produced by Araxis Merge on 12/20/2017 5:56:06 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Genisis_2.0_v6_bld6.zip\Source Code\TS\Service\testing\cli-test-scripts\src\main\java\gov\va\genisis2 | PropertyManager.java | Thu Dec 14 19:57:17 2017 UTC |
| 2 | Genisis_2.0_v6_bld6.zip\Source Code\TS\Service\testing\cli-test-scripts\src\main\java\gov\va\genisis2 | PropertyManager.java | Wed Dec 20 20:57:20 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 102 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | package go v.va.genis is2; | |
| 2 | ||
| 3 | import jav a.io.File; | |
| 4 | import jav a.io.FileI nputStream ; | |
| 5 | import jav a.io.FileN otFoundExc eption; | |
| 6 | import jav a.io.IOExc eption; | |
| 7 | import jav a.util.Pro perties; | |
| 8 | ||
| 9 | import org .apache.lo g4j.Logger ; | |
| 10 | ||
| 11 | /** | |
| 12 | * | |
| 13 | * @author PII | |
| 14 | * | |
| 15 | */ | |
| 16 | public cla ss Propert yManager { | |
| 17 | ||
| 18 | pr ivate stat ic final L ogger LOGG ER = Logge r.getLogge r(Property Manager.cl ass); | |
| 19 | ||
| 20 | pr ivate Stri ng filenam e; | |
| 21 | pr ivate Prop erties pro perties; | |
| 22 | ||
| 23 | pu blic Prope rtyManager (String fi lename) { | |
| 24 | this .filename = filename ; | |
| 25 | this .propertie s = new Pr operties() ; | |
| 26 | ||
| 27 | read PropertyFi les(); | |
| 28 | } | |
| 29 | ||
| 30 | pu blic Prope rties read PropertyFi les() { | |
| 31 | Prop erties pro perties = new Proper ties(); | |
| 32 | try (FileInput Stream fil eInput = n ew FileInp utStream(n ew File(fi lename))) { | |
| 33 | proper ties.load( fileInput) ; | |
| 34 | } ca tch (FileN otFoundExc eption e) { | |
| 35 | LOGGER .error(e.g etMessage( )); | |
| 36 | } ca tch (IOExc eption e) { | |
| 37 | LOGGER .error(e.g etMessage( )); | |
| 38 | } | |
| 39 | retu rn propert ies; | |
| 40 | } | |
| 41 | ||
| 42 | pu blic Integ er getProp ertyValue( String pro p, int def aultValue) { | |
| 43 | Inte ger value = defaultV alue; | |
| 44 | try { | |
| 45 | value = Integer. parseInt(p roperties. getPropert y(prop)); | |
| 46 | ||
| 47 | } ca tch (Numbe rFormatExc eption ne) { | |
| 48 | LOGGER .error("Co uldn't rea d integer. ..using de fault inst ead"); | |
| 49 | } | |
| 50 | retu rn value; | |
| 51 | } | |
| 52 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.