add @NotNull for Callback<T>
authorEugene Petrenko <eugene.petrenko@gmail.com>
Thu, 21 Jul 2011 12:23:36 +0000 (16:23 +0400)
committerEugene Petrenko <eugene.petrenko@gmail.com>
Thu, 21 Jul 2011 12:23:36 +0000 (16:23 +0400)
nuget-agent/src/jetbrains/buildServer/nuget/agent/commands/CommandFactory.java
nuget-agent/src/jetbrains/buildServer/nuget/agent/install/impl/NuGetActionFactoryImpl.java

index 5a5931d22eb8f99350c7140952398bf2db49ae59..ecabe9e1e96b4c21977e294d7777e199e0182774 100644 (file)
@@ -51,6 +51,7 @@ public interface CommandFactory {
      * @return some result object depending of caller's desire\r
      * @throws RunBuildException if failed to create/execure command\r
      */\r
+    @NotNull\r
     T createCommand(@NotNull File program,\r
                     @NotNull final File workingDir,\r
                     @NotNull Collection<String> argz) throws RunBuildException;\r
index b4ec51522750cfa0b81c5387945ce27591923e2c..68ea9002db28e4b016f1c056e9c243d70215653e 100644 (file)
@@ -55,6 +55,7 @@ public class NuGetActionFactoryImpl implements NuGetActionFactory {
 \r
   private CommandFactory.Callback<BuildProcess> getCallback(@NotNull final BuildRunnerContext context) {\r
     return new CommandFactory.Callback<BuildProcess>() {\r
+      @NotNull\r
       public BuildProcess createCommand(@NotNull File program,\r
                                         @NotNull File workingDir,\r
                                         @NotNull Collection<String> argz) throws RunBuildException {\r