mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-17 19:26:34 +02:00
list and address deprecations in java
This commit is contained in:
@@ -79,6 +79,8 @@ publishing {
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
options.encoding = "UTF-8"
|
||||
val compilerArgs = options.compilerArgs
|
||||
compilerArgs.addAll(listOf("-Xlint:deprecation"))
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
|
@@ -98,7 +98,7 @@ public class ContextMenuMouseListener extends MouseAdapter {
|
||||
|
||||
@Override
|
||||
public void mouseClicked(MouseEvent e) {
|
||||
if (e.getModifiers() == InputEvent.BUTTON3_MASK) {
|
||||
if (e.getModifiersEx() == InputEvent.BUTTON3_DOWN_MASK) {
|
||||
if (!(e.getSource() instanceof JTextComponent)) {
|
||||
return;
|
||||
}
|
||||
|
@@ -63,7 +63,7 @@ class HistoryMenuMouseListener extends MouseAdapter {
|
||||
|
||||
@Override
|
||||
public void mouseClicked(MouseEvent e) {
|
||||
if (e.getModifiers() == InputEvent.BUTTON3_MASK) {
|
||||
if (e.getModifiersEx() == InputEvent.BUTTON3_DOWN_MASK) {
|
||||
if (!(e.getSource() instanceof JTable)) {
|
||||
return;
|
||||
}
|
||||
|
@@ -61,7 +61,7 @@ class QueueMenuMouseListener extends MouseAdapter {
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void mouseClicked(MouseEvent e) {
|
||||
if (e.getModifiers() == InputEvent.BUTTON3_MASK) {
|
||||
if (e.getModifiersEx() == InputEvent.BUTTON3_DOWN_MASK) {
|
||||
if (!(e.getSource() instanceof JList)) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user