Skip to content

Commit

Permalink
list and address deprecations in java
Browse files Browse the repository at this point in the history
  • Loading branch information
soloturn committed Sep 30, 2023
1 parent 9c2404e commit ba51d7b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ publishing {

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
val compilerArgs = options.compilerArgs
compilerArgs.addAll(listOf("-Xlint:deprecation"))
}

tasks.test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void actionPerformed(ActionEvent ae) {

@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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void actionPerformed(ActionEvent ae) {

@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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void actionPerformed(ActionEvent ae) {
@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;
}
Expand Down

0 comments on commit ba51d7b

Please sign in to comment.