aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-auth-gitlab
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2019-10-10 14:16:32 +0200
committerSonarTech <sonartech@sonarsource.com>2019-10-14 20:21:05 +0200
commitab6fd46a1f0936c3d8e05ada5b984819dae4283b (patch)
treeaca5781966a7cc69d0d35fa229dbcfce3e150e6c /server/sonar-auth-gitlab
parent7d2b20e368c4d680bf40b1b5b1b48fad8f205fab (diff)
downloadsonarqube-ab6fd46a1f0936c3d8e05ada5b984819dae4283b.tar.gz
sonarqube-ab6fd46a1f0936c3d8e05ada5b984819dae4283b.zip
fix missing class constructor (mostly GSon serialized classes)
Diffstat (limited to 'server/sonar-auth-gitlab')
-rw-r--r--server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GsonUser.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GsonUser.java b/server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GsonUser.java
index b7d4e0e6825..6d9469405d2 100644
--- a/server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GsonUser.java
+++ b/server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GsonUser.java
@@ -30,6 +30,12 @@ public class GsonUser {
private String name;
private String email;
+ public GsonUser() {
+ // even if empty constructor is not required for Gson, it is strongly
+ // recommended:
+ // http://stackoverflow.com/a/18645370/229031
+ }
+
public long getId() {
return id;
}