1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-12 00:44:03 +02:00

Revert changes that use unnamed variables, which are a preview feature

This commit is contained in:
MetaPrime
2025-02-01 23:55:02 -08:00
parent bf485af30e
commit 2c25eaa3ef
2 changed files with 7 additions and 7 deletions

View File

@@ -146,7 +146,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
} }
private static void addCheckboxListener(JCheckBox checkBox, String configString) { private static void addCheckboxListener(JCheckBox checkBox, String configString) {
checkBox.addActionListener(_ -> { checkBox.addActionListener(arg0 -> {
Utils.setConfigBoolean(configString, checkBox.isSelected()); Utils.setConfigBoolean(configString, checkBox.isSelected());
Utils.configureLogger(); Utils.configureLogger();
}); });
@@ -798,7 +798,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
} }
}); });
stopButton.addActionListener(_ -> { stopButton.addActionListener(event -> {
if (ripper != null) { if (ripper != null) {
ripper.stop(); ripper.stop();
isRipping = false; isRipping = false;
@@ -880,7 +880,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
pack(); pack();
}); });
historyButtonRemove.addActionListener(_ -> { historyButtonRemove.addActionListener(event -> {
int[] indices = historyTable.getSelectedRows(); int[] indices = historyTable.getSelectedRows();
for (int i = indices.length - 1; i >= 0; i--) { for (int i = indices.length - 1; i >= 0; i--) {
int modelIndex = historyTable.convertRowIndexToModel(indices[i]); int modelIndex = historyTable.convertRowIndexToModel(indices[i]);
@@ -894,7 +894,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
saveHistory(); saveHistory();
}); });
historyButtonClear.addActionListener(_ -> { historyButtonClear.addActionListener(event -> {
if (Utils.getConfigBoolean("history.warn_before_delete", true)) { if (Utils.getConfigBoolean("history.warn_before_delete", true)) {
JPanel checkChoise = new JPanel(); JPanel checkChoise = new JPanel();
@@ -912,8 +912,8 @@ public final class MainWindow implements Runnable, RipStatusHandler {
frame.setSize(405, 70); frame.setSize(405, 70);
frame.setVisible(true); frame.setVisible(true);
frame.setLocationRelativeTo(null); frame.setLocationRelativeTo(null);
noButton.addActionListener(_ -> frame.setVisible(false)); noButton.addActionListener(e -> frame.setVisible(false));
yesButton.addActionListener(_ -> { yesButton.addActionListener(ed -> {
frame.setVisible(false); frame.setVisible(false);
Utils.clearURLHistory(); Utils.clearURLHistory();
HISTORY.clear(); HISTORY.clear();

View File

@@ -252,7 +252,7 @@ public class Http {
SSLContext sslContext = SSLContext.getInstance("SSL"); SSLContext sslContext = SSLContext.getInstance("SSL");
sslContext.init(null, trustAllCerts, new SecureRandom()); sslContext.init(null, trustAllCerts, new SecureRandom());
HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory()); HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
HostnameVerifier allHostsValid = (_, _) -> true; HostnameVerifier allHostsValid = (hostname, session) -> true;
HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid); HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);
} catch (Exception e) { } catch (Exception e) {
logger.error("ignoreSSLVerification() failed."); logger.error("ignoreSSLVerification() failed.");