Skip to content

Commit 29cda3c

Browse files
committed
java 17
1 parent 225dbef commit 29cda3c

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
**THIS IS UNOFFICIAL UPDATED CODEBASE OF RAZORPAY JAVA SDK.**
2+
The codebase has been updated with Java 17 with sourcecode and compile version with all dependencies with latest versions
3+
The codebase is free from any security checked with checkmarx and sonarlint
4+
15
# Razorpay Java SDK
26

37
Official java bindings for the [Razorpay API](https://docs.razorpay.com/docs/payments).

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636

3737
<properties>
3838
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39-
<maven.compiler.source>1.8</maven.compiler.source>
40-
<maven.compiler.target>1.8</maven.compiler.target>
39+
<maven.compiler.source>17</maven.compiler.source>
40+
<maven.compiler.target>17</maven.compiler.target>
4141
</properties>
4242

4343
<dependencies>
@@ -54,7 +54,7 @@
5454
<dependency>
5555
<groupId>org.mockito</groupId>
5656
<artifactId>mockito-inline</artifactId>
57-
<version>2.13.0</version>
57+
<version>5.2.0</version>
5858
<scope>test</scope>
5959
</dependency>
6060
<dependency>
@@ -66,7 +66,7 @@
6666
<dependency>
6767
<groupId>com.fasterxml.jackson.core</groupId>
6868
<artifactId>jackson-databind</artifactId>
69-
<version>2.13.1</version>
69+
<version>2.14.2</version>
7070
<scope>test</scope>
7171
</dependency>
7272

@@ -89,13 +89,13 @@
8989
<dependency>
9090
<groupId>org.json</groupId>
9191
<artifactId>json</artifactId>
92-
<version>20180130</version>
92+
<version>20220320</version>
9393
</dependency>
9494

9595
<dependency>
9696
<groupId>commons-codec</groupId>
9797
<artifactId>commons-codec</artifactId>
98-
<version>1.11</version>
98+
<version>1.15</version>
9999
</dependency>
100100

101101
<dependency>

src/test/java/com/razorpay/BaseTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.List;
1616

1717
import static org.junit.Assert.assertEquals;
18-
import static org.mockito.ArgumentMatchers.anyObject;
18+
import static org.mockito.ArgumentMatchers.any;
1919
import static org.mockito.Mockito.mock;
2020
import static org.mockito.Mockito.when;
2121

@@ -43,7 +43,7 @@ private void mockGetCall() throws IOException, IllegalAccessException {
4343

4444
Call call = mock(Call.class);
4545
when(call.execute()).thenReturn(mockedResponse);
46-
when(okHttpClient.newCall(anyObject())).thenReturn(call);
46+
when(okHttpClient.newCall(any())).thenReturn(call);
4747

4848
}
4949

0 commit comments

Comments
 (0)