Skip to content

Commit 110674a

Browse files
author
Vladimir Kotal
authored
lower the visibility of the constructor in AnalyzerFactory (#3825)
* lower the visibility of the constructor * lower the visibility of the constructor
1 parent dc3a892 commit 110674a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/AbstractAnalyzer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.
21+
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2017, 2020, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.analysis;
@@ -49,7 +49,7 @@ public abstract class AbstractAnalyzer extends Analyzer {
4949
protected boolean scopesEnabled;
5050
protected boolean foldingEnabled;
5151

52-
public AbstractAnalyzer(ReuseStrategy reuseStrategy) {
52+
protected AbstractAnalyzer(ReuseStrategy reuseStrategy) {
5353
super(reuseStrategy);
5454
}
5555

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/AnalyzerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2017, 2018, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.analysis;
@@ -65,7 +65,7 @@ public abstract class AnalyzerFactory {
6565
*/
6666
protected AbstractAnalyzer.Genre genre;
6767

68-
public AnalyzerFactory(FileAnalyzerFactory.Matcher matcher, String contentType) {
68+
protected AnalyzerFactory(FileAnalyzerFactory.Matcher matcher, String contentType) {
6969
cachedAnalyzer = new ThreadLocal<>();
7070
if (matcher == null) {
7171
this.matchers = Collections.emptyList();

0 commit comments

Comments
 (0)