diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/entries/SingleEntryAdaptingEntryListFilter.java b/spring-integration-file/src/main/java/org/springframework/integration/file/entries/SingleEntryAdaptingEntryListFilter.java deleted file mode 100644 index fc985ff083..0000000000 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/entries/SingleEntryAdaptingEntryListFilter.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2002-2010 the original author or authors. - * - * 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 org.springframework.integration.file.entries; - -import org.springframework.util.Assert; - -/** - * This simply takes an {@link org.springframework.integration.file.entries.EntryListFilter} - * and produces an object that can field just one argument instead of an array. - * - * @author Josh Long - */ -public class SingleEntryAdaptingEntryListFilter extends AbstractEntryListFilter { - - /** - * the {@link org.springframework.integration.file.entries.EntryListFilter} that you'd like to delegate to - */ - private volatile EntryListFilter entryListFilter; - - public SingleEntryAdaptingEntryListFilter(EntryListFilter entryListFilter) { - Assert.notNull(entryListFilter, "entryListFilter must not be null"); - this.entryListFilter = entryListFilter; - } - - - @Override - @SuppressWarnings("unchecked") - public boolean accept(T t) { - T[] ts = (T[]) new Object[]{t}; - return this.entryListFilter.filterEntries(ts).size() == 1; - } - -}