Skip to content

Commit 9bfbcaf

Browse files
committed
Extend license years in copyright header to 2022
[closes #242] Signed-off-by: Mark Paluch <[email protected]>
1 parent 8927d2a commit 9bfbcaf

File tree

311 files changed

+427
-426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+427
-426
lines changed

.mvn/wrapper/MavenWrapperDownloader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2020 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

NOTICE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Reactive Relational Database Connectivity
22

3-
Copyright 2017-2021 the original author or authors.
3+
Copyright 2017-2022 the original author or authors.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
~ Copyright 2017-2021 the original author or authors.
2+
~ Copyright 2017-2022 the original author or authors.
33
~
44
~ Licensed under the Apache License, Version 2.0 (the "License");
55
~ you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/BenchmarkSettings.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/ParametrizedMssqlStatementBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/PooledBenchmarks.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -59,15 +59,15 @@ public ConnectionHolder() {
5959
MsSqlServerExtension extension = new MsSqlServerExtension();
6060
extension.initialize();
6161

62-
jdbc = extension.getDataSource();
62+
this.jdbc = extension.getDataSource();
6363

6464
MssqlConnectionConfiguration configuration =
6565
MssqlConnectionConfiguration.builder().host(extension.getHost()).username(extension.getUsername()).password(extension.getPassword()).build();
6666

6767
MssqlConnectionFactory mssqlConnectionFactory = new MssqlConnectionFactory(configuration);
6868
ConnectionPoolConfiguration poolConfiguration = ConnectionPoolConfiguration.builder(mssqlConnectionFactory).maxSize(4).build();
6969

70-
r2dbc = new ConnectionPool(poolConfiguration);
70+
this.r2dbc = new ConnectionPool(poolConfiguration);
7171
}
7272
}
7373

src/jmh/java/io/r2dbc/mssql/StagedResultSizeBenchmarks.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -68,12 +68,12 @@ public ConnectionHolder() {
6868
try {
6969
MsSqlServerExtension extension = new MsSqlServerExtension();
7070
extension.initialize();
71-
jdbc = extension.getDataSource().getConnection();
71+
this.jdbc = extension.getDataSource().getConnection();
7272

7373

7474
MssqlConnectionConfiguration configuration =
7575
extension.configBuilder().preferCursoredExecution(sql -> sql.contains(" /* cursored */")).build();
76-
r2dbc = new MssqlConnectionFactory(configuration).create().block();
76+
this.r2dbc = new MssqlConnectionFactory(configuration).create().block();
7777
} catch (SQLException e) {
7878
throw new RuntimeException(e);
7979
}
@@ -82,7 +82,7 @@ public ConnectionHolder() {
8282
@Setup
8383
public void setup() {
8484
try {
85-
Statement statement = jdbc.createStatement();
85+
Statement statement = this.jdbc.createStatement();
8686

8787
try {
8888
statement.execute("DROP TABLE result_sizes");
@@ -91,8 +91,8 @@ public void setup() {
9191

9292
statement.execute("CREATE TABLE result_sizes (id int, name VARCHAR(255))");
9393

94-
for (int i = 0; i < resultSize; i++) {
95-
statement.execute(String.format("INSERT INTO result_sizes VALUES(%d, '%s')", i, UUID.randomUUID().toString()));
94+
for (int i = 0; i < this.resultSize; i++) {
95+
statement.execute(String.format("INSERT INTO result_sizes VALUES(%d, '%s')", i, UUID.randomUUID()));
9696
}
9797
} catch (SQLException e) {
9898
throw new RuntimeException(e);

src/jmh/java/io/r2dbc/mssql/StatementBenchmarks.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -64,9 +64,9 @@ public ConnectionHolder() {
6464
MsSqlServerExtension extension = new MsSqlServerExtension();
6565
extension.initialize();
6666

67-
jdbc = extension.getDataSource().getConnection();
67+
this.jdbc = extension.getDataSource().getConnection();
6868

69-
Statement statement = jdbc.createStatement();
69+
Statement statement = this.jdbc.createStatement();
7070

7171
try {
7272
statement.execute("DROP TABLE simple_test");
@@ -81,7 +81,7 @@ public ConnectionHolder() {
8181

8282
MssqlConnectionConfiguration configuration =
8383
extension.configBuilder().preferCursoredExecution(sql -> sql.contains(" /* cursored */")).build();
84-
r2dbc = new MssqlConnectionFactory(configuration).create().block();
84+
this.r2dbc = new MssqlConnectionFactory(configuration).create().block();
8585
} catch (SQLException e) {
8686
throw new RuntimeException(e);
8787
}

src/jmh/java/io/r2dbc/mssql/codec/BinaryCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/BooleanCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/ByteCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/CodecBenchmarkSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/DecimalCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/DoubleCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/IntegerCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/LocalDateCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/LocalDateTimeCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/LocalTimeCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/LongCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/MoneyCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/ShortCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/jmh/java/io/r2dbc/mssql/codec/StringCodecBenchmarks.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -43,14 +43,14 @@ public class StringCodecBenchmarks extends CodecBenchmarkSupport {
4343

4444
private static final DefaultCodecs codecs = new DefaultCodecs();
4545

46-
private static Collation cp1252 = Collation.from(13632521, 52);
46+
private static final Collation cp1252 = Collation.from(13632521, 52);
4747

4848
private static final Column varchar = new Column(0, "",
4949
TypeInformation.builder().withCharset(ServerCharset.CP1252.charset()).withLengthStrategy(LengthStrategy.USHORTLENTYPE).withServerType(SqlServerType.VARCHAR).build());
5050

5151
private final ByteBuf varcharBuffer;
5252

53-
private static Collation unicode = Collation.from(0x0445, 0);
53+
private static final Collation unicode = Collation.from(0x0445, 0);
5454

5555
private static final Column nvarchar = new Column(0, "",
5656
TypeInformation.builder().withCharset(ServerCharset.UNICODE.charset()).withLengthStrategy(LengthStrategy.USHORTLENTYPE).withServerType(SqlServerType.NVARCHAR).build());

src/jmh/java/io/r2dbc/mssql/codec/UuidCodecBenchmarks.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/AbstractMssqlException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/Binding.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/ConnectionOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/DefaultMssqlResult.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/ErrorDetails.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -97,7 +97,7 @@ public ErrorDetails(String message, long number, int state, int infoClass, Strin
9797
* @return the error message.
9898
*/
9999
public String getMessage() {
100-
return message;
100+
return this.message;
101101
}
102102

103103
/**

src/main/java/io/r2dbc/mssql/EscapeAwareNameMatcher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/ExceptionFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/GeneratedValues.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/IndefinitePreparedStatementCache.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/LoginConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -66,7 +66,7 @@ UUID getConnectionId() {
6666
}
6767

6868
boolean useSsl() {
69-
return useSsl;
69+
return this.useSsl;
7070
}
7171

7272
Login7.Builder asBuilder() {

src/main/java/io/r2dbc/mssql/LoginFlow.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/MssqlBatch.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/MssqlColumnMetadata.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/MssqlConnection.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/MssqlConnectionConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/r2dbc/mssql/MssqlConnectionFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -114,7 +114,7 @@ public Mono<MssqlConnection> create() {
114114
.flatMap(it -> {
115115

116116
Mono<MssqlConnection> connectionMono =
117-
new SimpleMssqlStatement(it, this.connectionOptions, METADATA_QUERY).execute()
117+
new SimpleMssqlStatement(it, this.connectionOptions, this.METADATA_QUERY).execute()
118118
.flatMap(result -> result.map((row, rowMetadata) -> toConnectionMetadata(it.getDatabaseVersion().orElse("unknown"), row))).map(metadata -> {
119119
return new MssqlConnection(it, metadata, this.connectionOptions);
120120
}).last();

src/main/java/io/r2dbc/mssql/MssqlConnectionFactoryMetadata.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)