From cfd5a54fec722146f3e66ecfcfb8793fbc2ab082 Mon Sep 17 00:00:00 2001 From: leventov Date: Mon, 9 Feb 2015 08:42:31 +0700 Subject: [PATCH] Removed unused class classes --- .../net/openhft/chronicle/map/Asserts.java | 28 ------------------- .../openhft/chronicle/map/SearchState.java | 20 ------------- .../openhft/chronicle/map/HashLookupTest.java | 5 ++-- 3 files changed, 2 insertions(+), 51 deletions(-) delete mode 100644 src/main/java/net/openhft/chronicle/map/Asserts.java delete mode 100644 src/main/java/net/openhft/chronicle/map/SearchState.java diff --git a/src/main/java/net/openhft/chronicle/map/Asserts.java b/src/main/java/net/openhft/chronicle/map/Asserts.java deleted file mode 100644 index fcb71f197..000000000 --- a/src/main/java/net/openhft/chronicle/map/Asserts.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2014 Higher Frequency Trading http://www.higherfrequencytrading.com - * - * 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. - */ - -package net.openhft.chronicle.map; - -import org.jetbrains.annotations.NotNull; - -final class Asserts { - - public static void assertNotNull(@NotNull Object obj) { - assert obj != null; - } - - private Asserts() {} -} diff --git a/src/main/java/net/openhft/chronicle/map/SearchState.java b/src/main/java/net/openhft/chronicle/map/SearchState.java deleted file mode 100644 index 9c0dd31b3..000000000 --- a/src/main/java/net/openhft/chronicle/map/SearchState.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2014 Higher Frequency Trading http://www.higherfrequencytrading.com - * - * 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. - */ - -package net.openhft.chronicle.map; - -final class SearchState { -} diff --git a/src/test/java/net/openhft/chronicle/map/HashLookupTest.java b/src/test/java/net/openhft/chronicle/map/HashLookupTest.java index 3de10aae5..f33fccb5a 100644 --- a/src/test/java/net/openhft/chronicle/map/HashLookupTest.java +++ b/src/test/java/net/openhft/chronicle/map/HashLookupTest.java @@ -90,8 +90,7 @@ public class HashLookupTest { } private void valuesEqualsByKey(long k) { - List values = new ArrayList(); - SearchState searchState = new SearchState(); + List values = new ArrayList<>(); map.init0(k); map.initSearch0(); long v; @@ -99,7 +98,7 @@ public class HashLookupTest { values.add(v); Set valueSet = new HashSet(values); Assert.assertEquals(values.size(), valueSet.size()); - Assert.assertEquals(new HashSet(referenceMap.get(k)), valueSet); + Assert.assertEquals(new HashSet<>(referenceMap.get(k)), valueSet); } private void put(long k, long v) {