| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| EmptyRepositoryHashSearch |
|
| 1.0;1 |
| 1 | package org.apache.maven.shared.jar.identification.repository; | |
| 2 | ||
| 3 | /* | |
| 4 | * Licensed to the Apache Software Foundation (ASF) under one | |
| 5 | * or more contributor license agreements. See the NOTICE file | |
| 6 | * distributed with this work for additional information | |
| 7 | * regarding copyright ownership. The ASF licenses this file | |
| 8 | * to you under the Apache License, Version 2.0 (the | |
| 9 | * "License"); you may not use this file except in compliance | |
| 10 | * with the License. You may obtain a copy of the License at | |
| 11 | * | |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 13 | * | |
| 14 | * Unless required by applicable law or agreed to in writing, | |
| 15 | * software distributed under the License is distributed on an | |
| 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| 17 | * KIND, either express or implied. See the License for the | |
| 18 | * specific language governing permissions and limitations | |
| 19 | * under the License. | |
| 20 | */ | |
| 21 | ||
| 22 | import java.util.Collections; | |
| 23 | import java.util.List; | |
| 24 | ||
| 25 | /** | |
| 26 | * Empty repository hash search. Always returns an empty list. | |
| 27 | * <p/> | |
| 28 | * Used for local only implementation of a RepositoryHashSearch. It is expected for the users of this library to provide | |
| 29 | * an implementation of a {@link org.apache.maven.shared.jar.identification.repository.RepositoryHashSearch} against a | |
| 30 | * real repository. | |
| 31 | * | |
| 32 | * @plexus.component role="org.apache.maven.shared.jar.identification.repository.RepositoryHashSearch" role-hint="empty" | |
| 33 | */ | |
| 34 | 0 | public class EmptyRepositoryHashSearch |
| 35 | implements RepositoryHashSearch | |
| 36 | { | |
| 37 | public List searchBytecodeHash( String hash ) | |
| 38 | { | |
| 39 | 0 | return Collections.EMPTY_LIST; |
| 40 | } | |
| 41 | ||
| 42 | public List searchFileHash( String hash ) | |
| 43 | { | |
| 44 | 0 | return Collections.EMPTY_LIST; |
| 45 | } | |
| 46 | } |