pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1861734 - /pdfbox/branches/issue45/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java
Date Fri, 21 Jun 2019 04:10:37 GMT
Author: tilman
Date: Fri Jun 21 04:10:37 2019
New Revision: 1861734

URL: http://svn.apache.org/viewvc?rev=1861734&view=rev
Log:
PDFBOX-2941: SonarQube fix

Modified:
    pdfbox/branches/issue45/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java

Modified: pdfbox/branches/issue45/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java?rev=1861734&r1=1861733&r2=1861734&view=diff
==============================================================================
--- pdfbox/branches/issue45/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java
(original)
+++ pdfbox/branches/issue45/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java
Fri Jun 21 04:10:37 2019
@@ -270,11 +270,13 @@ public class PagePane implements ActionL
     @Override
     public void ancestorMoved(AncestorEvent ancestorEvent)
     {
+        // do nothing
     }
 
     @Override
     public void mouseDragged(MouseEvent e)
     {
+        // do nothing
     }
 
     /**
@@ -292,7 +294,8 @@ public class PagePane implements ActionL
         float zoomScale = zoomMenu.getPageZoomScale();
         float x = e.getX() / zoomScale * (float) defaultTransform.getScaleX();
         float y = e.getY() / zoomScale * (float) defaultTransform.getScaleY();
-        int x1, y1;
+        int x1;
+        int y1;
         switch ((RotationMenu.getRotationDegrees() + page.getRotation()) % 360)
         {
             case 90:
@@ -331,21 +334,25 @@ public class PagePane implements ActionL
     @Override
     public void mouseClicked(MouseEvent e)
     {
+        // do nothing
     }
 
     @Override
     public void mousePressed(MouseEvent e)
     {
+        // do nothing
     }
 
     @Override
     public void mouseReleased(MouseEvent e)
     {
+        // do nothing
     }
 
     @Override
     public void mouseEntered(MouseEvent e)
     {
+        // do nothing
     }
 
     @Override



Mime
View raw message