vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 16 Oct 2012 18:04:11 +0200
changeset 114 a0505844750a
child 178 28143312edb5
permissions -rw-r--r--
Same basic operations with Number subclasses now work
jaroslav@114
     1
/**
jaroslav@114
     2
 * Back 2 Browser Bytecode Translator
jaroslav@114
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@114
     4
 *
jaroslav@114
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@114
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@114
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@114
     8
 *
jaroslav@114
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@114
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@114
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@114
    12
 * GNU General Public License for more details.
jaroslav@114
    13
 *
jaroslav@114
    14
 * You should have received a copy of the GNU General Public License
jaroslav@114
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@114
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@114
    17
 */
jaroslav@114
    18
package org.apidesign.vm4brwsr;
jaroslav@114
    19
jaroslav@114
    20
/**
jaroslav@114
    21
 *
jaroslav@114
    22
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@114
    23
 */
jaroslav@114
    24
public class Numbers {
jaroslav@114
    25
    private static Double autoboxDbl() {
jaroslav@114
    26
        return 3.3;
jaroslav@114
    27
    }
jaroslav@114
    28
    public static String autoboxDblToString() {
jaroslav@114
    29
        return autoboxDbl().toString().toString();
jaroslav@114
    30
    }
jaroslav@114
    31
}