Skip to content

Commit 83d55e0

Browse files
committed
Clean up callable declaration string to remove embedded comments.
Signed-off-by: Saurabh Sinha <[email protected]>
1 parent ebe64b6 commit 83d55e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/ibm/cldk/SymbolTable.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ private static Pair<String, Callable> processCallableDeclaration(CallableDeclara
273273

274274
// add the complete declaration string, including modifiers, throws, and
275275
// parameter names
276-
callableNode.setDeclaration(callableDecl.getDeclarationAsString(true, true, true).strip());
276+
callableNode.setDeclaration(callableDecl
277+
.getDeclarationAsString(true, true, true)
278+
.strip().replaceAll("//.*\n", ""));
277279

278280
// add information about callable parameters: for each parameter, type, name,
279281
// annotations,

0 commit comments

Comments
 (0)