diff -r d8807b6a636a -r b9318fe303cd src/test/java/org/apidesign/java4browser/StaticMethod.java --- a/src/test/java/org/apidesign/java4browser/StaticMethod.java Mon Sep 24 09:35:00 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +0,0 @@ -/* -Java 4 Browser Bytecode Translator -Copyright (C) 2012-2012 Jaroslav Tulach - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, version 2 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. Look for COPYING file in the top folder. -If not, see http://opensource.org/licenses/GPL-2.0. -*/ -package org.apidesign.java4browser; - -/** - * - * @author Jaroslav Tulach - */ -public class StaticMethod { - private static int cnt; - - public static int sum(int x, int y) { - return x + y; - } - public static float power(float x) { - return x * x; - } - public static double minus(double x, long y) { - return x - y; - } - public static int div(byte c, double d) { - return (int)(d / c); - } - public static int mix(int a, long b, byte c, double d) { - return (int)((b / a + c) * d); - } - public static long xor(int a, long b) { - return a ^ b; - } - public static long orOrAnd(boolean doOr, int a, int b) { - return doOr ? a | b : a & b; - } - public static long factRec(int n) { - if (n <= 1) { - return 1; - } else { - return n * factRec(n - 1); - } - } - public static long factIter(int n) { - long res = 1; - for (int i = 2; i <= n; i++) { - res *= i; - } - return res; - } - public static int inc4() { - cnt++; - cnt+=2; - cnt++; - return cnt; - } -}