Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*
* Copyright (c) 2006, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
* Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
*/
package org.opengrok.indexer.configuration;
Expand Down Expand Up @@ -238,7 +238,7 @@ public void setIndexed(boolean flag) {
*
* @param tabSize the size of tabs in this project
*/
public void setTabSize(int tabSize) {
public final void setTabSize(int tabSize) {
this.tabSize = tabSize;
}

Expand Down Expand Up @@ -267,7 +267,7 @@ public boolean isNavigateWindowEnabled() {
*
* @param navigateWindowEnabled new value of navigateWindowEnabled
*/
public void setNavigateWindowEnabled(boolean navigateWindowEnabled) {
public final void setNavigateWindowEnabled(boolean navigateWindowEnabled) {
this.navigateWindowEnabled = navigateWindowEnabled;
}

Expand All @@ -288,7 +288,7 @@ public boolean isMergeCommitsEnabled() {
/**
* @param flag true if project should handle renamed files, false otherwise.
*/
public void setHandleRenamedFiles(boolean flag) {
public final void setHandleRenamedFiles(boolean flag) {
this.handleRenamedFiles = flag;
}

Expand All @@ -302,7 +302,7 @@ public boolean isHistoryEnabled() {
/**
* @param flag true if project should have history cache, false otherwise.
*/
public void setHistoryEnabled(boolean flag) {
public final void setHistoryEnabled(boolean flag) {
this.historyEnabled = flag;
}

Expand All @@ -316,7 +316,7 @@ public boolean isHistoryCacheEnabled() {
/**
* @param flag true if project should have history cache, false otherwise.
*/
public void setHistoryCacheEnabled(boolean flag) {
public final void setHistoryCacheEnabled(boolean flag) {
this.historyCacheEnabled = flag;
}

Expand All @@ -330,14 +330,14 @@ public boolean isAnnotationCacheEnabled() {
/**
* @param flag true if project should have annotation cache, false otherwise.
*/
public void setAnnotationCacheEnabled(boolean flag) {
public final void setAnnotationCacheEnabled(boolean flag) {
this.annotationCacheEnabled = flag;
}

/**
* @param flag true if project's repositories should deal with merge commits.
*/
public void setMergeCommitsEnabled(boolean flag) {
public final void setMergeCommitsEnabled(boolean flag) {
this.mergeCommitsEnabled = flag;
}

Expand All @@ -351,7 +351,7 @@ public boolean isHistoryBasedReindex() {
/**
* @param flag true if project should handle renamed files, false otherwise.
*/
public void setHistoryBasedReindex(boolean flag) {
public final void setHistoryBasedReindex(boolean flag) {
this.historyBasedReindex = flag;
}

Expand Down Expand Up @@ -419,7 +419,7 @@ public void addGroup(Group group) {
}
}

public void setBugPage(String bugPage) {
public final void setBugPage(String bugPage) {
this.bugPage = bugPage;
}

Expand All @@ -439,7 +439,7 @@ public String getBugPage() {
* does not contain at least one capture group and the group does not
* contain a single character
*/
public void setBugPattern(String bugPattern) throws PatternSyntaxException {
public final void setBugPattern(String bugPattern) throws PatternSyntaxException {
this.bugPattern = compilePattern(bugPattern);
}

Expand All @@ -459,7 +459,7 @@ public String getReviewPage() {
}
}

public void setReviewPage(String reviewPage) {
public final void setReviewPage(String reviewPage) {
this.reviewPage = reviewPage;
}

Expand All @@ -479,7 +479,7 @@ public String getReviewPattern() {
* does not contain at least one capture group and the group does not
* contain a single character
*/
public void setReviewPattern(String reviewPattern) throws PatternSyntaxException {
public final void setReviewPattern(String reviewPattern) throws PatternSyntaxException {
this.reviewPattern = compilePattern(reviewPattern);
}

Expand All @@ -504,7 +504,7 @@ public final void completeWithDefaults() {
* 1) if the project has some non-default value; use that
* 2) if the project has a default value; use the provided configuration
*/
if (getTabSize() == defaultCfg.getTabSize()) {
if (tabSize == defaultCfg.getTabSize()) {
setTabSize(env.getTabSize());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2209,7 +2209,7 @@ private CountingWriter newXrefWriter(String path, File transientXref, boolean co
new FileOutputStream(transientXref))));
}

LockFactory pickLockFactory(RuntimeEnvironment env) {
final LockFactory pickLockFactory(RuntimeEnvironment env) {
switch (env.getLuceneLocking()) {
case ON:
case SIMPLE:
Expand Down
Loading