1*055d4590SKeyi Gui /* 2*055d4590SKeyi Gui * Copyright (C) 2007 The Android Open Source Project 3*055d4590SKeyi Gui * 4*055d4590SKeyi Gui * Licensed under the Apache License, Version 2.0 (the "License"); 5*055d4590SKeyi Gui * you may not use this file except in compliance with the License. 6*055d4590SKeyi Gui * You may obtain a copy of the License at 7*055d4590SKeyi Gui * 8*055d4590SKeyi Gui * http://www.apache.org/licenses/LICENSE-2.0 9*055d4590SKeyi Gui * 10*055d4590SKeyi Gui * Unless required by applicable law or agreed to in writing, software 11*055d4590SKeyi Gui * distributed under the License is distributed on an "AS IS" BASIS, 12*055d4590SKeyi Gui * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*055d4590SKeyi Gui * See the License for the specific language governing permissions and 14*055d4590SKeyi Gui * limitations under the License. 15*055d4590SKeyi Gui */ 16*055d4590SKeyi Gui 17*055d4590SKeyi Gui public class Blort 18*055d4590SKeyi Gui { sink(int i)19*055d4590SKeyi Gui public static void sink(int i) { 20*055d4590SKeyi Gui // Do nothing. 21*055d4590SKeyi Gui } 22*055d4590SKeyi Gui sink(long l)23*055d4590SKeyi Gui public static void sink(long l) { 24*055d4590SKeyi Gui // Do nothing. 25*055d4590SKeyi Gui } 26*055d4590SKeyi Gui sink(float f)27*055d4590SKeyi Gui public static void sink(float f) { 28*055d4590SKeyi Gui // Do nothing. 29*055d4590SKeyi Gui } 30*055d4590SKeyi Gui sink(double d)31*055d4590SKeyi Gui public static void sink(double d) { 32*055d4590SKeyi Gui // Do nothing. 33*055d4590SKeyi Gui } 34*055d4590SKeyi Gui testInt()35*055d4590SKeyi Gui public static void testInt() { 36*055d4590SKeyi Gui sink(Integer.MIN_VALUE); 37*055d4590SKeyi Gui sink(0x40000000); 38*055d4590SKeyi Gui sink(0x20000000); 39*055d4590SKeyi Gui sink(0x10000000); 40*055d4590SKeyi Gui sink(0x00080000); 41*055d4590SKeyi Gui sink(0x00040000); 42*055d4590SKeyi Gui sink(0x00020000); 43*055d4590SKeyi Gui sink(0x00010000); 44*055d4590SKeyi Gui sink(0x56780000); 45*055d4590SKeyi Gui } 46*055d4590SKeyi Gui testLong()47*055d4590SKeyi Gui public static void testLong() { 48*055d4590SKeyi Gui sink(Long.MIN_VALUE); 49*055d4590SKeyi Gui sink(0x4000000000000000L); 50*055d4590SKeyi Gui sink(0x2000000000000000L); 51*055d4590SKeyi Gui sink(0x1000000000000000L); 52*055d4590SKeyi Gui sink(0x0008000000000000L); 53*055d4590SKeyi Gui sink(0x0004000000000000L); 54*055d4590SKeyi Gui sink(0x0002000000000000L); 55*055d4590SKeyi Gui sink(0x0001000000000000L); 56*055d4590SKeyi Gui sink(0x5678000000000000L); 57*055d4590SKeyi Gui } 58*055d4590SKeyi Gui testFloat()59*055d4590SKeyi Gui public static void testFloat() { 60*055d4590SKeyi Gui sink(Float.NEGATIVE_INFINITY); 61*055d4590SKeyi Gui sink(-0.0f); 62*055d4590SKeyi Gui sink(1.0f); 63*055d4590SKeyi Gui sink(Float.POSITIVE_INFINITY); 64*055d4590SKeyi Gui sink(Float.NaN); 65*055d4590SKeyi Gui } 66*055d4590SKeyi Gui testDouble()67*055d4590SKeyi Gui public static void testDouble() { 68*055d4590SKeyi Gui sink(Double.NEGATIVE_INFINITY); 69*055d4590SKeyi Gui sink(-0.0); 70*055d4590SKeyi Gui sink(1.0); 71*055d4590SKeyi Gui sink(Double.POSITIVE_INFINITY); 72*055d4590SKeyi Gui sink(Double.NaN); 73*055d4590SKeyi Gui } 74*055d4590SKeyi Gui } 75