 +}
 +
 +string t_java_generator::import_extended_service(t_service* tservice) {
-+  if (tservice == nullptr) {
++  if (!tservice) {
 +    return string() + "\n";
 +  }
 +  string ns = tservice->get_program()->get_namespace("java");

+    indent_down();
+  }
+
+  if (tservice->get_extends() != nullptr) {
+    t_service* extend_service = tservice->get_extends();
+    functions = extend_service->get_functions();
+    string extend_service_name = extend_service->get_name() + "Grpc";

+    indent() << "@java.lang.Deprecated public static interface " << service_name_ <<
+    "BlockingClient " ;
+  
+  if (tservice->get_extends()) {
+    string extend_service_name = tservice->get_extends()->get_name();
+    f_service_ << endl << indent() << "    extends " << extend_service_name << "Grpc." <<
+        extend_service_name << "BlockingClient " ;
