Skip to content

Commit 08b6dc3

Browse files
committed
Removed comments
1 parent 5c1d8d6 commit 08b6dc3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

utbot-summary/src/main/kotlin/org/utbot/summary/ast/JimpleToASTMap.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class JimpleToASTMap(stmts: Iterable<Unit>, methodDeclaration: MethodDeclaration
4949
val stmtToASTNode = mutableMapOf<Unit, Node?>()
5050

5151
init {
52-
removeComments(methodDeclaration) // TODO: Zinoviev probably - this is a place where I can obtain comments of tested methods and parse it by tags and so on
52+
removeComments(methodDeclaration)
5353
mapTernaryConditional(methodDeclaration, stmts)
5454
val ifStmtToNodeMap = createIfStmtToASTNodesMap(methodDeclaration)
5555
for (stmt in stmts) {
@@ -61,7 +61,6 @@ class JimpleToASTMap(stmts: Iterable<Unit>, methodDeclaration: MethodDeclaration
6161

6262
if (ASTNode != null) {
6363
if (ASTNode is IfStmt && stmt is JIfStmt) {
64-
//ASTNode = ifStmtToNodeMap[ASTNode]?.remove() // TODO: Zinoviev
6564
val nodes = ifStmtToNodeMap[ASTNode]
6665
if(!nodes.isNullOrEmpty()) ASTNode = nodes.remove()
6766
} else if (stmt is JReturnStmt) {

utbot-summary/src/main/kotlin/org/utbot/summary/comment/SimpleSentenceBlock.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class SimpleSentenceBlock(val stringTemplates: StringsTemplatesInterface) {
9292
result += stringTemplates.sentenceBeginning + " "
9393
restartSentence = false
9494
}
95-
result += "${nextSynonyms.random()} $nextSentenceBlock" // TODO: Zinoviev - add seed for test purposes
95+
result += "${nextSynonyms.random()} $nextSentenceBlock"
9696

9797
if (nextSentenceBlock.trim().endsWith(DOT_SYMBOL)) {
9898
restartSentence = true

0 commit comments

Comments
 (0)