From e2b2e55f577a87ca6defe7c007d015f1021a8093 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Tue, 24 Jan 2017 12:58:08 +0100 Subject: [PATCH] cleanup (cast not required) --- .../openapi/roots/impl/ContentEntryImpl.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java index 298c2c15e58d..c0046c5eb3ca 100644 --- a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java +++ b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.intellij.openapi.roots.impl; import com.intellij.openapi.Disposable; @@ -81,14 +80,14 @@ public class ContentEntryImpl extends RootModelComponentBase implements ContentE } private void initSourceFolders(@NotNull Element e) throws InvalidDataException { - for (Object child : e.getChildren(SourceFolderImpl.ELEMENT_NAME)) { - addSourceFolder(new SourceFolderImpl((Element)child, this)); + for (Element child : e.getChildren(SourceFolderImpl.ELEMENT_NAME)) { + addSourceFolder(new SourceFolderImpl(child, this)); } } private void initExcludeFolders(@NotNull Element e) throws InvalidDataException { - for (Object child : e.getChildren(ExcludeFolderImpl.ELEMENT_NAME)) { - ExcludeFolderImpl excludeFolder = new ExcludeFolderImpl((Element)child, this); + for (Element child : e.getChildren(ExcludeFolderImpl.ELEMENT_NAME)) { + ExcludeFolderImpl excludeFolder = new ExcludeFolderImpl(child, this); addExcludeFolder(excludeFolder); } } @@ -234,7 +233,7 @@ public class ContentEntryImpl extends RootModelComponentBase implements ContentE @NotNull private SourceFolder addSourceFolder(@NotNull SourceFolderImpl f) { mySourceFolders.add(f); - Disposer.register(this, f); //rewire source folder dispose parent from rootmodel to this content root + Disposer.register(this, f); //rewire source folder dispose parent from root model to this content root return f; }