diff --git a/core-maven-plugins/httproutes-generator-maven-plugin/pom.xml b/core-maven-plugins/httproutes-generator-maven-plugin/pom.xml
index ecfc24ba1..d560d7f72 100644
--- a/core-maven-plugins/httproutes-generator-maven-plugin/pom.xml
+++ b/core-maven-plugins/httproutes-generator-maven-plugin/pom.xml
@@ -110,6 +110,25 @@
21
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.15
+
+
+
+ prepare-agent
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
diff --git a/core-maven-plugins/httproutes-generator-maven-plugin/src/main/java/com/netcracker/routes/gateway/plugin/RouteScanner.java b/core-maven-plugins/httproutes-generator-maven-plugin/src/main/java/com/netcracker/routes/gateway/plugin/RouteScanner.java
index 7a930684f..1c79e1b70 100644
--- a/core-maven-plugins/httproutes-generator-maven-plugin/src/main/java/com/netcracker/routes/gateway/plugin/RouteScanner.java
+++ b/core-maven-plugins/httproutes-generator-maven-plugin/src/main/java/com/netcracker/routes/gateway/plugin/RouteScanner.java
@@ -388,13 +388,10 @@ private boolean hasOwnRoute(ClassInfo classInfo) {
* the order in which Spring's {@code AnnotationUtils.findAnnotation} searches
*/
private static Stream hierarchy(ClassInfo classInfo) {
- if (classInfo == null) {
- return Stream.empty();
- }
return Stream.of(
Stream.of(classInfo),
classInfo.getInterfaces().directOnly().stream().flatMap(RouteScanner::hierarchy),
- hierarchy(classInfo.getSuperclass())
+ Stream.ofNullable(classInfo.getSuperclass()).flatMap(RouteScanner::hierarchy)
).flatMap(Function.identity());
}