Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
LajosCseppento committed Mar 8, 2024
1 parent 9d0a816 commit 3669e10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ public class LicenceEntity implements Serializable {
@Nullable // If the DB is inconsistent, this can be null
private LicenceInfoEntity licenceInfo;

/** Year when the licence was issued. */
@Column(name = "LYEAR")
private Integer year;

@Column(name="LCOMMENTS")
/** Comment. */
@Column(name = "LCOMMENTS")
private String comment;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ public Collection<String> findActiveLicences(@NonNull UserEntity user) {
licence -> {
var licenceInfo = licence.getLicenceInfo();
if (licenceInfo == null) {
log.warn("User {} has a licence registered, but licence info does not exist: {}", user, licence);
log.warn(
"User {} has a licence registered, but licence info does not exist: {}",
user,
licence);
return null;
} else {
return licenceInfo.getLicence();
Expand Down

0 comments on commit 3669e10

Please sign in to comment.