• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmrs / openmrs-core / 10621293521

29 Aug 2024 07:19PM CUT coverage: 64.73% (-0.003%) from 64.733%
10621293521

push

github

web-flow
maven(deps): bump net.bytebuddy:byte-buddy from 1.15.0 to 1.15.1 (#4735)

Bumps [net.bytebuddy:byte-buddy](https://github.com/raphw/byte-buddy) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.15.0...byte-buddy-1.15.1)

---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

22959 of 35469 relevant lines covered (64.73%)

0.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/api/src/main/java/org/openmrs/api/db/hibernate/envers/OpenmrsRevisionEntityListener.java
1
/**
2
 * This Source Code Form is subject to the terms of the Mozilla Public License,
3
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
4
 * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
5
 * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
6
 *
7
 * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
8
 * graphic logo is a trademark of OpenMRS Inc.
9
 */
10

11
package org.openmrs.api.db.hibernate.envers;
12

13
import org.hibernate.envers.RevisionListener;
14
import org.openmrs.api.context.Context;
15
import org.openmrs.api.context.Daemon;
16

17
import java.util.Date;
18

19
public class OpenmrsRevisionEntityListener implements RevisionListener {
×
20
        @Override
21
        public void newRevision(Object o) {
22
                OpenmrsRevisionEntity customRevisionEntity = (OpenmrsRevisionEntity) o;
×
23
                if(Context.getUserContext().isAuthenticated()) {
×
24
                        customRevisionEntity.setChangedBy(Context.getUserContext().getAuthenticatedUser().getUserId());
×
25
                }
26
                else if(Daemon.getDaemonThreadUser() != null) {
×
27
                        customRevisionEntity.setChangedBy(Daemon.getDaemonThreadUser().getUserId());
×
28
                }
29
                customRevisionEntity.setChangedOn(new Date());
×
30
        }
×
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc