Skip to content

Commit

Permalink
Java version to Java 21 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
logandhillon committed Sep 19, 2024
1 parent 58a57b6 commit 393a08d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ The next generation Internet Relay Chat (IRC).
## Installation

You will need:
- Java 22 or newer
- The ICX binary (program)
- Java 21 or newer

Steps:
1. Download the [latest release](https://github.com/logandhillon/ICX/releases) and extract the files
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group 'net.logandhillon'
version '0.9-ALPHA'
version '0.9.1-ALPHA'

repositories {
mavenCentral()
Expand All @@ -17,8 +17,8 @@ ext {
junitVersion = '5.10.0'
}

sourceCompatibility = '22'
targetCompatibility = '22'
sourceCompatibility = '21'
targetCompatibility = '21'

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/logandhillon/icx/ui/view/ChatView.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ public ChatView() {
messageLog.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
messageLog.setVbarPolicy(ScrollPane.ScrollBarPolicy.ALWAYS);

MESSAGES.heightProperty().addListener((_, _, _) -> messageLog.setVvalue(1.0));
MESSAGES.heightProperty().addListener((_1, _2, _3) -> messageLog.setVvalue(1.0));

getChildren().addAll(header, messageLog, getMsgBox());
}

private static HBox getHeader(Label screenName) {
Button leaveBtn = new Button("Exit");
leaveBtn.setOnAction(_ -> {
leaveBtn.setOnAction(_e -> {
try {
ICX.stage.close();

Expand Down Expand Up @@ -75,7 +75,7 @@ private static HBox getMsgBox() {
msgInp.setPrefWidth(384);

Button sendBtn = new Button("Send");
sendBtn.setOnAction(_ -> {
sendBtn.setOnAction(_e -> {
ICXClient.send(ICXPacket.Command.SEND, msgInp.getText());
msgInp.clear();
});
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/logandhillon/icx/ui/view/LoginView.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private VBox getWrapper() {
inpServerAddr.setPromptText("Server address");

Button btnJoin = new Button("Join");
btnJoin.setOnAction(_ -> {
btnJoin.setOnAction(_e -> {
try {
if (inpName.getText().isBlank()) {
status.setText("Screen name cannot be blank");
Expand Down

0 comments on commit 393a08d

Please sign in to comment.