diff options
author | Bruno Andrade <bruno@artsman.dev> | 2021-07-12 09:10:08 -0300 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-07-12 20:06:52 +0000 |
commit | 24327c11a52a01d3562eb78a0d4d99533decf543 (patch) | |
tree | b3772a405bdfe2039c4f7b48d2077517adfdd688 /server | |
parent | ae5711e2ee6b6b809a015d9f934ed481fe78533f (diff) | |
download | sonarqube-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.java | 6 |
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) { |