do not write default TEST_SEARCH_SCOPE

This commit is contained in:
Vladimir Krivosheev
2018-04-25 11:04:52 +02:00
parent 1143752691
commit da9be47b4c
@@ -1,18 +1,4 @@
/*
* Copyright 2000-2009 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.testframework;
import com.intellij.execution.configurations.ModuleBasedConfiguration;
@@ -23,6 +9,8 @@ import org.jdom.Element;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.Nullable;
import java.util.Objects;
/**
* @author dyoma
*/
@@ -63,8 +51,6 @@ public interface TestSearchScope {
}
};
class Wrapper implements JDOMExternalizable {
@NonNls private static final String DEFAULT_NAME = "defaultName";
private TestSearchScope myScope = SINGLE_MODULE;
@@ -98,5 +84,18 @@ public interface TestSearchScope {
public String toString() {
return myScope == null? "null" : myScope.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof Wrapper)) return false;
Wrapper wrapper = (Wrapper)o;
return Objects.equals(myScope, wrapper.myScope);
}
@Override
public int hashCode() {
return Objects.hash(myScope);
}
}
}