From 7693bbc497fadbac92b45a152b08e50a4bccc94c Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 20 Feb 2014 20:51:45 +0400 Subject: [PATCH] cleanup --- .../impl/xml/XmlStructureViewTreeModel.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xml/impl/src/com/intellij/ide/structureView/impl/xml/XmlStructureViewTreeModel.java b/xml/impl/src/com/intellij/ide/structureView/impl/xml/XmlStructureViewTreeModel.java index 19408e7eff1c..3067f38411a9 100644 --- a/xml/impl/src/com/intellij/ide/structureView/impl/xml/XmlStructureViewTreeModel.java +++ b/xml/impl/src/com/intellij/ide/structureView/impl/xml/XmlStructureViewTreeModel.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2014 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. @@ -30,8 +30,9 @@ import org.jetbrains.annotations.Nullable; public class XmlStructureViewTreeModel extends TextEditorBasedStructureViewModel { private final XmlFile myFile; - private static final Class[] myClasses = new Class[]{XmlTag.class, XmlFile.class, XmlEntityDecl.class, XmlElementDecl.class, XmlAttlistDecl.class, XmlConditionalSection.class}; - private static final Sorter[] mySorters = {Sorter.ALPHA_SORTER}; + private static final Class[] CLASSES = + {XmlTag.class, XmlFile.class, XmlEntityDecl.class, XmlElementDecl.class, XmlAttlistDecl.class, XmlConditionalSection.class}; + private static final Sorter[] SORTERS = {Sorter.ALPHA_SORTER}; public XmlStructureViewTreeModel(XmlFile file, @Nullable Editor editor) { super(editor, file); @@ -58,7 +59,7 @@ public class XmlStructureViewTreeModel extends TextEditorBasedStructureViewModel @Override @NotNull protected Class[] getSuitableClasses() { - return myClasses; + return CLASSES; } @Override @@ -76,6 +77,6 @@ public class XmlStructureViewTreeModel extends TextEditorBasedStructureViewModel @Override @NotNull public Sorter[] getSorters() { - return mySorters; + return SORTERS; } } \ No newline at end of file