Index: trunk/src/org/openstreetmap/josm/tools/bugreport/BugReport.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/bugreport/BugReport.java	(revision 10901)
+++ trunk/src/org/openstreetmap/josm/tools/bugreport/BugReport.java	(revision 10902)
@@ -186,7 +186,5 @@
      */
     public static String getCallingMethod(int offset) {
-        String className = BugReport.class.getName();
-        String methodName = "getCallingMethod";
-        StackTraceElement found = getCallingMethod(offset, className, methodName::equals);
+        StackTraceElement found = getCallingMethod(offset + 1, BugReport.class.getName(), "getCallingMethod"::equals);
         if (found != null) {
             return found.getClassName().replaceFirst(".*\\.", "") + '#' + found.getMethodName();
@@ -199,5 +197,6 @@
      * Find the method that called the given method on the current stack trace.
      * @param offset
-     *           How many methods to look back in the stack trace. 1 gives the method calling this method, 0 gives you getCallingMethod().
+     *           How many methods to look back in the stack trace.
+     *           1 gives the method calling this method, 0 gives you the method with the given name..
      * @param className The name of the class to search for
      * @param methodName The name of the method to search for
@@ -209,6 +208,5 @@
             StackTraceElement element = stackTrace[i];
             if (className.equals(element.getClassName()) && methodName.test(element.getMethodName())) {
-                StackTraceElement toReturn = stackTrace[i + offset];
-                return toReturn;
+                return stackTrace[i + offset];
             }
         }
