bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public byte[] encodePublicKey(PublicKey key) { if (! (key instanceof DSSPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPublicKey dssKey = (DSSPublicKey) key; BigInteger p = dssKey.getParams().getP(); BigInteger q = ds...
public byte[] encodePublicKey(PublicKey key) { if (! (key instanceof DSSPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPublicKey dssKey = (DSSPublicKey) key; BigInteger p = dssKey.getParams().getP(); BigInteger q = ds...
19,798
public byte[] encodePublicKey(PublicKey key) { if (! (key instanceof DSSPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPublicKey dssKey = (DSSPublicKey) key; BigInteger p = dssKey.getParams().getP(); BigInteger q = ds...
public byte[] encodePublicKey(PublicKey key) { if (! (key instanceof DSSPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPublicKey dssKey = (DSSPublicKey) key; BigInteger p = dssKey.getParams().getP(); BigInteger q = ds...
19,799
protected String getPropertyPrefix() { return null; }
protected String getPropertyPrefix() { return "RadioButtonMenuItem"; }
19,800
public final Class getCategory() { return JobPrioritySupported.class; }
public Class getCategory() { return JobPrioritySupported.class; }
19,801
public final String getName() { return "job-priority-supported"; }
public String getName() { return "job-priority-supported"; }
19,802
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
public static Currency getInstance(Locale locale) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointerExcept...
19,803
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
19,804
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ Currency newCurrency; String country = locale.getCountry(); ...
19,805
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
19,806
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
19,807
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
19,808
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
19,809
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer...
19,810
private void checkThread() { if (!SwingUtilities.isEventDispatchThread()) { log.debug("Wrong Thread", new Exception("Stacktracr")); } }
private void checkThread() { if (!SwingUtilities.isEventDispatchThread()) { log.debug("Wrong Thread", new Exception("Stacktrace")); } }
19,812
public void add(Point p) { add((double) p.x, (double) p.y); }
public void add(Point p) { add((double) p.x, (double) p.y); }
19,813
public void reset() { // reset this instance for future re-use count = 0L; for (int i = 0; i < blockSize;) { buffer[i++] = 0; } resetContext(); }
public void reset() // reset this instance for future re-use count = 0L; for (int i = 0; i < blockSize;) buffer[i++] = 0; } resetContext(); }
19,815
public void reset() { // reset this instance for future re-use count = 0L; for (int i = 0; i < blockSize;) { buffer[i++] = 0; } resetContext(); }
public void reset() { // reset this instance for future re-use count = 0L; for (int i = 0; i < blockSize;) { buffer[i++] = 0; resetContext();
19,816
public X86Core(final Map labels) { super(labels); }
public X86Core(final Map labels) { super(labels); }
19,817
public static DataBuffer createBuffer(int dataType, int size, int numBanks) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte(size, numBanks); case DataBuffer.TYPE_USHORT : return new DataBufferUShort(size, numBanks); case DataBuffer.TYPE_INT : return new DataBufferInt(size, n...
public static DataBuffer createBuffer(int dataType, int size, int numBanks) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte(size, numBanks); case DataBuffer.TYPE_USHORT : return new DataBufferUShort(size, numBanks); case DataBuffer.TYPE_INT : return new DataBufferInt(size, n...
19,819
public byte[] getData(int bank) { return bankData[bank]; }
public byte[] getData() { return bankData[bank]; }
19,820
public byte[] getData(int bank) { return bankData[bank]; }
public byte[] getData(int bank) { return data; }
19,821
public int[] getData(int bank) { return bankData[bank]; }
public int[] getData(int bank) { return bankData[bank]; }
19,822
public static DataBuffer createBufferFromData(int dataType, Object data, int size) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte((byte[]) data, size); case DataBuffer.TYPE_USHORT : return new DataBufferUShort((short[]) data, size); case DataBuffer.TYPE_INT : return new Dat...
public static DataBuffer createBufferFromData(int dataType, Object data, int size) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte((byte[]) data, size); case DataBuffer.TYPE_SHORT: return new DataBufferShort((short[]) data, size); case DataBuffer.TYPE_USHORT: return new DataBuffe...
19,824
public static DataBuffer createBufferFromData(int dataType, Object data, int size) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte((byte[]) data, size); case DataBuffer.TYPE_USHORT : return new DataBufferUShort((short[]) data, size); case DataBuffer.TYPE_INT : return new Dat...
public static DataBuffer createBufferFromData(int dataType, Object data, int size) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte((byte[]) data, size); case DataBuffer.TYPE_USHORT : return new DataBufferUShort((short[]) data, size); case DataBuffer.TYPE_INT : return new Dat...
19,825
public void updateUI() { super.setUI((MenuItemUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { super.setUI((MenuItemUI) UIManager.getUI(this)); invalidate(); }
19,826
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((sel != m || b) && (! b || sel == m)) return; if (b && sel != m) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setS...
19,827
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin...
19,828
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin...
19,829
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin...
19,830
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipExcepti...
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipExcepti...
19,831
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
19,833
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
19,834
public abstract int get ();
public IntBuffer get (int[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; }
19,835
public int readBit() throws IOException { checkClosed(); // Calc new bit offset here, readByte resets it. int newOffset = (bitOffset + 1) & 0x7; byte data = readByte(); if (bitOffset != 0) { seek(getStreamPosition() - 1); data = (byte) (data >> (8 - newOffset)); } bitOffset = newOf...
public int readBit() throws IOException { checkClosed(); // Calc new bit offset here, readByte resets it. int newOffset = (bitOffset + 1) & 0x7; byte data = readByte(); if (newOffset != 0) { seek(getStreamPosition() - 1); data = (byte) (data >> (8 - newOffset)); } bitOffset = newOf...
19,838
public long readBits(int numBits) throws IOException { checkClosed(); if (numBits < 0 || numBits > 64) throw new IllegalArgumentException(); if (numBits == 0) return 0L; long bits = 0L; for (int i = 0; i < numBits; i++) { bits <<= 1; bits |= readBit(); } return bits; }
public long readBits(int numBits) throws IOException { checkClosed(); if (numBits < 0 || numBits > 64) throw new IllegalArgumentException(); if (numBits == 0) return 0L; long bits = 0L; for (int i = 0; i < numBits; i++) { bits <<= 1; bits |= readBit(); } return bits; }
19,839
public void readBytes(IIOByteBuffer buffer, int len) throws IOException { int result = read(buffer.getData(), buffer.getOffset(), len); if (result == -1 || result < len) throw new EOFException(); buffer.setLength(len); }
public void readBytes(IIOByteBuffer buffer, int len) throws IOException { int result = read(buffer.getData(), buffer.getOffset(), len); if (result == -1 || result < len) throw new EOFException(); buffer.setLength(len); }
19,841
public double readDouble() throws IOException { return (double) readLong(); }
public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
19,842
public float readFloat() throws IOException { return (float) readInt(); }
public float readFloat() throws IOException { return Float.intBitsToFloat(readInt()); }
19,843
public int readInt() throws IOException { int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } return ((buffer[4] << ...
public int readInt() throws IOException { int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } return ((buffer[4] << ...
19,844
public int readInt() throws IOException { int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } return ((buffer[4] << ...
public int readInt() throws IOException { int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } return ((buffer[4] << ...
19,845
public int readInt() throws IOException { int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } return ((buffer[4] << ...
public int readInt() throws IOException { int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } return ((buffer[4] << ...
19,846
public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n...
public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); c = read(); if (c == -1) return null; while (!eol) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); ...
19,847
public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n...
public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); c = read(); if (c...
19,848
public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n...
public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n...
19,849
public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n...
public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n...
19,850
public long readLong() throws IOException { int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << ...
public long readLong() throws IOException { int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << ...
19,851
public long readLong() throws IOException { int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << ...
public long readLong() throws IOException { int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << ...
19,852
public long readLong() throws IOException { int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << ...
public long readLong() throws IOException { int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << ...
19,853
public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] ...
public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] ...
19,854
public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] ...
public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] ...
19,855
public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] ...
public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] ...
19,856
public int readUnsignedByte() throws IOException { return readByte() & 0xff; }
public int readUnsignedByte() throws IOException { return (int) readByte() & 0xff; }
19,857
public long readUnsignedInt() throws IOException { return readInt() & 0xffffffff; }
public long readUnsignedInt() throws IOException { return (long) readInt() & 0xffffffffL; }
19,858
public int readUnsignedShort() throws IOException { return readShort() & 0xffff; }
public int readUnsignedShort() throws IOException { return (int) readShort() & 0xffff; }
19,859
public void setBitOffset (int bitOffset) throws IOException { checkClosed(); if (bitOffset < 0 || bitOffset > 7) throw new IllegalArgumentException(); this.bitOffset = bitOffset; }
public void setBitOffset (int bitOffset) throws IOException { checkClosed(); if (bitOffset < 0 || bitOffset > 7) throw new IllegalArgumentException("bitOffset not between 0 and 7 inclusive"); this.bitOffset = bitOffset; }
19,860
private static void setStaticField(Class<?> clazz, String fieldName, Object value) { final VmStaticField f = (VmStaticField) clazz.getVmClass().getField( fieldName); final Vm vm = Vm.getVm(); final Object staticsTable; final Offset offset; if (f.isShared(...
private static void setStaticField(Class<?> clazz, String fieldName, Object value) throws PrivilegedActionPragma { final VmStaticField f = (VmStaticField) clazz.getVmClass().getField( fieldName); final Vm vm = Vm.getVm(); final Object staticsTable; final Offset ...
19,861
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_octet); }
public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_octet); }
19,862
public IllegalThreadStateException() { super(); }
public IllegalThreadStateException() { super(); }
19,863
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_double); }
public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_double); }
19,864
synchronized boolean isShutdown () { if (shutdown) return true; // This is the exact self-shutdown condition specified in J2SE: // http://java.sun.com/j2se/1.4.2/docs/api/java/awt/doc-files/AWTThreadIssues.html if (peekEvent() == null && ((ClasspathToolkit) Toolkit.getDefaultToolkit()).na...
synchronized boolean isShutdown () { if (shutdown) return true; // This is the exact self-shutdown condition specified in J2SE: // http://java.sun.com/j2se/1.4.2/docs/api/java/awt/doc-files/AWTThreadIssues.html if (peekEvent() == null && ((ClasspathToolkit) Toolkit.getDefaultToolkit()).na...
19,866
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + dispatchThreadNum++); this.queue = queue; setPriority(NORM_PRIORITY + 1); start(); }
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; setPriority(NORM_PRIORITY + 1); start(); }
19,867
public int read() throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
public int read() throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); }
19,870
public final Class getCategory() { return JobMediaSheets.class; }
public Class getCategory() { return JobMediaSheets.class; }
19,871
public final String getName() { return "job-media-sheets"; }
public String getName() { return "job-media-sheets"; }
19,872
public void setMaximum(Comparable newMaximum) { if (maximum != newMaximum) { maximum = newMaximum; fireStateChanged(); } }
public void setMaximum(Comparable newMaximum) { if (maximum != null ? !maximum.equals(newMaximum) : newMaximum != null) { maximum = newMaximum; fireStateChanged(); } }
19,873
public void setMinimum(Comparable newMinimum) { if (minimum != newMinimum) { minimum = newMinimum; fireStateChanged(); } }
public void setMinimum(Comparable newMinimum) { if (minimum != null ? !minimum.equals(newMinimum) : newMinimum != null) { minimum = newMinimum; fireStateChanged(); } }
19,874
public void setStepSize(Number newStepSize) { if (newStepSize == null) throw new IllegalArgumentException(); if (stepSize != newStepSize) { stepSize = newStepSize; fireStateChanged(); } }
public void setStepSize(Number newStepSize) { if (newStepSize == null) throw new IllegalArgumentException(); if (!stepSize.equals(newStepSize)) { stepSize = newStepSize; fireStateChanged(); } }
19,875
public final Class getCategory() { return PageRanges.class; }
public Class getCategory() { return PageRanges.class; }
19,877
public final String getName() { return "page-ranges"; }
public String getName() { return "page-ranges"; }
19,878
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
19,879
public void unregister_value_factory(String id) { throw new NO_IMPLEMENT(); }
public void unregister_value_factory(String repository_id) { throw new NO_IMPLEMENT(); }
19,880
public void setHorizontalAlignment(int newAlign) { int oldAlign = align; align = newAlign; invalidate(); repaint(); firePropertyChange("horizontalAlignment", oldAlign, newAlign); }
public void setHorizontalAlignment(int newAlign) { int oldAlign = align; align = newAlign; invalidate(); repaint(); }
19,881
getMaxAscent(){ return(getAscent());}
getMaxAscent(){ return(getAscent());}
19,882
getMaxDescent(){ return getMaxDecent ();}
getMaxDescent(){ return getMaxDecent ();}
19,883
public Object stringToValue(String string) throws ParseException { if (format != null) { Object o = format.parseObject(string); // If a value class has been set, call super in order to get // the class right. That is what the JDK API docs suggest, so we do // it that way. ...
public Object stringToValue(String string) throws ParseException { if (format != null) { Object o = format.parseObject(string); // If a value class has been set, call super in order to get // the class right. That is what the JDK API docs suggest, so we do // it that way. ...
19,884
public String getSelectedText() { try { return doc.getText(getSelectionStart(), getSelectionEnd()); } catch (BadLocationException e) { // This should never happen. return null; } }
public String getSelectedText() { try { return doc.getText(start, offset); } catch (BadLocationException e) { // This should never happen. return null; } }
19,885
public void beginLayout() { // TODO Auto-generated method stub }
public final void beginLayout() { // TODO Auto-generated method stub }
19,886
public void endLayout() { // TODO Auto-generated method stub }
public void endLayout() { // TODO Auto-generated method stub }
19,888
public Insets insets() { return getInsets(); }
public final Insets insets() { return getInsets(); }
19,889
public abstract Map getFlavorsForNatives (String[] natives);
Map getFlavorsForNatives (String[] natives);
19,892
public abstract Map getNativesForFlavors (DataFlavor[] flavors);
Map getNativesForFlavors (DataFlavor[] flavors);
19,893
public long getLastModified() { // TODO Auto-generated method stub return 0; }
public long getLastModified() { // TODO Auto-generated method stub return 0; }
19,894
public boolean isPropertySupported(String name) { return name.equals(IS_NAMESPACE_AWARE) || name.equals(IS_VALIDATING) || name.equals(IS_COALESCING) || name.equals(IS_REPLACING_ENTITY_REFERENCES) || name.equals(IS_SUPPORTING_EXTERNAL_ENTITIES) || name.equals(SUPPORT_DTD) || name.equa...
public boolean isPropertySupported(String name) { return name.equals(IS_NAMESPACE_AWARE) || name.equals(IS_VALIDATING) || name.equals(IS_COALESCING) || name.equals(IS_REPLACING_ENTITY_REFERENCES) || name.equals(IS_SUPPORTING_EXTERNAL_ENTITIES) || name.equals(SUPPORT_DTD) || name.equa...
19,897
public XMLParser(Reader reader, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean bas...
public XMLParser(InputStream in, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean ba...
19,899
public XMLParser(Reader reader, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean bas...
public XMLParser(Reader reader, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean bas...
19,900
private void dumpDebugInfo() { log.debug("Debug Dump"); log.debug("CSR0 = " + io.getCSR(0)); // stop the device so we can read all registers io.setCSR(0, CSR0_STOP); bufferManager.dumpData(log); int validVMWareLanceRegs[] = { 0, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14...
final void dumpDebugInfo() { log.debug("Debug Dump"); log.debug("CSR0 = " + io.getCSR(0)); // stop the device so we can read all registers io.setCSR(0, CSR0_STOP); bufferManager.dumpData(log); int validVMWareLanceRegs[] = { 0, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14, ...
19,901
private void executeIDsizes(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ObjectId oid = new ObjectId(); os.writeInt(oid.size()); // fieldId os.writeInt(oid.size()); // methodId os.writeInt(oid.size()); // objectId os.writeInt(new ReferenceTypeId((byte) 0x00).size()); // r...
private void executeIDsizes(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ObjectId oid = new ObjectId(); os.writeInt(oid.size()); // fieldId os.writeInt(oid.size()); // methodId os.writeInt(oid.size()); // objectId os.writeInt(new ReferenceTypeId((byte) 0x00).size()); // r...
19,902
public final Class getCategory() { return DateTimeAtCompleted.class; }
public Class getCategory() { return DateTimeAtCompleted.class; }
19,903
public final String getName() { return "date-time-at-completed"; }
public String getName() { return "date-time-at-completed"; }
19,904
public Element getElementById(String id) { DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype == null || !doctype.hasIds() || id == null || id.length() == 0) { return null; } // yes, this is linear in size of document. // it'd be easy enough to maintain a hashtabl...
public Element getElementById(String id) { DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype == null || !doctype.hasIds() || id == null || id.length() == 0) { return null; } // yes, this is linear in size of document. // it'd be easy enough to maintain a hashtabl...
19,905
protected void finalize() { header = null; tagTable = null; }
protected void finalize() { header = null; tagTable = null; }
19,907
public ContainerOrderFocusTraversalPolicy() { throw new Error("not implemented"); }
public ContainerOrderFocusTraversalPolicy() { }
19,908
public Component getComponentAfter(Container root, Component current) { return null; }
public Component getComponentAfter(Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalArgumentException ("roo...
19,909
public Component getComponentBefore(Container root, Component current) { return null; }
public Component getComponentBefore(Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalArgumentException ("ro...
19,911
public Component getDefaultComponent(Container root) { return null; }
public Component getDefaultComponent(Container root) { return getFirstComponent (root); }
19,913
public boolean getImplicitDownCycleTraversal() { return downCycle; }
public boolean getImplicitDownCycleTraversal() { return implicitDownCycleTraversal; }
19,915
public void setImplicitDownCycleTraversal(boolean value) { downCycle = value; }
public void setImplicitDownCycleTraversal(boolean value) { implicitDownCycleTraversal = value; }
19,917
public boolean unknown_adapter(POA parent, String child_name) { try { POA n = parent.create_POA(child_name, null, policySets.rootPoa()); n.the_POAManager().activate(); } catch (Exception ex) { return false; } return true; }
public boolean unknown_adapter(POA parent, String child_name) { try { POA n = parent.create_POA(child_name, null, StandardPolicies.rootPoa()); n.the_POAManager().activate(); } catch (Exception ex) { return false; } return true; }
19,918
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
public void set(int index, int value) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All bytes are within my data Syste...
19,919
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, value); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All bytes are within my d...
19,920