Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/AbstractBuffer.java @ 1030:80cad9086593
remove Buffer.isVolatile()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Nov 2016 01:10:09 -0600 |
parents | 4e5e9e3c25b3 |
children | 921c25a05eaa |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/AbstractBuffer.java Thu Nov 03 00:55:20 2016 -0600 +++ b/src/org/eclipse/jetty/io/AbstractBuffer.java Thu Nov 03 01:10:09 2016 -0600 @@ -44,7 +44,6 @@ __VOLATILE = "VOLATILE"; protected int _access; - protected boolean _volatile; protected int _get; protected int _put; @@ -60,13 +59,12 @@ * * @param access 0==IMMUTABLE, 1==READONLY, 2==READWRITE */ - public AbstractBuffer(int access, boolean isVolatile) + protected AbstractBuffer(int access) { - if (access == IMMUTABLE && isVolatile) - throw new IllegalArgumentException("IMMUTABLE && VOLATILE"); +// if (access == IMMUTABLE && isVolatile) +// throw new IllegalArgumentException("IMMUTABLE && VOLATILE"); setMarkIndex(-1); _access = access; - _volatile = isVolatile; } /* @@ -247,11 +245,6 @@ return _access <= READONLY; } - public boolean isVolatile() - { - return _volatile; - } - public int length() { return _put - _get;