18
18
*/
19
19
20
20
/*
21
- * Copyright (c) 2006, 2022 , Oracle and/or its affiliates. All rights reserved.
21
+ * Copyright (c) 2006, 2025 , Oracle and/or its affiliates. All rights reserved.
22
22
* Portions Copyright (c) 2018, Chris Fraire <[email protected] >.
23
23
*/
24
24
package org .opengrok .indexer .configuration ;
@@ -238,7 +238,7 @@ public void setIndexed(boolean flag) {
238
238
*
239
239
* @param tabSize the size of tabs in this project
240
240
*/
241
- public void setTabSize (int tabSize ) {
241
+ public final void setTabSize (int tabSize ) {
242
242
this .tabSize = tabSize ;
243
243
}
244
244
@@ -267,7 +267,7 @@ public boolean isNavigateWindowEnabled() {
267
267
*
268
268
* @param navigateWindowEnabled new value of navigateWindowEnabled
269
269
*/
270
- public void setNavigateWindowEnabled (boolean navigateWindowEnabled ) {
270
+ public final void setNavigateWindowEnabled (boolean navigateWindowEnabled ) {
271
271
this .navigateWindowEnabled = navigateWindowEnabled ;
272
272
}
273
273
@@ -288,7 +288,7 @@ public boolean isMergeCommitsEnabled() {
288
288
/**
289
289
* @param flag true if project should handle renamed files, false otherwise.
290
290
*/
291
- public void setHandleRenamedFiles (boolean flag ) {
291
+ public final void setHandleRenamedFiles (boolean flag ) {
292
292
this .handleRenamedFiles = flag ;
293
293
}
294
294
@@ -302,7 +302,7 @@ public boolean isHistoryEnabled() {
302
302
/**
303
303
* @param flag true if project should have history cache, false otherwise.
304
304
*/
305
- public void setHistoryEnabled (boolean flag ) {
305
+ public final void setHistoryEnabled (boolean flag ) {
306
306
this .historyEnabled = flag ;
307
307
}
308
308
@@ -316,7 +316,7 @@ public boolean isHistoryCacheEnabled() {
316
316
/**
317
317
* @param flag true if project should have history cache, false otherwise.
318
318
*/
319
- public void setHistoryCacheEnabled (boolean flag ) {
319
+ public final void setHistoryCacheEnabled (boolean flag ) {
320
320
this .historyCacheEnabled = flag ;
321
321
}
322
322
@@ -330,14 +330,14 @@ public boolean isAnnotationCacheEnabled() {
330
330
/**
331
331
* @param flag true if project should have annotation cache, false otherwise.
332
332
*/
333
- public void setAnnotationCacheEnabled (boolean flag ) {
333
+ public final void setAnnotationCacheEnabled (boolean flag ) {
334
334
this .annotationCacheEnabled = flag ;
335
335
}
336
336
337
337
/**
338
338
* @param flag true if project's repositories should deal with merge commits.
339
339
*/
340
- public void setMergeCommitsEnabled (boolean flag ) {
340
+ public final void setMergeCommitsEnabled (boolean flag ) {
341
341
this .mergeCommitsEnabled = flag ;
342
342
}
343
343
@@ -351,7 +351,7 @@ public boolean isHistoryBasedReindex() {
351
351
/**
352
352
* @param flag true if project should handle renamed files, false otherwise.
353
353
*/
354
- public void setHistoryBasedReindex (boolean flag ) {
354
+ public final void setHistoryBasedReindex (boolean flag ) {
355
355
this .historyBasedReindex = flag ;
356
356
}
357
357
@@ -419,7 +419,7 @@ public void addGroup(Group group) {
419
419
}
420
420
}
421
421
422
- public void setBugPage (String bugPage ) {
422
+ public final void setBugPage (String bugPage ) {
423
423
this .bugPage = bugPage ;
424
424
}
425
425
@@ -439,7 +439,7 @@ public String getBugPage() {
439
439
* does not contain at least one capture group and the group does not
440
440
* contain a single character
441
441
*/
442
- public void setBugPattern (String bugPattern ) throws PatternSyntaxException {
442
+ public final void setBugPattern (String bugPattern ) throws PatternSyntaxException {
443
443
this .bugPattern = compilePattern (bugPattern );
444
444
}
445
445
@@ -459,7 +459,7 @@ public String getReviewPage() {
459
459
}
460
460
}
461
461
462
- public void setReviewPage (String reviewPage ) {
462
+ public final void setReviewPage (String reviewPage ) {
463
463
this .reviewPage = reviewPage ;
464
464
}
465
465
@@ -479,7 +479,7 @@ public String getReviewPattern() {
479
479
* does not contain at least one capture group and the group does not
480
480
* contain a single character
481
481
*/
482
- public void setReviewPattern (String reviewPattern ) throws PatternSyntaxException {
482
+ public final void setReviewPattern (String reviewPattern ) throws PatternSyntaxException {
483
483
this .reviewPattern = compilePattern (reviewPattern );
484
484
}
485
485
@@ -504,7 +504,7 @@ public final void completeWithDefaults() {
504
504
* 1) if the project has some non-default value; use that
505
505
* 2) if the project has a default value; use the provided configuration
506
506
*/
507
- if (getTabSize () == defaultCfg .getTabSize ()) {
507
+ if (tabSize == defaultCfg .getTabSize ()) {
508
508
setTabSize (env .getTabSize ());
509
509
}
510
510
0 commit comments