mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -179,7 +179,7 @@ public class FileStatusMap implements Disposable {
|
||||
|
||||
public void markFileUpToDate(@NotNull Document document, int passId) {
|
||||
synchronized(myDocumentToStatusMap){
|
||||
FileStatus status = myDocumentToStatusMap.computeIfAbsent(document, k -> new FileStatus(myProject));
|
||||
FileStatus status = myDocumentToStatusMap.computeIfAbsent(document, __ -> new FileStatus(myProject));
|
||||
status.defensivelyMarked=false;
|
||||
if (passId == Pass.WOLF) {
|
||||
status.wolfPassFinished = true;
|
||||
|
||||
+3
-8
@@ -236,8 +236,7 @@ public class UpdateHighlightersUtil {
|
||||
|
||||
final SeverityRegistrar severityRegistrar = SeverityRegistrar.getSeverityRegistrar(project);
|
||||
final HighlightersRecycler infosToRemove = new HighlightersRecycler();
|
||||
DaemonCodeAnalyzerEx
|
||||
.processHighlights(document, project, null, range.getStartOffset(), range.getEndOffset(), info -> {
|
||||
DaemonCodeAnalyzerEx.processHighlights(document, project, null, range.getStartOffset(), range.getEndOffset(), info -> {
|
||||
if (info.getGroup() == group) {
|
||||
RangeHighlighter highlighter = info.highlighter;
|
||||
int hiStart = highlighter.getStartOffset();
|
||||
@@ -409,13 +408,9 @@ public class UpdateHighlightersUtil {
|
||||
return layer;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static RangeMarker getOrCreate(@NotNull Document document, @NotNull Map<TextRange, RangeMarker> ranges2markersCache, @NotNull TextRange textRange) {
|
||||
RangeMarker marker = ranges2markersCache.get(textRange);
|
||||
if (marker == null) {
|
||||
marker = document.createRangeMarker(textRange);
|
||||
ranges2markersCache.put(textRange, marker);
|
||||
}
|
||||
return marker;
|
||||
return ranges2markersCache.computeIfAbsent(textRange, __ -> document.createRangeMarker(textRange));
|
||||
}
|
||||
|
||||
private static final Key<Boolean> TYPING_INSIDE_HIGHLIGHTER_OCCURRED = Key.create("TYPING_INSIDE_HIGHLIGHTER_OCCURRED");
|
||||
|
||||
@@ -122,7 +122,7 @@ public interface RangeHighlighter extends RangeMarker {
|
||||
void setErrorStripeMarkColor(@Nullable Color color);
|
||||
|
||||
/**
|
||||
* Returns the object whose <code>toString()</code> method is called to get the text of the tooltip
|
||||
* Returns the object whose {@code toString()} method is called to get the text of the tooltip
|
||||
* for the error stripe marker added by the highlighter.
|
||||
*
|
||||
* @return the error stripe tooltip objects, or null if the highlighter does not add any error
|
||||
@@ -132,7 +132,7 @@ public interface RangeHighlighter extends RangeMarker {
|
||||
Object getErrorStripeTooltip();
|
||||
|
||||
/**
|
||||
* Sets the object whose <code>toString()</code> method is called to get the text of the tooltip
|
||||
* Sets the object whose {@code toString()} method is called to get the text of the tooltip
|
||||
* for the error stripe marker added by the highlighter.
|
||||
*
|
||||
* @param tooltipObject the error stripe tooltip objects, or null if the highlighter does not
|
||||
|
||||
Reference in New Issue
Block a user