@@ -103,21 +103,20 @@ CoreTestHelper exitProjectConstruction() {
103103 * root to project root dir, command to compile the project and the computed paths to config files
104104 * which will be passed through gradle command line arguments.
105105 *
106- * @param outDirPath Path to serialization output directory,
107- * @param jSpecifyEnabled Flag to enable jSpecify
106+ * @param outDirPath Path to serialization output directory,
107+ * @param jSpecifyModeEnabled Flag to enable jSpecify mode when running NullAway.
108108 * @return The command to build the project including the command line arguments, this command can
109- * * be executed from any directory.
109+ * * be executed from any directory.
110110 */
111- public String computeTargetBuildCommand (Path outDirPath , boolean jSpecifyEnabled ) {
111+ public String computeTargetBuildCommand (Path outDirPath , boolean jSpecifyModeEnabled ) {
112112 return String .format (
113113 "%s && ./gradlew %s %s -Plibrary-model-loader-path=%s -Pjspecify=%s --rerun-tasks" ,
114114 Utility .changeDirCommand (pathToProject ),
115115 computeCompileGradleCommandForModules (modules .subList (0 , 1 )),
116116 String .join (" " , Utility .computeConfigPathsWithGradleArguments (outDirPath , modules )),
117117 Utility .getPathToLibraryModel (outDirPath )
118118 .resolve (Paths .get ("build" , "libs" , "librarymodel.jar" )),
119- jSpecifyEnabled
120- );
119+ jSpecifyModeEnabled );
121120 }
122121
123122 /**
@@ -126,12 +125,13 @@ public String computeTargetBuildCommand(Path outDirPath, boolean jSpecifyEnabled
126125 * loader jar and the computed paths to config files which will be passed through gradle command
127126 * line arguments.
128127 *
129- * @param outDirPath Path to serialization output directory,
130- * @param jSpecifyEnabled Flag to enable jSpecify
128+ * @param outDirPath Path to serialization output directory,
129+ * @param jSpecifyModeEnabled Flag to enable jSpecify mode when running NullAway.
131130 * @return The command to build the project including the command line arguments, this command can
132- * * be executed from any directory.
131+ * * be executed from any directory.
133132 */
134- public String computeTargetBuildCommandWithLibraryModelLoaderDependency (Path outDirPath , boolean jSpecifyEnabled ) {
133+ public String computeTargetBuildCommandWithLibraryModelLoaderDependency (
134+ Path outDirPath , boolean jSpecifyModeEnabled ) {
135135 return String .format (
136136 "%s && ./gradlew library-model-loader:jar --rerun-tasks && %s && ./gradlew %s %s -Plibrary-model-loader-path=%s -Pjspecify=%s --rerun-tasks" ,
137137 Utility .changeDirCommand (outDirPath .resolve ("Annotator" )),
@@ -140,7 +140,7 @@ public String computeTargetBuildCommandWithLibraryModelLoaderDependency(Path out
140140 String .join (" " , Utility .computeConfigPathsWithGradleArguments (outDirPath , modules )),
141141 Utility .getPathToLibraryModel (outDirPath )
142142 .resolve (Paths .get ("build" , "libs" , "librarymodel.jar" )),
143- jSpecifyEnabled );
143+ jSpecifyModeEnabled );
144144 }
145145
146146 /**
@@ -149,13 +149,13 @@ public String computeTargetBuildCommandWithLibraryModelLoaderDependency(Path out
149149 * loader jar and the computed paths to config files which will be passed through gradle command
150150 * line arguments.
151151 *
152- * @param outDirPath Path to serialization output directory,
153- * @param jSpecifyEnabled Flag to enable jSpecify
152+ * @param outDirPath Path to serialization output directory,
153+ * @param jSpecifyModeEnabled Flag to enable jSpecify mode when running NullAway.
154154 * @return The command to build the project including the command line arguments, this command can
155- * * be executed from any directory.
155+ * * be executed from any directory.
156156 */
157157 public String computeDownstreamDependencyBuildCommandWithLibraryModelLoaderDependency (
158- Path outDirPath , boolean jSpecifyEnabled ) {
158+ Path outDirPath , boolean jSpecifyModeEnabled ) {
159159 return String .format (
160160 "%s && ./gradlew library-model-loader:jar --rerun-tasks && %s && ./gradlew %s %s -Plibrary-model-loader-path=%s -Pjspecify=%s --rerun-tasks" ,
161161 Utility .changeDirCommand (outDirPath .resolve ("Annotator" )),
@@ -164,8 +164,7 @@ public String computeDownstreamDependencyBuildCommandWithLibraryModelLoaderDepen
164164 String .join (" " , Utility .computeConfigPathsWithGradleArguments (outDirPath , modules )),
165165 Utility .getPathToLibraryModel (outDirPath )
166166 .resolve (Paths .get ("build" , "libs" , "librarymodel.jar" )),
167- jSpecifyEnabled
168- );
167+ jSpecifyModeEnabled );
169168 }
170169
171170 /**
0 commit comments