Skip to content

Commit 5979975

Browse files
v0.0.3 - Java 8 compatibility
1 parent 33ab34a commit 5979975

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66

77
<groupId>com.github.lightlibs</groupId>
88
<artifactId>SimpleHttpWrapper</artifactId>
9-
<version>0.0.2</version>
9+
<version>0.0.3</version>
1010

1111
<build>
1212
<plugins>
1313
<plugin>
1414
<groupId>org.apache.maven.plugins</groupId>
1515
<artifactId>maven-compiler-plugin</artifactId>
1616
<configuration>
17-
<source>16</source>
18-
<target>16</target>
17+
<source>8</source>
18+
<target>8</target>
1919
</configuration>
2020
</plugin>
2121
</plugins>
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
package com.github.lightlibs.simplehttpwrapper;
22

3-
public record SimpleHttpResponse(int statusCode, String data) {}
3+
public class SimpleHttpResponse {
4+
5+
private final int statusCode;
6+
private final String data;
7+
8+
public SimpleHttpResponse (int statusCode, String data) {
9+
this.statusCode = statusCode;
10+
this.data = data;
11+
}
12+
13+
public int getStatusCode() {
14+
return statusCode;
15+
}
16+
17+
public String getData() {
18+
return data;
19+
}
20+
}

0 commit comments

Comments
 (0)