From e33f102be5de669fb6440d264bcb290e92522dbf Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 10 Jan 2014 19:54:12 +0100 Subject: [PATCH] devkit: internal inspections moved from common code --- plugins/devkit/resources/META-INF/plugin.xml | 14 +++++++++++++- .../internal/FileEqualsUsageInspection.java | 4 ++-- .../GtkPreferredJComboBoxRendererInspection.java | 4 ++-- .../inspections}/internal/InternalInspection.java | 4 ++-- .../internal/UndesirableClassUsageInspection.java | 4 ++-- .../internal/UnsafeVfsRecursionInspection.java | 4 ++-- resources/src/META-INF/IdeaPlugin.xml | 13 ------------- 7 files changed, 23 insertions(+), 24 deletions(-) rename {java/java-impl/src/com/intellij/codeInspection => plugins/devkit/src/inspections}/internal/FileEqualsUsageInspection.java (95%) rename {java/java-impl/src/com/intellij/codeInspection => plugins/devkit/src/inspections}/internal/GtkPreferredJComboBoxRendererInspection.java (97%) rename {java/java-impl/src/com/intellij/codeInspection => plugins/devkit/src/inspections}/internal/InternalInspection.java (96%) rename {java/java-impl/src/com/intellij/codeInspection => plugins/devkit/src/inspections}/internal/UndesirableClassUsageInspection.java (96%) rename {java/java-impl/src/com/intellij/codeInspection => plugins/devkit/src/inspections}/internal/UnsafeVfsRecursionInspection.java (97%) diff --git a/plugins/devkit/resources/META-INF/plugin.xml b/plugins/devkit/resources/META-INF/plugin.xml index 8e26284d59a0..54a6ccd8b5b3 100644 --- a/plugins/devkit/resources/META-INF/plugin.xml +++ b/plugins/devkit/resources/META-INF/plugin.xml @@ -94,6 +94,19 @@ level="WARNING" implementationClass="org.jetbrains.idea.devkit.inspections.ExtensionPointBeanClassInspection"/> + + + + + @@ -102,7 +115,6 @@ - diff --git a/java/java-impl/src/com/intellij/codeInspection/internal/FileEqualsUsageInspection.java b/plugins/devkit/src/inspections/internal/FileEqualsUsageInspection.java similarity index 95% rename from java/java-impl/src/com/intellij/codeInspection/internal/FileEqualsUsageInspection.java rename to plugins/devkit/src/inspections/internal/FileEqualsUsageInspection.java index 7f09a27c03eb..f066b1d0f7b8 100644 --- a/java/java-impl/src/com/intellij/codeInspection/internal/FileEqualsUsageInspection.java +++ b/plugins/devkit/src/inspections/internal/FileEqualsUsageInspection.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 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. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.codeInspection.internal; +package org.jetbrains.idea.devkit.inspections.internal; import com.intellij.codeInspection.ProblemHighlightType; import com.intellij.codeInspection.ProblemsHolder; diff --git a/java/java-impl/src/com/intellij/codeInspection/internal/GtkPreferredJComboBoxRendererInspection.java b/plugins/devkit/src/inspections/internal/GtkPreferredJComboBoxRendererInspection.java similarity index 97% rename from java/java-impl/src/com/intellij/codeInspection/internal/GtkPreferredJComboBoxRendererInspection.java rename to plugins/devkit/src/inspections/internal/GtkPreferredJComboBoxRendererInspection.java index 8011f89dfd41..b4e2e7726dc2 100644 --- a/java/java-impl/src/com/intellij/codeInspection/internal/GtkPreferredJComboBoxRendererInspection.java +++ b/plugins/devkit/src/inspections/internal/GtkPreferredJComboBoxRendererInspection.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 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. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.codeInspection.internal; +package org.jetbrains.idea.devkit.inspections.internal; import com.intellij.codeInspection.ProblemsHolder; import com.intellij.openapi.project.Project; diff --git a/java/java-impl/src/com/intellij/codeInspection/internal/InternalInspection.java b/plugins/devkit/src/inspections/internal/InternalInspection.java similarity index 96% rename from java/java-impl/src/com/intellij/codeInspection/internal/InternalInspection.java rename to plugins/devkit/src/inspections/internal/InternalInspection.java index 3a27ebda7b5f..e5f1a0cdc2b6 100644 --- a/java/java-impl/src/com/intellij/codeInspection/internal/InternalInspection.java +++ b/plugins/devkit/src/inspections/internal/InternalInspection.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 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. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.codeInspection.internal; +package org.jetbrains.idea.devkit.inspections.internal; import com.intellij.codeInspection.BaseJavaLocalInspectionTool; import com.intellij.codeInspection.LocalInspectionToolSession; diff --git a/java/java-impl/src/com/intellij/codeInspection/internal/UndesirableClassUsageInspection.java b/plugins/devkit/src/inspections/internal/UndesirableClassUsageInspection.java similarity index 96% rename from java/java-impl/src/com/intellij/codeInspection/internal/UndesirableClassUsageInspection.java rename to plugins/devkit/src/inspections/internal/UndesirableClassUsageInspection.java index bf463e271d8e..18cbbd3bfa9c 100644 --- a/java/java-impl/src/com/intellij/codeInspection/internal/UndesirableClassUsageInspection.java +++ b/plugins/devkit/src/inspections/internal/UndesirableClassUsageInspection.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. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.codeInspection.internal; +package org.jetbrains.idea.devkit.inspections.internal; import com.intellij.codeInspection.ProblemHighlightType; import com.intellij.codeInspection.ProblemsHolder; diff --git a/java/java-impl/src/com/intellij/codeInspection/internal/UnsafeVfsRecursionInspection.java b/plugins/devkit/src/inspections/internal/UnsafeVfsRecursionInspection.java similarity index 97% rename from java/java-impl/src/com/intellij/codeInspection/internal/UnsafeVfsRecursionInspection.java rename to plugins/devkit/src/inspections/internal/UnsafeVfsRecursionInspection.java index 2747ce7e91de..97201d8e0561 100644 --- a/java/java-impl/src/com/intellij/codeInspection/internal/UnsafeVfsRecursionInspection.java +++ b/plugins/devkit/src/inspections/internal/UnsafeVfsRecursionInspection.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 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. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.codeInspection.internal; +package org.jetbrains.idea.devkit.inspections.internal; import com.intellij.codeInspection.ProblemsHolder; import com.intellij.openapi.project.Project; diff --git a/resources/src/META-INF/IdeaPlugin.xml b/resources/src/META-INF/IdeaPlugin.xml index 426419b4b0db..6f57d95b1d99 100644 --- a/resources/src/META-INF/IdeaPlugin.xml +++ b/resources/src/META-INF/IdeaPlugin.xml @@ -294,19 +294,6 @@ - - - - -