mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make IG test light
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ package com.siyeh.igtest.security.design_for_extension;
|
||||
class DesignForExtension {
|
||||
|
||||
|
||||
public boolean equals(Object o) {
|
||||
public boolean <warning descr="Method 'equals()' may be overridden and its functionality ignored">equals</warning>(Object o) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>DesignForExtension.java</file>
|
||||
<line>6</line>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Design for extension</problem_class>
|
||||
<description>Method <code>equals()</code> may be overridden and its functionality ignored #loc</description>
|
||||
</problem>
|
||||
</problems>
|
||||
+10
-4
@@ -1,10 +1,16 @@
|
||||
package com.siyeh.ig.security;
|
||||
|
||||
import com.siyeh.ig.IGInspectionTestCase;
|
||||
import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
import com.siyeh.ig.LightInspectionTestCase;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class DesignForExtensionInspectionTest extends IGInspectionTestCase {
|
||||
public class DesignForExtensionInspectionTest extends LightInspectionTestCase {
|
||||
|
||||
public void test() throws Exception {
|
||||
doTest("com/siyeh/igtest/security/design_for_extension", new DesignForExtensionInspection());
|
||||
public void testDesignForExtension() { doTest(); }
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected InspectionProfileEntry getInspection() {
|
||||
return new DesignForExtensionInspection();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user