Produced by Araxis Merge on 9/15/2018 10:46:47 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | MHV_2018.4.0.0.zip\2018.4.0.0\admin portal\mhv_source\mhv-sm-admin-tgmgmt-api\src\main\java\gov\va\med\mhv\sm\admin | MhvCustomObjectMapperProvider.java | Thu Aug 23 20:15:28 2018 UTC |
| 2 | MHV_2018.4.0.0.zip\2018.4.0.0\admin portal\mhv_source\mhv-sm-admin-tgmgmt-api\src\main\java\gov\va\med\mhv\sm\admin | MhvCustomObjectMapperProvider.java | Sat Sep 15 18:40:08 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 74 |
| 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 | /** | |
| 2 | * | |
| 3 | */ | |
| 4 | package go v.va.med.m hv.sm.admi n; | |
| 5 | ||
| 6 | import jav a.text.Sim pleDateFor mat; | |
| 7 | ||
| 8 | import jav ax.ws.rs.e xt.Context Resolver; | |
| 9 | import jav ax.ws.rs.e xt.Provide r; | |
| 10 | ||
| 11 | import com .fasterxml .jackson.d atabind.Ob jectMapper ; | |
| 12 | import com .fasterxml .jackson.d atabind.Se rializatio nConfig; | |
| 13 | ||
| 14 | import gov .va.med.mh v.common.a pi.jackson .MhvIgnore UnknownPro pertiesObj ectMapper; | |
| 15 | ||
| 16 | /** | |
| 17 | * @author DNS | |
| 18 | * | |
| 19 | */ | |
| 20 | @Provider | |
| 21 | public cla ss MhvCust omObjectMa pperProvid er impleme nts Contex tResolver< ObjectMapp er> { | |
| 22 | ||
| 23 | pu blic stati c String R FC1123_PAT TERN = "EE E, dd MMM yy HH:mm:s s z"; | |
| 24 | pr ivate fina l ObjectMa pper mhvOb jectMapper = new Mhv IgnoreUnkn ownPropert iesObjectM apper(); | |
| 25 | ||
| 26 | pu blic MhvCu stomObject MapperProv ider() { | |
| 27 | // mhvO bjectMappe r.setDateF ormat(new SimpleDate Format(RFC 1123_PATTE RN)); | |
| 28 | // Json .mapper(). setDateFor mat(new Si mpleDateFo rmat("yyyy -MM-dd'T'H H:mm:ss")) ; | |
| 29 | } | |
| 30 | ||
| 31 | ||
| 32 | @O verride | |
| 33 | pu blic Objec tMapper ge tContext(C lass<?> ty pe) { | |
| 34 | retu rn mhvObje ctMapper; | |
| 35 | // retu rn Json.ma pper().set DateFormat (new Simpl eDateForma t("yyyy-MM -dd'T'HH:m m:ss")); | |
| 36 | } | |
| 37 | ||
| 38 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.