Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
2,600
void (final String key, final String nsPrefix, final String nsURI, final String value, final String type) { }
addAttribute
2,601
void (final String name, final String nsPrefix, final String nsURI) { }
elementAttributesProcessed
2,602
void (final String name, final String nsPrefix, final String nsURI) { }
endElement
2,603
void (final Reader reader, final String systemID, final int lineNr) { }
addPCData
2,604
void () { throw new ParserStoppedException(); }
stop
2,605
void (ClassPostProcessor processor) { ourClassProcessors.add(processor); }
registerClassPostProcessor
2,606
String () { return StringUtil.capitalize(getBuilderName()); }
getPresentableName
2,607
void (CompileContext context) { final String compilerId = getUsedCompilerId(context); if (LOG.isDebugEnabled()) { LOG.debug("Java compiler ID: " + compilerId); } MODULE_PATH_SPLITTER.set(context, new ModulePathSplitter(new ExplodedModuleNameFinder(context))); JavaCompilingTool compilingTool = JavaBuilderUtil.findCompil...
buildStarted
2,608
void (final CompileContext context, final ModuleChunk chunk) { // before the first compilation round starts: find and mark dirty all classes that depend on removed or moved classes so // that all such files are compiled in the first round. try { JavaBuilderUtil.markDirtyDependenciesForInitialRound(context, new DirtyFil...
chunkBuildStarted
2,609
void (CompileContext context) { myRefRegistrars.clear(); final ConcurrentMap<String, Collection<String>> stats = COMPILER_USAGE_STATISTICS.get(context); if (stats.size() == 1) { final Map.Entry<String, Collection<String>> entry = stats.entrySet().iterator().next(); final String compilerName = entry.getKey(); context.pr...
buildFinished
2,610
List<String> () { return COMPILABLE_EXTENSIONS; }
getCompilableFileExtensions
2,611
Collection<String> (Iterable<String> options) { // --add-reads module=other-module(,other-module)* // The option specifies additional modules to be considered as required by a given module. final Set<String> result = new SmartHashSet<>(); for (Iterator<String> it = options.iterator(); it.hasNext(); ) { final String opt...
collectAdditionalRequires
2,612
void (ModuleChunk chunk, Iterable<String> options, final String mode) { if (LOG.isDebugEnabled()) { LOG.debug((Iterators.contains(options, PROC_ONLY_OPTION)? "Running processors for chunk" : "Compiling chunk") + " [" + chunk.getName() + "] with options: \"" + StringUtil.join(options, " ") + "\", mode=" + mode); } }
logJavacCall
2,613
boolean ( int compilerSdkVersion, CompileContext context, ModuleChunk chunk, @NotNull JavaCompilingTool compilingTool, Iterable<String> options, Iterable<? extends File> files, OutputFileConsumer outSink, JavacCaller javacCall ) { if (Iterators.contains(options, PROC_ONLY_OPTION)) { // make a dedicated javac call for a...
invokeJavac
2,614
void (CompileContext context, String compilerName, ModuleChunk chunk) { final ConcurrentMap<String, Collection<String>> map = COMPILER_USAGE_STATISTICS.get(context); Collection<String> names = map.get(compilerName); if (names == null) { names = Collections.synchronizedSet(new HashSet<>()); final Collection<String> prev...
updateCompilerUsageStatistics
2,615
Set<String> (String str) { final Set<String> result = new SmartHashSet<>(); StringTokenizer t = new StringTokenizer(str, " \n\t", false); while (t.hasMoreTokens()) { result.add(t.nextToken()); } return result; }
parseOptions
2,616
boolean (JpsJavaCompilerConfiguration config, int compilerVersion, int chunkSdkVersion, int targetPlatformVersion) { if (!config.useReleaseOption()) { return false; } // --release option is supported in java9+ and higher if (compilerVersion >= 9 && chunkSdkVersion > 0 && targetPlatformVersion > 0) { if (chunkSdkVersion...
shouldUseReleaseOption
2,617
boolean (CompileContext context, ModuleChunk chunk, int chunkLanguageLevel, JavaCompilingTool compilingTool) { if (!isJavac(compilingTool)) { return false; // applicable to javac only } final int compilerSdkVersion = JavaVersion.current().feature; if (preferTargetJdkCompiler(context)) { final Pair<JpsSdk<JpsDummyElemen...
shouldForkCompilerProcess
2,618
boolean (int compilerVersion, int targetPlatformVersion) { if (targetPlatformVersion > compilerVersion) { return false; } if (compilerVersion < 9) { return true; } if (compilerVersion <= 11) { return targetPlatformVersion >= 6; } return targetPlatformVersion >= 7; }
isTargetReleaseSupported
2,619
boolean (final JavaCompilingTool compilingTool) { return compilingTool != null && (compilingTool.getId().equals(JavaCompilers.JAVAC_ID) || compilingTool.getId().equals(JavaCompilers.JAVAC_API_ID)); }
isJavac
2,620
boolean (CompileContext context) { Boolean val = PREFER_TARGET_JDK_COMPILER.get(context); if (val == null) { JpsJavaCompilerConfiguration config = JpsJavaExtensionService.getInstance().getCompilerConfiguration(context.getProjectDescriptor().getProject()); // default PREFER_TARGET_JDK_COMPILER.set(context, val = config....
preferTargetJdkCompiler
2,621
void (final CompileContext context, final Runnable taskRunnable) { Semaphore counter = COUNTER_KEY.get(context); assert counter != null; counter.down(); myTaskRunner.execute(() -> { try { taskRunnable.run(); } catch (Throwable e) { context.processMessage(new CompilerMessage(getBuilderName(), e)); } finally { counter.up...
submitAsyncTask
2,622
ExternalJavacProcessHandler (UUID processId, @NotNull Process process, @NotNull String commandLine, boolean keepProcessAlive) { return new ExternalJavacProcessHandler(processId, process, commandLine, keepProcessAlive) { @Override public @NotNull Future<?> executeTask(@NotNull Runnable task) { return SharedThreadPool.ge...
createProcessHandler
2,623
int () { try { final ServerSocket serverSocket = new ServerSocket(0); try { return serverSocket.getLocalPort(); } finally { //workaround for linux : calling close() immediately after opening socket //may result that socket is not closed synchronized (serverSocket) { try { serverSocket.wait(1); } catch (Throwable ignore...
findFreePort
2,624
void (CompileContext context, String option, ModuleChunk chunk) { notifyMessage(context, BuildMessage.Kind.JPS_INFO, "build.message.user.specified.option.0.for.1.may.conflict.with.calculated.option", false, option, chunk.getPresentableShortName()); }
notifyOptionPossibleConflicts
2,625
void (CompileContext context, String option, ModuleChunk chunk) { notifyMessage(context, BuildMessage.Kind.JPS_INFO, "build.message.user.specified.option.0.is.ignored.for.1", false, option, chunk.getPresentableShortName()); }
notifyOptionIgnored
2,626
void (CompileContext context, final BuildMessage.Kind kind, final String messageKey, boolean notifyOnce, Object... params) { if (!notifyOnce || SHOWN_NOTIFICATIONS.get(context).add(messageKey)) { context.processMessage(new CompilerMessage(getBuilderName(), kind, JpsBuildBundle.message(messageKey, params))); } }
notifyMessage
2,627
void (List<? super String> options, CompileContext context, ModuleChunk chunk, @Nullable ProcessorConfigProfile profile) { addCompilationOptions(JavaVersion.current().feature, options, context, chunk, profile, false); }
addCompilationOptions
2,628
void (int compilerSdkVersion, List<? super String> options, CompileContext context, ModuleChunk chunk, @Nullable ProcessorConfigProfile profile, boolean procOnlySupported) { if (!options.contains(ENCODING_OPTION)) { final CompilerEncodingConfiguration config = context.getProjectDescriptor().getEncodingConfiguration(); ...
addCompilationOptions
2,629
boolean (List<? super String> options, @Nullable AnnotationProcessingConfiguration profile) { if (profile == null || !profile.isEnabled()) { options.add(PROC_NONE_OPTION); return false; } // configuring annotation processing if (!profile.isObtainProcessorsFromClasspath()) { final String processorsPath = profile.getProc...
addAnnotationProcessingOptions
2,630
String (CompileContext context) { final JpsProject project = context.getProjectDescriptor().getProject(); return JpsJavaExtensionService.getInstance().getCompilerConfiguration(project).getJavaCompilerId(); }
getUsedCompilerId
2,631
void (int compilerSdkVersion, List<? super String> options, CompileContext context, ModuleChunk chunk) { final JpsJavaCompilerConfiguration compilerConfiguration = JpsJavaExtensionService.getInstance().getCompilerConfiguration( context.getProjectDescriptor().getProject() ); @NotNull JpsModule module = chunk.representat...
addCrossCompilationOptions
2,632
int (CompileContext context, ModuleChunk chunk, JpsJavaCompilerConfiguration compilerConfiguration) { return getModuleBytecodeTarget(context, chunk, compilerConfiguration, getLanguageLevel(chunk.representativeTarget().getModule())); }
getModuleBytecodeTarget
2,633
int (CompileContext context, ModuleChunk chunk, JpsJavaCompilerConfiguration compilerConfiguration, int languageLevel) { int bytecodeTarget = 0; for (JpsModule module : chunk.getModules()) { // use the lower possible target among modules that form the chunk final int moduleTarget = JpsJavaSdkType.parseVersion(compilerC...
getModuleBytecodeTarget
2,634
String (int major) { return JpsJavaSdkType.complianceOption(JavaVersion.compose(major)); }
complianceOption
2,635
int (@NotNull JpsModule module) { final LanguageLevel level = JpsJavaExtensionService.getInstance().getLanguageLevel(module); return level != null ? level.toJavaVersion().feature : 0; }
getLanguageLevel
2,636
int (@NotNull JpsModule module) { final int level = getLanguageLevel(module); if (level > 0) { return level; } // when compiling, if language level is not explicitly set, it is assumed to be equal to // the highest possible language level supported by target JDK final JpsSdk<JpsDummyElement> sdk = module.getSdk(JpsJava...
getTargetPlatformLanguageVersion
2,637
int (ModuleChunk chunk) { int chunkSdkVersion = -1; for (JpsModule module : chunk.getModules()) { final JpsSdk<JpsDummyElement> sdk = module.getSdk(JpsJavaSdkType.INSTANCE); if (sdk != null) { final int moduleSdkVersion = JpsJavaSdkType.getJavaVersion(sdk); if (moduleSdkVersion != 0 /*could determine the version*/ && (...
getChunkSdkVersion
2,638
void (CompileContext context, ModuleChunk chunk) { JavaBuilderUtil.cleanupChunkResources(context); ExternalJavacManager extJavacManager = ExternalJavacManager.KEY.get(context); if (extJavacManager != null) { extJavacManager.shutdownIdleProcesses(); } }
chunkBuildFinished
2,639
void (File file) { }
javaFileLoaded
2,640
void (JavacFileData data) { for (JavacFileReferencesRegistrar registrar : myRegistrars) { registrar.registerFile(myContext, data.getFilePath(), Iterators.map(data.getRefs().entrySet(), entry -> entry), data.getDefs(), data.getCasts(), data.getImplicitToStringRefs()); } }
registerJavacFileData
2,641
void (String pluginId, String dataName, byte[] data) { if (JavacFileData.CUSTOM_DATA_PLUGIN_ID.equals(pluginId) && JavacFileData.CUSTOM_DATA_KIND.equals(dataName)) { registerJavacFileData(JavacFileData.fromBytes(data)); } else { for (CustomOutputDataListener listener : JpsServiceManager.getInstance().getExtensions(Cust...
customOutputData
2,642
void (@NlsSafe String line) { if (!StringUtil.isEmpty(line)) { if (line.startsWith(ExternalJavacManager.STDOUT_LINE_PREFIX)) { //noinspection UseOfSystemOutOrSystemErr System.out.println(line); if (LOG.isDebugEnabled()) { LOG.debug(line); } } else if (line.startsWith(ExternalJavacManager.STDERR_LINE_PREFIX)) { //noinsp...
outputLineAvailable
2,643
void (Diagnostic<? extends JavaFileObject> diagnostic) { final CompilerMessage.Kind kind; switch (diagnostic.getKind()) { case ERROR: kind = BuildMessage.Kind.ERROR; myErrorCount.incrementAndGet(); break; case MANDATORY_WARNING: case WARNING: kind = BuildMessage.Kind.WARNING; myWarningCount.incrementAndGet(); break; ca...
report
2,644
String (File outputDir) { for (BuildTarget<?> target : myOutsIndex.getTargetsByOutputFile(outputDir)) { if (target instanceof ModuleBasedTarget) { return ((ModuleBasedTarget<?>)target).getModule().getName().trim(); } } return ModulePathSplitter.DEFAULT_MODULE_NAME_SEARCH.apply(outputDir); }
apply
2,645
void (final @NotNull OutputFileObject fileObject) { // generated files must be saved synchronously, because some compilers (e.g. eclipse) // may want to read them for further compilation try { final BinaryContent content = fileObject.getContent(); final File file = fileObject.getFile(); if (content != null) { content.s...
save
2,646
long () { return 100; }
getExpectedBuildTime
2,647
String (String fName) { if (fName != null) { fName = NON_ALPHANUM.matcher(fName).replaceAll("."); // collapse repeating dots fName = REPEATING_DOTS.matcher(fName).replaceAll("."); // drop leading and trailing dots final int len = fName.length(); if (len > 0) { final int start = fName.startsWith(".") ? 1 : 0; final int ...
normalizeModuleName
2,648
Set<String> (File chunkModuleInfo, Iterable<? extends File> path) { final Set<String> result = new HashSet<>(); // first, add all requires from chunk module-info final JavaModuleDescriptor chunkDescr = new JavaProjectBuilder(new OrderedClassLibraryBuilder()).addSourceFolder(chunkModuleInfo.getParentFile()).getDescripto...
collectRequired
2,649
ModuleInfo (File f) { ModuleInfo info = myCache.get(f); if (info != null) { return info; } info = ModuleInfo.EMPTY; try { Object mf = myModuleFinderCreateMethod.invoke(null, (Object)new Path[]{f.toPath()}); // ModuleFinder.of(f.toPath()); final Set<?> moduleRefs = (Set<?>)myFindAll.invoke(mf); // mf.findAll() if (!modu...
getModuleInfo
2,650
String (File dir) { if (dir.isDirectory()) { try (BufferedInputStream is = new BufferedInputStream(new FileInputStream(new File(dir, "META-INF/MANIFEST.MF")))) { final String name = new Manifest(is).getMainAttributes().getValue(AUTOMATIC_MODULE_NAME); return name != null ? name : normalizeModuleName(myModuleNameSearch....
deriveAutomaticModuleName
2,651
void (final BuildRootDescriptor rd) { getDelta(rd.getTarget()).clearRecompile(rd); }
clearRecompile
2,652
long (File file) { synchronized (myRegistrationStamps) { return myRegistrationStamps.getLong(file); } }
getEventRegistrationStamp
2,653
boolean (BuildTarget<?> target) { if (!myInitialScanPerformed.contains(target)) { return true; } FilesDelta delta = myDeltas.get(target); return delta != null && delta.hasChanges(); }
hasWorkToDo
2,654
boolean (@NotNull CompileContext context, @NotNull BuildTarget<?> target) { if (!myInitialScanPerformed.contains(target)) { return false; } final FilesDelta delta = myDeltas.get(target); if (delta == null) { return false; } final long targetBuildStart = context.getCompilationStartStamp(target); if (targetBuildStart <= ...
hasUnprocessedChanges
2,655
void (BuildTarget<?> target) { myInitialScanPerformed.add(target); }
markInitialScanPerformed
2,656
void (@Nullable CompileContext context, BuildTarget<?> target, final File file) { final FilesDelta currentDelta = getRoundDelta(CURRENT_ROUND_DELTA_KEY, context); if (currentDelta != null) { currentDelta.addDeleted(file); } final FilesDelta nextDelta = getRoundDelta(NEXT_ROUND_DELTA_KEY, context); if (nextDelta != null...
registerDeleted
2,657
void (BuildTarget<?> target) { final FilesDelta delta = myDeltas.get(target); if (delta != null) { delta.clearDeletedPaths(); } }
clearDeletedPaths
2,658
Collection<String> (BuildTarget<?> target) { final FilesDelta delta = myDeltas.get(target); if (delta != null) { return delta.getAndClearDeletedPaths(); } return Collections.emptyList(); }
getAndClearDeletedPaths
2,659
FilesDelta (BuildTarget<?> buildTarget) { synchronized (myDeltas) { FilesDelta delta = myDeltas.get(buildTarget); if (delta == null) { delta = new FilesDelta(); myDeltas.put(buildTarget, delta); } return delta; } }
getDelta
2,660
boolean (BuildTarget<?> target) { return !myAlwaysScanFS && myInitialScanPerformed.contains(target); }
isInitialScanPerformed
2,661
FilesDelta (@NotNull CompileContext context, BuildTarget<?> target) { if (target instanceof ModuleBuildTarget) { // multiple compilation rounds are applicable to ModuleBuildTarget only final FilesDelta lastRoundDelta = getRoundDelta(CURRENT_ROUND_DELTA_KEY, context); if (lastRoundDelta != null) { return lastRoundDelta;...
getEffectiveFilesDelta
2,662
boolean (@Nullable CompileContext context, CompilationRound round, BuildRootDescriptor rd, File file) { FilesDelta delta = getRoundDelta(round == CompilationRound.NEXT? NEXT_ROUND_DELTA_KEY : CURRENT_ROUND_DELTA_KEY, context); if (delta == null) { delta = getDelta(rd.getTarget()); } return delta.isMarkedRecompile(rd, f...
isMarkedForRecompilation
2,663
boolean (CompileContext context, BuildRootDescriptor rd) { if (context == null) { return false; } Set<? extends BuildTarget<?>> targets = CONTEXT_TARGETS_KEY.get(context, Collections.emptySet()); return targets.contains(rd.getTarget()); }
isInCurrentContextTargets
2,664
void () { clearContextRoundData(null); clearContextChunk(null); myInitialScanPerformed.clear(); myDeltas.clear(); synchronized (myRegistrationStamps) { myRegistrationStamps.clear(); } }
clearAll
2,665
void (@Nullable CompileContext context) { setRoundDelta(NEXT_ROUND_DELTA_KEY, context, null); setRoundDelta(CURRENT_ROUND_DELTA_KEY, context, null); }
clearContextRoundData
2,666
void (@Nullable CompileContext context) { setContextTargets(context, null); }
clearContextChunk
2,667
void (@NotNull CompileContext context, BuildTargetChunk chunk) { setContextTargets(context, chunk.getTargets()); }
beforeChunkBuildStart
2,668
void (@NotNull CompileContext context, ModuleChunk chunk) { FilesDelta currentDelta = getRoundDelta(NEXT_ROUND_DELTA_KEY, context); if (currentDelta == null) { // this is the initial round. // Need to make a snapshot of the FS state so that all builders in the chain see the same picture final List<FilesDelta> deltas = ...
beforeNextRoundStart
2,669
void (@Nullable CompileContext context, @Nullable Set<? extends BuildTarget<?>> targets) { if (context != null) { CONTEXT_TARGETS_KEY.set(context, targets); } }
setContextTargets
2,670
void (@NotNull Key<FilesDelta> key, @Nullable CompileContext context, @Nullable FilesDelta delta) { if (context != null) { key.set(context, delta); } }
setRoundDelta
2,671
void () { myDataLock.lock(); }
lockData
2,672
void () { myDataLock.unlock(); }
unlockData
2,673
void (FilesDelta other) { other.lockData(); try { myDeletedPaths.addAll(other.myDeletedPaths); for (Map.Entry<BuildRootDescriptor, Set<File>> entry : other.myFilesToRecompile.entrySet()) { _addToRecompiled(entry.getKey(), entry.getValue()); } } finally { other.unlockData(); } }
addAll
2,674
boolean () { lockData(); try { if (!myDeletedPaths.isEmpty()) { return true; } if(!myFilesToRecompile.isEmpty()) { for (Set<File> files : myFilesToRecompile.values()) { if (!files.isEmpty()) { return true; } } } return false; } finally { unlockData(); } }
hasChanges
2,675
boolean (BuildRootDescriptor root, File file) { lockData(); try { final boolean added = _addToRecompiled(root, file); if (added) { if (!myDeletedPaths.isEmpty()) { // optimization myDeletedPaths.remove(FileUtil.toCanonicalPath(file.getPath())); } } return added; } finally { unlockData(); } }
markRecompile
2,676
boolean (BuildRootDescriptor root, File file) { lockData(); try { String path = null; final boolean isMarkedDeleted = !myDeletedPaths.isEmpty() && myDeletedPaths.contains(path = FileUtil.toCanonicalPath(file.getPath())); if (!isMarkedDeleted) { if (!file.exists()) { // incorrect paths data recovery, so that the next ma...
markRecompileIfNotDeleted
2,677
boolean (BuildRootDescriptor root, File file) { if (Utils.IS_TEST_MODE) { LOG.info("Marking dirty: " + file.getPath()); } return _addToRecompiled(root, Collections.singleton(file)); }
_addToRecompiled
2,678
boolean (BuildRootDescriptor root, Collection<? extends File> filesToAdd) { Set<File> files = myFilesToRecompile.get(root); if (files == null) { files = FileCollectionFactory.createCanonicalFileLinkedSet(); myFilesToRecompile.put(root, files); } return files.addAll(filesToAdd); }
_addToRecompiled
2,679
void (File file) { final String path = FileUtil.toCanonicalPath(file.getPath()); lockData(); try { // ensure the file is not marked to recompilation anymore for (Set<File> files : myFilesToRecompile.values()) { files.remove(file); } myDeletedPaths.add(path); if (Utils.IS_TEST_MODE) { LOG.info("Marking deleted: " + path...
addDeleted
2,680
void () { lockData(); try { myDeletedPaths.clear(); } finally { unlockData(); } }
clearDeletedPaths
2,681
Set<String> () { lockData(); try { try { Set<String> result = CollectionFactory.createFilePathLinkedSet(); result.addAll(myDeletedPaths); return result; } finally { myDeletedPaths.clear(); } } finally { unlockData(); } }
getAndClearDeletedPaths
2,682
boolean (BuildRootDescriptor rd, File file) { lockData(); try { final Set<File> files = myFilesToRecompile.get(rd); return files != null && files.contains(file); } finally { unlockData(); } }
isMarkedRecompile
2,683
String () { return JpsBuildBundle.message("progress.message.generating.rmi.stubs"); }
getProgressMessage
2,684
void (CompileContext context) { super.buildStarted(context); final RmicCompilerOptions rmicOptions = getOptions(context); IS_ENABLED.set(context, rmicOptions != null && rmicOptions.IS_EANABLED); }
buildStarted
2,685
boolean (CompileContext context, ModuleChunk chunk) { return IS_ENABLED.get(context, Boolean.FALSE); }
isEnabled
2,686
ExitCode (CompileContext context, ModuleChunk chunk, InstrumentationClassFinder finder, OutputConsumer outputConsumer) { ExitCode exitCode = ExitCode.NOTHING_DONE; if (!outputConsumer.getCompiledClasses().isEmpty()) { final Map<ModuleBuildTarget, Collection<ClassItem>> remoteClasses = new HashMap<>(); for (ModuleBuildT...
performBuild
2,687
ExitCode (final CompileContext context, Map<ModuleBuildTarget, Collection<ClassItem>> remoteClasses, ModuleChunk chunk, OutputConsumer outputConsumer) { ExitCode exitCode = ExitCode.NOTHING_DONE; final Collection<File> classpath = ProjectPaths.getCompilationClasspath(chunk, false); final StringBuilder buf = new StringB...
generateRmiStubs
2,688
void (@NotNull ProcessEvent event, @NotNull Key outputType) { if (outputType == ProcessOutputTypes.STDOUT) { stdOutParser.append(event.getText()); } else if (outputType == ProcessOutputTypes.STDERR) { stdErrParser.append(event.getText()); } }
onTextAvailable
2,689
Collection<String> (final ModuleBuildTarget target, final String compilerPath, final String classpath, final RmicCompilerOptions config, final Collection<ClassItem> items) { final List<String> commandLine = new ArrayList<>(); commandLine.add(compilerPath); if (config.DEBUGGING_INFO) { commandLine.add("-g"); } if(config...
createStartupCommand
2,690
String (ModuleChunk chunk) { final JpsSdk<?> sdk = chunk.representativeTarget().getModule().getSdk(JpsJavaSdkType.INSTANCE); if (sdk != null) { final String executable = JpsJavaSdkType.getJavaExecutable(sdk); final int idx = FileUtil.toSystemIndependentName(executable).lastIndexOf("/"); if (idx >= 0) { return executabl...
getPathToRmic
2,691
Collection<File> (File[] candidates) { if (candidates == null || candidates.length == 0) { return Collections.emptyList(); } final Collection<File> result = new SmartList<>(); final String[] suffixes = new String[GEN_SUFFIXES.length]; for (int i = 0; i < GEN_SUFFIXES.length; i++) { suffixes[i] = baseName + GEN_SUFFIXES...
selectGeneratedFiles
2,692
boolean () { return myErrorsReported; }
isErrorsReported
2,693
void (@NlsSafe String line) { if (!StringUtil.isEmpty(line)) { BuildMessage.Kind kind = BuildMessage.Kind.INFO; if (line.contains("error")) { kind = BuildMessage.Kind.ERROR; myErrorsReported = true; } else if (line.contains("warning")) { kind = BuildMessage.Kind.WARNING; } myContext.processMessage(new CompilerMessage(m...
lineAvailable
2,694
void (CompileContext context) { final ProjectDescriptor pd = context.getProjectDescriptor(); final JpsJavaCompilerConfiguration config = JpsJavaExtensionService.getInstance().getCompilerConfiguration(pd.getProject()); myIsEnabled = config.isAddNotNullAssertions(); myNotNulls = ArrayUtilRt.toStringArray(config.getNotNul...
buildStarted
2,695
String () { return JpsBuildBundle.message("builder.name.notnull.instrumentation"); }
getPresentableName
2,696
String () { return JpsBuildBundle.message("progress.message.adding.notnull.assertions"); }
getProgressMessage
2,697
boolean (CompileContext context, ModuleChunk chunk) { return myIsEnabled; }
isEnabled
2,698
boolean (CompiledClass compiledClass, int classFileVersion) { return (classFileVersion & 0xFFFF) >= Opcodes.V1_5 && !"module-info".equals(compiledClass.getClassName()); }
canInstrument
2,699
void (CompileContext context, ModuleChunk chunk) { final InstrumentationClassFinder finder = CLASS_FINDER.get(context); if (finder != null) { CLASS_FINDER.set(context, null); finder.releaseResources(); } }
chunkBuildFinished