Skip to content

Commit 8a4ab53

Browse files
committed
Feature request #86: Fix typo in entrypoints. entry_point -> entrypoint.
Signed-off-by: Rahul Krishna <[email protected]>
1 parent e48cd88 commit 8a4ab53

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private static JavaCompilationUnit processCompilationUnit(CompilationUnit parseR
183183
}).collect(Collectors.toMap(p -> p.getLeft(), p -> p.getRight())));
184184

185185
// Add information about if the TypeNode is an entry point class
186-
typeNode.setEntryPointClass(isEntryPointClass(typeDecl));
186+
typeNode.setEntrypointClass(isEntryPointClass(typeDecl));
187187

188188
return Pair.of(typeName, typeNode);
189189

@@ -389,7 +389,7 @@ private static Pair<String, Callable> processCallableDeclaration(CallableDeclara
389389
// modifiers
390390
callableNode.setParameters((List<ParameterInCallable>) callableDecl.getParameters().stream().map(param -> processParameterDeclaration((Parameter) param)).collect(Collectors.toList()));
391391

392-
callableNode.setEntryPoint(isEntryPointMethod(callableDecl));
392+
callableNode.setEntrypoint(isEntryPointMethod(callableDecl));
393393
// A method declaration may not have a body if it is an abstract method. A
394394
// constructor always
395395
// has a body. So, we need to check if the body is present before processing it

src/main/java/com/ibm/cldk/entities/CRUDOperation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@Data
1010
@NoArgsConstructor
1111
@AllArgsConstructor
12+
@NotImplemented
1213
public class CRUDOperation {
1314
public enum OperationType {
1415
CREATE,

src/main/java/com/ibm/cldk/entities/Callable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public class Callable {
2626
private List<CallSite> callSites;
2727
private List<VariableDeclaration> variableDeclarations;
2828
private int cyclomaticComplexity;
29-
private boolean isEntryPoint = false;
29+
private boolean isEntrypoint = false;
3030
private List<CRUDOperation> crudOperations = null;
3131
}

src/main/java/com/ibm/cldk/entities/Type.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ public class Type {
2525
private Map<String, Callable> callableDeclarations;
2626
private List<Field> fieldDeclarations;
2727
private List<EnumConstant> enumConstants;
28-
private boolean isEntryPointClass = false;
28+
private boolean isEntrypointClass = false;
2929
}

src/main/java/com/ibm/cldk/utils/annotations/NotImplemented.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.lang.annotation.*;
44

55
@Documented
6-
@Target({ElementType.METHOD, ElementType.FIELD})
6+
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
77
@Retention(RetentionPolicy.RUNTIME)
88
public @interface NotImplemented {
99
String value() default "";

src/test/java/com/ibm/cldk/CodeAnalyzerIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void shouldBeAbleToGenerateAnalysisArtifactForDaytrader8() throws Exception {
162162
"--input=/test-applications/daytrader8",
163163
"--analysis-level=1"
164164
);
165-
Assertions.assertTrue(runCodeAnalyzerOnDaytrader8.getStdout().contains("\"is_entry_point_class\": true"), "No entry point classes found");
166-
Assertions.assertTrue(runCodeAnalyzerOnDaytrader8.getStdout().contains("\"is_entry_point\": true"), "No entry point methods found");
165+
Assertions.assertTrue(runCodeAnalyzerOnDaytrader8.getStdout().contains("\"is_entrypoint_class\": true"), "No entry point classes found");
166+
Assertions.assertTrue(runCodeAnalyzerOnDaytrader8.getStdout().contains("\"is_entrypoint\": true"), "No entry point methods found");
167167
}
168168
}

0 commit comments

Comments
 (0)