fix BytecodeAnalysisIntegrationTest (revert 2c7d2d9)

This commit is contained in:
Yann Cébron
2014-12-15 19:41:34 +01:00
parent 35264495c8
commit 11ee2822c0
@@ -57,12 +57,10 @@ import java.util.List;
*/
public class BytecodeAnalysisIntegrationTest extends JavaCodeInsightFixtureTestCase {
public static final String ORG_JETBRAINS_ANNOTATIONS_CONTRACT = Contract.class.getName();
private static final String HIDE_ICONS_KEY = "ide.java.hide.contract.icons";
private MessageDigest myMessageDigest;
private List<String> diffs = new ArrayList<String>();
private boolean nullableMethodRegistryValue;
private boolean hideIcons;
@Override
protected void setUp() throws Exception {
@@ -71,14 +69,11 @@ public class BytecodeAnalysisIntegrationTest extends JavaCodeInsightFixtureTestC
RegistryValue registryValue = Registry.get(ProjectBytecodeAnalysis.NULLABLE_METHOD);
nullableMethodRegistryValue = registryValue.asBoolean();
registryValue.setValue(true);
hideIcons = Registry.is(HIDE_ICONS_KEY);
Registry.get(HIDE_ICONS_KEY).setValue(false);
}
@Override
protected void tearDown() throws Exception {
Registry.get(ProjectBytecodeAnalysis.NULLABLE_METHOD).setValue(nullableMethodRegistryValue);
Registry.get(HIDE_ICONS_KEY).setValue(hideIcons);
super.tearDown();
}