mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix(javac-services): do not flood logs by unnecessarily logging 'keepComments' override
This commit is contained in:
+2
-2
@@ -197,7 +197,7 @@ class DefaultActionsRegistry : ActionsRegistry() {
|
||||
/** Executes the given action item with the given */
|
||||
fun executeAction(action: ActionItem, data: ActionData) : Job {
|
||||
val onMainThread = action.requiresUIThread
|
||||
val context = if (onMainThread) Dispatchers.Main else Dispatchers.Default
|
||||
val context = if (onMainThread) Dispatchers.Main.immediate else Dispatchers.Default
|
||||
return actionsCoroutineScope.launch(context) {
|
||||
val result = withStopWatch("Action '${action.id}'") {
|
||||
action.execAction(data)
|
||||
@@ -211,7 +211,7 @@ class DefaultActionsRegistry : ActionsRegistry() {
|
||||
if (onMainThread) {
|
||||
post()
|
||||
} else {
|
||||
withContext(Dispatchers.Main) {
|
||||
withContext(Dispatchers.Main.immediate) {
|
||||
post()
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -100,7 +100,6 @@ public class NBParserFactory extends ParserFactory {
|
||||
} else if (KEEP_COMMENTS_OVERRIDE_KEEP.equals(this.keepCommentsOverride)) {
|
||||
keepDocCommentsOverride = true;
|
||||
}
|
||||
LOG.debug("'keepComments' overridden to ", this.keepCommentsOverride);
|
||||
}
|
||||
|
||||
Lexer lexer = scannerFactory.newScanner(input, keepDocCommentsOverride);
|
||||
|
||||
Reference in New Issue
Block a user