1 Debian patch touch this file
| •1 | /** |
| 2 | * ditaa - Diagrams Through Ascii Art |
| 3 | * |
| 4 | * Copyright (C) 2004-2011 Efstathios Sideris |
| 5 | * |
| 6 | * ditaa is free software: you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU Lesser General Public License as |
| 8 | * published by the Free Software Foundation, either version 3 of |
| 9 | * the License, or (at your option) any later version. |
| 10 | * |
| 11 | * ditaa is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with ditaa. If not, see <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | */ |
| 20 | package org.stathissideris.ascii2image.core; |
| 21 | |
| 22 | public class DebugUtils { |
| 23 | public static int getLineNumber() { |
| 24 | return Thread.currentThread().getStackTrace()[2].getLineNumber(); |
| 25 | } |
| 26 | } |