aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorBruno Andrade <bruno@artsman.dev>2021-07-12 09:10:08 -0300
committersonartech <sonartech@sonarsource.com>2021-07-12 20:06:52 +0000
commit24327c11a52a01d3562eb78a0d4d99533decf543 (patch)
treeb3772a405bdfe2039c4f7b48d2077517adfdd688 /server
parentae5711e2ee6b6b809a015d9f934ed481fe78533f (diff)
downloadsonarqube-24327c11a52a01d3562eb78a0d4d99533decf543.tar.gz
sonarqube-24327c11a52a01d3562eb78a0d4d99533decf543.zip
Code smell fix: Remove redundant casts
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/es/newindex/FieldAware.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/es/newindex/FieldAware.java b/server/sonar-server-common/src/main/java/org/sonar/server/es/newindex/FieldAware.java
index 47a30289863..27d6a27e771 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/es/newindex/FieldAware.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/es/newindex/FieldAware.java
@@ -43,17 +43,17 @@ public abstract class FieldAware<U extends FieldAware<U>> {
@SuppressWarnings("unchecked")
public KeywordFieldBuilder<U> keywordFieldBuilder(String fieldName) {
- return (KeywordFieldBuilder<U>) new KeywordFieldBuilder(this, fieldName);
+ return new KeywordFieldBuilder(this, fieldName);
}
@SuppressWarnings("unchecked")
public TextFieldBuilder<U> textFieldBuilder(String fieldName) {
- return (TextFieldBuilder<U>) new TextFieldBuilder(this, fieldName);
+ return new TextFieldBuilder(this, fieldName);
}
@SuppressWarnings("unchecked")
public NestedFieldBuilder<U> nestedFieldBuilder(String fieldName) {
- return (NestedFieldBuilder<U>) new NestedFieldBuilder(this, fieldName);
+ return new NestedFieldBuilder(this, fieldName);
}
public U createBooleanField(String fieldName) {