Replaced all sun.NotImplementedException with standard java UnsupportedOperationException
This commit is contained in:
parent
1ccfad76f8
commit
f9772c37e0
3 changed files with 19 additions and 22 deletions
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
package zutil.parser.json;
|
package zutil.parser.json;
|
||||||
|
|
||||||
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
|
|
||||||
import zutil.ClassUtil;
|
import zutil.ClassUtil;
|
||||||
import zutil.log.LogUtil;
|
import zutil.log.LogUtil;
|
||||||
import zutil.parser.Base64Decoder;
|
import zutil.parser.Base64Decoder;
|
||||||
|
|
@ -250,52 +249,52 @@ public class JSONObjectInputStream extends InputStream implements ObjectInput, C
|
||||||
|
|
||||||
|
|
||||||
@Override public void readFully(byte[] b) throws IOException {
|
@Override public void readFully(byte[] b) throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public void readFully(byte[] b, int off, int len) throws IOException {
|
@Override public void readFully(byte[] b, int off, int len) throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public int skipBytes(int n) throws IOException {
|
@Override public int skipBytes(int n) throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public boolean readBoolean() throws IOException {
|
@Override public boolean readBoolean() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public byte readByte() throws IOException {
|
@Override public byte readByte() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public int readUnsignedByte() throws IOException {
|
@Override public int readUnsignedByte() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public short readShort() throws IOException {
|
@Override public short readShort() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public int readUnsignedShort() throws IOException {
|
@Override public int readUnsignedShort() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public char readChar() throws IOException {
|
@Override public char readChar() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public int readInt() throws IOException {
|
@Override public int readInt() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public long readLong() throws IOException {
|
@Override public long readLong() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public float readFloat() throws IOException {
|
@Override public float readFloat() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public double readDouble() throws IOException {
|
@Override public double readDouble() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public String readLine() throws IOException {
|
@Override public String readLine() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public String readUTF() throws IOException {
|
@Override public String readUTF() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public int read() throws IOException {
|
@Override public int read() throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
package zutil.parser.json;
|
package zutil.parser.json;
|
||||||
|
|
||||||
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
|
|
||||||
import zutil.ClassUtil;
|
import zutil.ClassUtil;
|
||||||
import zutil.parser.Base64Encoder;
|
import zutil.parser.Base64Encoder;
|
||||||
import zutil.parser.DataNode;
|
import zutil.parser.DataNode;
|
||||||
|
|
@ -211,7 +210,7 @@ public class JSONObjectOutputStream extends OutputStream implements ObjectOutput
|
||||||
out.write(new DataNode(v));
|
out.write(new DataNode(v));
|
||||||
}
|
}
|
||||||
@Override public void writeByte(int v) throws IOException {
|
@Override public void writeByte(int v) throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public void writeShort(int v) throws IOException {
|
@Override public void writeShort(int v) throws IOException {
|
||||||
out.write(new DataNode(v));
|
out.write(new DataNode(v));
|
||||||
|
|
@ -232,7 +231,7 @@ public class JSONObjectOutputStream extends OutputStream implements ObjectOutput
|
||||||
out.write(new DataNode(v));
|
out.write(new DataNode(v));
|
||||||
}
|
}
|
||||||
@Override public void writeBytes(String s) throws IOException {
|
@Override public void writeBytes(String s) throws IOException {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
@Override public void writeChars(String s) throws IOException {
|
@Override public void writeChars(String s) throws IOException {
|
||||||
out.write(new DataNode(s));
|
out.write(new DataNode(s));
|
||||||
|
|
|
||||||
3
src/zutil/struct/CircularBuffer.java
Normal file → Executable file
3
src/zutil/struct/CircularBuffer.java
Normal file → Executable file
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
package zutil.struct;
|
package zutil.struct;
|
||||||
|
|
||||||
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
|
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
|
|
@ -104,7 +103,7 @@ public class CircularBuffer<T> implements Iterable<T>{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void remove() {
|
public void remove() {
|
||||||
throw new NotImplementedException();
|
throw new UnsupportedOperationException ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue