Skip to content

Commit 31c97f2

Browse files
authored
Merge pull request #3127 from idodeclare/feature/minimize_conf_reflection
Minimize reflection into Configuration
2 parents 0826ee0 + 754ebdf commit 31c97f2

File tree

7 files changed

+440
-385
lines changed

7 files changed

+440
-385
lines changed

dev/checkstyle/suppressions.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ Portions Copyright (c) 2018-2020, Chris Fraire <cfraire@me.com>.
3333
|Summary\.java|OGKUnifiedHighlighter\.java|ResponseHeaderFilter\.java|BoundedBlockingObjectPool\.java|
3434
|ObjectPool\.java|ObjectValidator\.java|ObjectFactory\.java|AbstractObjectPool\.java|
3535
|BlockingObjectPool\.java|OGKTextVecField\.java|OGKTextField\.java|
36-
|LazilyInstantiate\.java|PortChecker\.java" />
36+
|LazilyInstantiate\.java|PortChecker\.java|CloseableReentrantReadWriteLock\.java|
37+
|ResourceLock\.java" />
3738

3839
<suppress checks="ParameterNumber" files="CtagsReader\.java|Definitions\.java|
3940
|JFlexXrefUtils\.java|FileAnalyzerFactory\.java|SearchController\.java|
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* CDDL HEADER START
3+
*
4+
* The contents of this file are subject to the terms of the
5+
* Common Development and Distribution License (the "License").
6+
* You may not use this file except in compliance with the License.
7+
*
8+
* See LICENSE.txt included in this distribution for the specific
9+
* language governing permissions and limitations under the License.
10+
*
11+
* When distributing Covered Code, include this CDDL HEADER in each
12+
* file and include the License file at LICENSE.txt.
13+
* If applicable, add the following below this CDDL HEADER, with the
14+
* fields enclosed by brackets "[]" replaced with your own identifying
15+
* information: Portions Copyright [yyyy] [name of copyright owner]
16+
*
17+
* CDDL HEADER END
18+
*/
19+
20+
/*
21+
* Copyright (c) 2020, Chris Fraire <cfraire@me.com>.
22+
*/
23+
24+
package org.opengrok.indexer.configuration;
25+
26+
/**
27+
* Represents an API for consuming a {@link Configuration} instance along with
28+
* a specified value.
29+
*/
30+
@FunctionalInterface
31+
public interface ConfigurationValueConsumer<V> {
32+
void accept(Configuration configuration, V v);
33+
}

0 commit comments

Comments
 (0)