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