From 27364a87b734c2108f6f0bbfbc3e85fd17d73b95 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 25 Jun 2014 19:19:34 +0400 Subject: [PATCH] cleanup --- .../java15api/Java15APIUsageInspectionBase.java | 4 ++-- .../intellij/openapi/editor/LazyRangeMarkerFactory.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java/java-analysis-impl/src/com/intellij/codeInspection/java15api/Java15APIUsageInspectionBase.java b/java/java-analysis-impl/src/com/intellij/codeInspection/java15api/Java15APIUsageInspectionBase.java index 29169ddaf5a2..006e5d946c22 100644 --- a/java/java-analysis-impl/src/com/intellij/codeInspection/java15api/Java15APIUsageInspectionBase.java +++ b/java/java-analysis-impl/src/com/intellij/codeInspection/java15api/Java15APIUsageInspectionBase.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. @@ -74,7 +74,7 @@ public class Java15APIUsageInspectionBase extends BaseJavaBatchLocalInspectionTo loadForbiddenApi("ignore16List.txt", ourIgnored16ClassesAPI); } - private static Set ourGenerifiedClasses = new HashSet(); + private static final Set ourGenerifiedClasses = new HashSet(); static { ourGenerifiedClasses.add("javax.swing.JComboBox"); ourGenerifiedClasses.add("javax.swing.ListModel"); diff --git a/platform/platform-api/src/com/intellij/openapi/editor/LazyRangeMarkerFactory.java b/platform/platform-api/src/com/intellij/openapi/editor/LazyRangeMarkerFactory.java index 0659c168b483..3780e3a79e0c 100644 --- a/platform/platform-api/src/com/intellij/openapi/editor/LazyRangeMarkerFactory.java +++ b/platform/platform-api/src/com/intellij/openapi/editor/LazyRangeMarkerFactory.java @@ -37,6 +37,10 @@ public class LazyRangeMarkerFactory { private final Project myProject; private static final Key> LAZY_MARKERS_KEY = Key.create("LAZY_MARKERS_KEY"); + public static LazyRangeMarkerFactory getInstance(Project project) { + return ServiceManager.getService(project, LazyRangeMarkerFactory.class); + } + public LazyRangeMarkerFactory(@NotNull Project project, @NotNull final FileDocumentManager fileDocumentManager) { myProject = project; @@ -89,10 +93,6 @@ public class LazyRangeMarkerFactory { markers.add(marker); } - public static LazyRangeMarkerFactory getInstance(Project project) { - return ServiceManager.getService(project, LazyRangeMarkerFactory.class); - } - @NotNull public RangeMarker createRangeMarker(@NotNull final VirtualFile file, final int offset) { return ApplicationManager.getApplication().runReadAction(new Computable() {