From 0ec051c6855a4d934728fe4bb12d00d61da96c18 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 7 Feb 1999 19:37:07 +0000 Subject: [PATCH] short asssignments git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@214 379699f6-c40d-0410-875b-85095c16579e --- jode/test/AssignOp.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/jode/test/AssignOp.java b/jode/test/AssignOp.java index f6df953..e742966 100644 --- a/jode/test/AssignOp.java +++ b/jode/test/AssignOp.java @@ -1,26 +1,35 @@ package jode.test; public class AssignOp { + static short static_short; static int static_int; static double static_double; static String static_String; static long static_long; + short obj_short; int obj_int; long obj_long; double obj_double; String obj_String; + short[] arr_short; int [] arr_int; long[] arr_long; double[] arr_double; String[] arr_String; void assop() { + short local_short = 0; int local_int = 0; double local_double = 1.0; String local_String = null; + local_short -= 25 * local_int; + static_short /= 5; + obj_short += 100 - local_int; + arr_short[local_int] >>= 25; + local_int |= 25 | local_int; static_int <<= 3; obj_int *= 17 + obj_int; @@ -31,10 +40,10 @@ public class AssignOp { obj_double -= 25; arr_double[local_int] /= (local_double+=7.0); + local_String += "Hallo"; static_String += "Hallo"; obj_String += "Hallo"; arr_String[0] += local_double + static_String + "Hallo" + obj_int; - local_String += "Hallo"; } void prepost() { @@ -55,9 +64,3 @@ public class AssignOp { obj_int = --local_int; } } - - - - - -