Skip to content

Commit 8b6539e

Browse files
ahornaceVladimir Kotal
authored andcommitted
Minor style improvements
1 parent 30c7e45 commit 8b6539e

File tree

26 files changed

+29
-29
lines changed

26 files changed

+29
-29
lines changed

src/org/opensolaris/opengrok/analysis/ada/Consts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Represents a container for Ada keywords and other string constants
3030
*/
3131
public class Consts{
32-
public static final Set<String> kwd = new HashSet<String>() ;
32+
public static final Set<String> kwd = new HashSet<>() ;
3333
static {
3434
kwd.add("abort");
3535
kwd.add("abs");

src/org/opensolaris/opengrok/analysis/c/Consts.java

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

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

3636

3737
static {

src/org/opensolaris/opengrok/analysis/c/CxxConsts.java

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

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

3636

3737
static {

src/org/opensolaris/opengrok/analysis/clojure/Consts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Holds static hash set containing Clojure 1.6 keywords
3131
*/
3232
public class Consts {
33-
public static final Set<String> kwd = new HashSet<String>();
33+
public static final Set<String> kwd = new HashSet<>();
3434
static {
3535
kwd.add("nil");
3636
kwd.add("*");

src/org/opensolaris/opengrok/analysis/csharp/Consts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @author Christoph Hofmann
2828
*/
2929
public class Consts{
30-
public static final Set<String> kwd = new HashSet<String>() ;
30+
public static final Set<String> kwd = new HashSet<>() ;
3131
static {
3232
// C# Keywords
3333
kwd.add("abstract");

src/org/opensolaris/opengrok/analysis/eiffel/Consts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
*/
3232
public class Consts {
3333

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

3636
static {
37-
/*
37+
/*
3838
* The following are defined with specific non-lower casing to
3939
* distinguish them as non-key words (e.g., "TUPLE"), but Eiffel is
4040
* case-insensitive per 8.2.19 Semantics: Case Insensitivity principle.

src/org/opensolaris/opengrok/analysis/erlang/Consts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* Holds static hash set containing the Erlang keywords
3232
*/
3333
public class Consts{
34-
public static final Set<String> kwd = new HashSet<String>() ;
35-
public static final Set<String> modules_kwd = new HashSet<String>() ;
34+
public static final Set<String> kwd = new HashSet<>() ;
35+
public 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"

src/org/opensolaris/opengrok/analysis/fortran/Consts.java

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

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

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

src/org/opensolaris/opengrok/analysis/java/Consts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Holds static hash set containing the Java keywords
3131
*/
3232
public class Consts{
33-
public static final Set<String> kwd = new HashSet<String>() ;
33+
public static final Set<String> kwd = new HashSet<>() ;
3434
static {
3535
kwd.add( "abstract" );
3636
kwd.add( "assert" );

src/org/opensolaris/opengrok/analysis/javascript/Consts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
//TODO update to latest ecmascript ... (for angular support)
3737
public class Consts{
38-
public static final Set<String> kwd = new HashSet<String>() ;
38+
public static final Set<String> kwd = new HashSet<>() ;
3939
static {
4040
//constants
4141
kwd.add("true");

0 commit comments

Comments
 (0)