Skip to content

Commit 0ca6bca

Browse files
committed
removed code duplication
1 parent f96b32b commit 0ca6bca

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/data/DataRepositorySymbolProvider.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private static Tuple4<String, ITypeBinding, String, DocumentRegion> getRepositor
125125
}
126126

127127
if (Constants.REPOSITORY_TYPE.equals(simplifiedType)) {
128-
String beanName = getBeanName(typeDeclaration);
128+
String beanName = BeanUtils.getBeanName(typeDeclaration);
129129

130130
String domainType = null;
131131
if (resolvedInterface.isParameterizedType()) {
@@ -155,9 +155,4 @@ private static Tuple4<String, ITypeBinding, String, DocumentRegion> getRepositor
155155
}
156156
}
157157

158-
private static String getBeanName(TypeDeclaration typeDeclaration) {
159-
String beanName = typeDeclaration.getName().toString();
160-
return BeanUtils.getBeanNameFromType(beanName);
161-
}
162-
163158
}

0 commit comments

Comments
 (0)