code style
authorSergey Ignatov <sergey.ignatov@jetbrains.com>
Sat, 24 Oct 2015 14:13:51 +0000 (17:13 +0300)
committerSergey Ignatov <sergey.ignatov@jetbrains.com>
Mon, 26 Oct 2015 09:18:13 +0000 (12:18 +0300)
platform/core-api/src/com/intellij/lang/folding/CompositeFoldingBuilder.java

index 406e4745d771f8d2f7344582283ecdec43ff244d..d80e6639a1dd576d96b50f58d2881d16d1b8af41 100644 (file)
@@ -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.
@@ -35,14 +35,14 @@ import java.util.Set;
  * for a particular language.
  *
  * @author Konstantin Bulenkov
- * @see com.intellij.lang.folding.LanguageFolding
+ * @see LanguageFolding
  * @since 9.0
  */
 public class CompositeFoldingBuilder extends FoldingBuilderEx implements DumbAware {
   public static final Key<FoldingBuilder> FOLDING_BUILDER = new Key<FoldingBuilder>("FOLDING_BUILDER");
   private final List<FoldingBuilder> myBuilders;
 
-  CompositeFoldingBuilder(List<FoldingBuilder> builders) {    
+  CompositeFoldingBuilder(List<FoldingBuilder> builders) {
     myBuilders = builders;
   }
 
@@ -68,12 +68,13 @@ public class CompositeFoldingBuilder extends FoldingBuilderEx implements DumbAwa
     return descriptors.toArray(new FoldingDescriptor[descriptors.size()]);
   }
 
-    @Override
+  @Override
   public String getPlaceholderText(@NotNull ASTNode node, @NotNull TextRange range) {
     final FoldingBuilder builder = node.getUserData(FOLDING_BUILDER);
     return builder == null ? node.getText() : builder instanceof FoldingBuilderEx
-                                              ? ((FoldingBuilderEx)builder).getPlaceholderText(node, range) : builder.getPlaceholderText(node);
-    }
+                                              ? ((FoldingBuilderEx)builder).getPlaceholderText(node, range)
+                                              : builder.getPlaceholderText(node);
+  }
 
   @Override
   public String getPlaceholderText(@NotNull ASTNode node) {