Skip to content

Commit 319b1c2

Browse files
author
Vladimir Kotal
authored
make kwd package private in Consts (#3802)
* make kwd protected * make kwd package private
1 parent 53e96f5 commit 319b1c2

File tree

30 files changed

+58
-51
lines changed

30 files changed

+58
-51
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/ada/Consts.java

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

2020
/*
21+
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2122
* Copyright (c) 2017, Chris Fraire <[email protected]>.
2223
*/
2324
package org.opengrok.indexer.analysis.ada;
@@ -30,7 +31,7 @@
3031
*/
3132
public class Consts {
3233

33-
public static final Set<String> kwd = new HashSet<>();
34+
static final Set<String> kwd = new HashSet<>();
3435
static {
3536
kwd.add("abort");
3637
kwd.add("abs");

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/asm/Consts.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, 2018, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.indexer.analysis.asm;
2424

@@ -31,7 +31,7 @@
3131
*/
3232
public class Consts {
3333

34-
public static final Set<String> kwd = new HashSet<>();
34+
static final Set<String> kwd = new HashSet<>();
3535

3636
static {
3737
// CPP

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/c/Consts.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, 2018, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.indexer.analysis.c;
2424

@@ -30,7 +30,7 @@
3030
*/
3131
public class Consts {
3232

33-
public static final Set<String> kwd = new HashSet<>();
33+
static final Set<String> kwd = new HashSet<>();
3434

3535
static {
3636
// CPP

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/clojure/Consts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
public class Consts {
3232

33-
public static final Set<String> kwd = new HashSet<>();
33+
static final Set<String> kwd = new HashSet<>();
3434
static {
3535
kwd.add("nil");
3636
kwd.add("*");

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/csharp/Consts.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) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.indexer.analysis.csharp;
2424

@@ -31,7 +31,7 @@
3131
*/
3232
public class Consts {
3333

34-
public static final Set<String> kwd = new HashSet<>();
34+
static final Set<String> kwd = new HashSet<>();
3535
static {
3636
// C# Keywords
3737
kwd.add("abstract");

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/eiffel/Consts.java

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

2020
/*
21+
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2122
* Copyright (c) 2017, Chris Fraire <[email protected]>.
2223
*/
2324
package org.opengrok.indexer.analysis.eiffel;
@@ -30,7 +31,7 @@
3031
*/
3132
public class Consts {
3233

33-
public static final Set<String> kwd = new HashSet<>();
34+
static final Set<String> kwd = new HashSet<>();
3435

3536
static {
3637
/*

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/erlang/Consts.java

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

2020
/*
21-
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.analysis.erlang;
@@ -31,8 +31,8 @@
3131
*/
3232
public class Consts {
3333

34-
public static final Set<String> kwd = new HashSet<>();
35-
public static final Set<String> modules_kwd = new HashSet<>();
34+
static final Set<String> kwd = new HashSet<>();
35+
static final Set<String> modules_kwd = new HashSet<>();
3636
static {
3737
kwd.add("after"); // Ref. 9.1 "1.5 Reserved Words"
3838
kwd.add("and"); // Ref. 9.1 "1.5 Reserved Words"

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/fortran/Consts.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) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.indexer.analysis.fortran;
2424

@@ -31,7 +31,7 @@
3131
*/
3232
public class Consts {
3333

34-
public static final Set<String> kwd = new HashSet<>();
34+
static final Set<String> kwd = new HashSet<>();
3535

3636
static {
3737
// multi-word keywords, such as "DOUBLE PRECISION", etc. are for

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/golang/Consts.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) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.analysis.golang;
@@ -32,7 +32,7 @@
3232
*/
3333
public class Consts {
3434

35-
public static final Set<String> kwd = new HashSet<>();
35+
static final Set<String> kwd = new HashSet<>();
3636
static {
3737
// Go Programming Language Specification 2015
3838
kwd.add("break");

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/haskell/Consts.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) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.analysis.haskell;
@@ -32,7 +32,7 @@
3232
*/
3333
public class Consts {
3434

35-
public static final Set<String> kwd = new HashSet<>();
35+
static final Set<String> kwd = new HashSet<>();
3636
static {
3737
// Haskell 2010 Language Report, Chapter 2.4
3838
kwd.add("case");

0 commit comments

Comments
 (0)