From: david Date: Fri, 24 Jun 2011 23:12:24 +0000 (+0000) Subject: Updating shared values X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=19406bb95e689744d37065fdcf04b27915845e89;p=IRC.git Updating shared values --- diff --git a/Robust/src/ClassLibrary/SSJava/InputStream.java b/Robust/src/ClassLibrary/SSJava/InputStream.java index 55dd5d78..28302a79 100644 --- a/Robust/src/ClassLibrary/SSJava/InputStream.java +++ b/Robust/src/ClassLibrary/SSJava/InputStream.java @@ -35,8 +35,8 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ -//removed because no packages -//package java.io; + +//package java.io; //NO PACKAGES FOR CLASS FILES /** * This abstract class forms the base of the hierarchy of classes that read @@ -50,7 +50,7 @@ exception statement from your version. */ */ @LATTICE("") @METHODDEFAULT("OUTtrue if mark/reset functionality is * supported, false otherwise */ - @RETURN + @RETURNLOC("OUT") public boolean markSupported() { return false; @@ -162,7 +162,7 @@ public abstract class InputStream * * @exception IOException If an error occurs. */ - @RETURN + @RETURNLOC("OUT") public int read(@LOC("IN") byte[] b) throws IOException { return read(b, 0, b.length); @@ -196,14 +196,15 @@ public abstract class InputStream * * @exception IOException If an error occurs. */ - @LATTICE("OUT<") - @RETURN("") - public int read(byte[] b, int off, int len) throws IOException + @LATTICE("OUT 0L) + while (n > 0) { - int numread = read(tmpbuf, 0, n > buflen ? buflen : (int) n); + int numread = read(tmpbuf, 0, n > buflen ? buflen : (int) n); if (numread <= 0) break; n -= numread; diff --git a/Robust/src/ClassLibrary/SSJava/Math.java b/Robust/src/ClassLibrary/SSJava/Math.java index 45a62c10..35e6ab98 100644 --- a/Robust/src/ClassLibrary/SSJava/Math.java +++ b/Robust/src/ClassLibrary/SSJava/Math.java @@ -40,8 +40,9 @@ public class Math { public static long max(long a, long b) { return (a>b)?a:b; } - - public static double min(double a, double b) { + + @RETURNLOC("IN") + public static double min(@LOC("IN") double a, @LOC("IN") double b) { return (apos is 0 the buffer is full and buf.length when * it is empty */ - @LOC("SH") protected int pos; + @LOC("POS") protected int pos; /** * This method initializes a PushbackInputStream to @@ -207,11 +207,13 @@ public class PushbackInputStream extends FilterInputStream * * @exception IOException If an error occurs. */ - @LATTICE("OUT 0) { diff --git a/Robust/src/ClassLibrary/SSJava/String.java b/Robust/src/ClassLibrary/SSJava/String.java index b0abb612..2710ebdb 100644 --- a/Robust/src/ClassLibrary/SSJava/String.java +++ b/Robust/src/ClassLibrary/SSJava/String.java @@ -13,7 +13,7 @@ public class String { private String() { } - public String(String str) { + public String(@LOC("IN") String str) { this.value=str.value; this.count=str.count; this.offset=str.offset; @@ -36,6 +36,7 @@ public class String { } @LATTICE("O