From: Julien Lancelot Date: Mon, 12 Jan 2015 16:51:28 +0000 (+0100) Subject: Fix quaity flaws X-Git-Tag: latest-silver-master-#65~242 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d1956137b8eb91d789ba82e7f487e144b2f17eb;p=sonarqube.git Fix quaity flaws --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/user/index/UserDoc.java b/server/sonar-server/src/main/java/org/sonar/server/user/index/UserDoc.java index 84c98236a88..c01104d1801 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/user/index/UserDoc.java +++ b/server/sonar-server/src/main/java/org/sonar/server/user/index/UserDoc.java @@ -33,19 +33,23 @@ public class UserDoc extends BaseDoc implements User { super(fields); } + @Override public String login() { return getField(UserIndexDefinition.FIELD_LOGIN); } + @Override public String name() { return getField(UserIndexDefinition.FIELD_NAME); } + @Override @Nullable public String email() { return getNullableField(UserIndexDefinition.FIELD_EMAIL); } + @Override public boolean active() { return (Boolean) getField(UserIndexDefinition.FIELD_ACTIVE); }