Skip to content

Commit cf8d876

Browse files
committed
cleanup
1 parent df6e69c commit cf8d876

File tree

1 file changed

+3
-4
lines changed
  • plugins/src/main/java/opengrok/auth/plugin/entity

1 file changed

+3
-4
lines changed

plugins/src/main/java/opengrok/auth/plugin/entity/User.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package opengrok.auth.plugin.entity;
2424

@@ -44,8 +44,8 @@ public User(String username) {
4444
* @param id user ID
4545
*/
4646
public User(String username, String id) {
47-
this.id = id;
4847
this.username = username;
48+
this.id = id;
4949
}
5050

5151
/**
@@ -56,8 +56,7 @@ public User(String username, String id) {
5656
* @param timeouted is the user timed out
5757
*/
5858
public User(String username, String id, Date cookieTimestamp, boolean timeouted) {
59-
this.id = id;
60-
this.username = username;
59+
this(username, id);
6160
this.cookieTimestamp = cookieTimestamp;
6261
this.timeouted = timeouted;
6362
}

0 commit comments

Comments
 (0)