Skip to content

Commit da65675

Browse files
anusreelakshmi934angelozerr
authored andcommitted
Update JaxRsWorkspaceSymbolParticipant.java
1 parent b81999f commit da65675

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/internal/jaxrs/java/JaxRsWorkspaceSymbolParticipant.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,13 @@ private static Set<PsiClass> getAllJaxRsTypes(Module javaProject, IPsiUtils util
108108
return jaxrsTypes;
109109
}
110110

111-
private static SymbolInformation createSymbol(JaxRsMethodInfo methodInfo, IPsiUtils utils) throws MalformedURLException {
111+
private static SymbolInformation createSymbol(JaxRsMethodInfo methodInfo, IPsiUtils utils) throws MalformedURLException, URISyntaxException {
112112
TextRange sourceRange = methodInfo.getJavaMethod().getNameIdentifier().getTextRange();
113113
Range r = utils.toRange(methodInfo.getJavaMethod(), sourceRange.getStartOffset(), sourceRange.getLength());
114114
Location location = new Location(methodInfo.getDocumentUri(), r);
115115

116116
StringBuilder nameBuilder = new StringBuilder("@");
117-
URL url;
118-
try {
119-
url = new URI(methodInfo.getUrl()).toURL();
120-
} catch (URISyntaxException e) {
121-
throw new RuntimeException(e);
122-
}
117+
URL url = new URI(methodInfo.getUrl()).toURL();
123118
String path = url.getPath();
124119
nameBuilder.append(path);
125120
nameBuilder.append(": ");

0 commit comments

Comments
 (0)