rename server PackageInfo class to SourcePackageInfo
[teamcity/dotNetPackagesSupport.git] / nuget-server / src / jetbrains / buildServer / nuget / server / exec / ListPackagesCommandProcessor.java
index 1dfd8529f959df754de7b45b7519471163ac2b9c..dac3c2552efb0db90fbbd61512b0b6bc69ed4d6c 100644 (file)
@@ -32,10 +32,10 @@ import java.util.List;
 * Created by Eugene Petrenko (eugene.petrenko@gmail.com)\r
 * Date: 14.07.11 13:23\r
 */\r
-public class ListPackagesCommandProcessor implements NuGetOutputProcessor<Collection<PackageInfo>> {\r
+public class ListPackagesCommandProcessor implements NuGetOutputProcessor<Collection<SourcePackageInfo>> {\r
   private static final Logger LOG = Logger.getInstance(ListPackagesCommandProcessor.class.getName());\r
   private final String mySource;\r
-  private final List<PackageInfo> myPackages = new ArrayList<PackageInfo>();\r
+  private final List<SourcePackageInfo> myPackages = new ArrayList<SourcePackageInfo>();\r
 \r
   public ListPackagesCommandProcessor(@NotNull final String source) {\r
     mySource = source;\r
@@ -58,7 +58,7 @@ public class ListPackagesCommandProcessor implements NuGetOutputProcessor<Collec
         if (StringUtil.isEmptyOrSpaces(id)) return;\r
         if (StringUtil.isEmptyOrSpaces(version)) return;\r
 \r
-        myPackages.add(new PackageInfo(mySource, id, version));\r
+        myPackages.add(new SourcePackageInfo(mySource, id, version));\r
 \r
       }\r
 \r
@@ -83,7 +83,7 @@ public class ListPackagesCommandProcessor implements NuGetOutputProcessor<Collec
   }\r
 \r
   @NotNull\r
-  public Collection<PackageInfo> getResult() {\r
+  public Collection<SourcePackageInfo> getResult() {\r
     return Collections.unmodifiableList(myPackages);\r
   }\r
 }\r