pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1836209 - /pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/OSXAdapter.java
Date Wed, 18 Jul 2018 17:47:25 GMT
Author: tilman
Date: Wed Jul 18 17:47:25 2018
New Revision: 1836209

URL: http://svn.apache.org/viewvc?rev=1836209&view=rev
Log:
PDFBOX-4013: sonar fix

Modified:
    pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/OSXAdapter.java

Modified: pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/OSXAdapter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/OSXAdapter.java?rev=1836209&r1=1836208&r2=1836209&view=diff
==============================================================================
--- pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/OSXAdapter.java
(original)
+++ pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/OSXAdapter.java
Wed Jul 18 17:47:25 2018
@@ -132,12 +132,11 @@ public class OSXAdapter implements Invoc
                             public Object invoke(Object proxy, Method method, Object[] args)
                                     throws Throwable
                             {
-                                if (!method.getName().equals("handleQuitRequestWith"))
+                                if ("handleQuitRequestWith".equals(method.getName()))
                                 {
-                                    return null;
+                                    // We just call our own quit handler
+                                    quitHandler.invoke(target);
                                 }
-                                // We just call our own quit handler
-                                quitHandler.invoke(target);
                                 return null;
                             }
                         });
@@ -243,6 +242,7 @@ public class OSXAdapter implements Invoc
         {
             // Override OSXAdapter.callTarget to send information on the
             // file to be opened
+            @Override
             public boolean callTarget(Object appleEvent) {
                 if (appleEvent != null) {
                     try {



Mime
View raw message