@@ -480,24 +480,6 @@ public static boolean checkImportStatus() {
480480 return hasError ;
481481 }
482482
483- /**
484- * Get import class content for Copilot integration (backward compatibility
485- * wrapper).
486- * This method maintains compatibility with the original return type.
487- *
488- * @param arguments List containing the file URI as the first element
489- * @param monitor Progress monitor for cancellation support
490- * @return List of ImportClassInfo containing class information and JavaDoc
491- */
492- public static List <ImportClassInfo > getImportClassContent (List <Object > arguments , IProgressMonitor monitor ) {
493- ImportClassContentResult result = getImportClassContentWithResult (arguments , monitor );
494- if (result .isEmpty ) {
495- // Log the error reason for debugging
496- JdtlsExtActivator .logError ("getImportClassContent failed: " + result .emptyReason );
497- }
498- return result .classInfoList ;
499- }
500-
501483 /**
502484 * Get import class content for Copilot integration.
503485 * This method extracts information about imported classes from a Java file.
@@ -508,7 +490,7 @@ public static List<ImportClassInfo> getImportClassContent(List<Object> arguments
508490 * @param monitor Progress monitor for cancellation support
509491 * @return List of ImportClassInfo containing class information and JavaDoc
510492 */
511- public static ImportClassContentResult getImportClassContentWithResult (List <Object > arguments ,
493+ public static ImportClassContentResult getImportClassContent (List <Object > arguments ,
512494 IProgressMonitor monitor ) {
513495 if (arguments == null || arguments .isEmpty ()) {
514496 return new ImportClassContentResult (ImportClassContentErrorReason .NULL_ARGUMENTS , null , null , null );
@@ -670,19 +652,14 @@ private static String getSeverityString(int severity) {
670652 }
671653 }
672654
673- public static List <DependencyInfo > getProjectDependencies (List <Object > arguments , IProgressMonitor monitor ) {
674- ProjectDependenciesResult result = getProjectDependenciesWithResult (arguments , monitor );
675- return result == null ? Collections .emptyList () : result .dependencyInfoList ;
676- }
677-
678655 /**
679656 * Get project dependencies information including JDK version.
680657 *
681658 * @param arguments List containing the file URI as the first element
682659 * @param monitor Progress monitor for cancellation support
683660 * @return List of DependencyInfo containing key-value pairs of project information
684661 */
685- public static ProjectDependenciesResult getProjectDependenciesWithResult (List <Object > arguments ,
662+ public static ProjectDependenciesResult getProjectDependencies (List <Object > arguments ,
686663 IProgressMonitor monitor ) {
687664 if (arguments == null || arguments .isEmpty ()) {
688665 return new ProjectDependenciesResult (ProjectDependenciesErrorReason .NULL_ARGUMENTS , null , null , null );
0 commit comments