From 8a616ff610f37273f9d21b0ec00c07311d7c7c6b Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 23 Apr 2015 16:03:31 +0200 Subject: [PATCH] Cleanup (formatting) --- .../src/com/intellij/lang/FCTSBackedLighterAST.java | 7 ++++--- .../com/intellij/psi/impl/source/tree/LightTreeUtil.java | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/platform/core-api/src/com/intellij/lang/FCTSBackedLighterAST.java b/platform/core-api/src/com/intellij/lang/FCTSBackedLighterAST.java index 33151bba0359..f94bb1651247 100644 --- a/platform/core-api/src/com/intellij/lang/FCTSBackedLighterAST.java +++ b/platform/core-api/src/com/intellij/lang/FCTSBackedLighterAST.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,12 +57,13 @@ public class FCTSBackedLighterAST extends LighterAST { return new LighterASTNodeList(numKids, elements); } + @Override public void disposeChildren(@NotNull List children) { if (children instanceof LighterASTNodeList) { LighterASTNodeList nodes = (LighterASTNodeList)children; - myTreeStructure.disposeChildren(nodes.myElements, nodes.mySize); - } else { + } + else { LighterASTNode[] astNodes = new LighterASTNode[children.size()]; myTreeStructure.disposeChildren(children.toArray(astNodes), astNodes.length); } diff --git a/platform/core-impl/src/com/intellij/psi/impl/source/tree/LightTreeUtil.java b/platform/core-impl/src/com/intellij/psi/impl/source/tree/LightTreeUtil.java index 85862da37436..b79df2e17601 100644 --- a/platform/core-impl/src/com/intellij/psi/impl/source/tree/LightTreeUtil.java +++ b/platform/core-impl/src/com/intellij/psi/impl/source/tree/LightTreeUtil.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -114,7 +114,9 @@ public class LightTreeUtil { } public static void toBuffer(@NotNull LighterAST tree, @NotNull LighterASTNode node, @NotNull StringBuilder buffer, @Nullable TokenSet skipTypes) { - if (skipTypes != null && skipTypes.contains(node.getTokenType())) return; + if (skipTypes != null && skipTypes.contains(node.getTokenType())) { + return; + } if (node instanceof LighterASTTokenNode) { buffer.append(((LighterASTTokenNode)node).getText());