bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
22,968
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu (index); }}
22,969
public AccessibleRole getAccessibleRole() { return null; }
public AccessibleRole getAccessibleRole() { return AccessibleRole.SLIDER; }
22,971
public AccessibleStateSet getAccessibleStateSet() { return null; }
public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet result = super.getAccessibleStateSet(); if (orientation == JSlider.HORIZONTAL) result.add(AccessibleState.HORIZONTAL); else if (orientation == JSlider.VERTICAL) result.add(AccessibleState.VERTICAL); return result; }
22,972
public AccessibleValue getAccessibleValue() { return null; }
public AccessibleValue getAccessibleValue() { return this; }
22,973
public Number getCurrentAccessibleValue() { return null; }
public Number getCurrentAccessibleValue() { return new Integer(getValue()); }
22,974
public Number getMaximumAccessibleValue() { return null; }
public Number getMaximumAccessibleValue() { return new Integer(getMaximum()); }
22,975
public Number getMinimumAccessibleValue() { return null; }
public Number getMinimumAccessibleValue() { return new Integer(getMinimum()); }
22,976
public boolean setCurrentAccessibleValue(Number value0) { return false; }
public boolean setCurrentAccessibleValue(Number value) { return false; }
22,977
public static String getProperty(String key) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("getProperty." + key); return secprops.getProperty(key); }
public static String getProperty(String key) { SecurityManager sm = System.getSecurityManager(); if (sm != null && VMStackWalker.getCallingClassLoader() != null) sm.checkSecurityAccess("getProperty." + key); return secprops.getProperty(key); }
22,979
private static boolean loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return false; boolean result = true; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); ...
private static boolean loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return false; boolean result = true; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); ...
22,981
public MetalLookAndFeel() { }
public MetalLookAndFeel() { }
22,982
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { entries = new AbstractSet<Map.Entry<K, V>>() { public int size() { return cardinality; } public Iterator<Map.Entry<K, V>> iterator() { return new Iterator<Map.Entry<K, V>>() { int count = 0; int index = -1; ...
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { entries = new AbstractSet<Map.Entry<K, V>>() { public int size() { return cardinality; } public Iterator<Map.Entry<K, V>> iterator() { return new Iterator<Map.Entry<K, V>>() { int count = 0; int index = -1; ...
22,991
public Iterator<Map.Entry<K, V>> iterator() { return new Iterator<Map.Entry<K, V>>() { int count = 0; int index = -1; public boolean hasNext() { return count < cardinality; } public Map.Entry<K,V> next() { ++count; for (++index; store[index] == emptySlot; ++inde...
public Iterator<Map.Entry<K, V>> iterator() { return new Iterator<Map.Entry<K, V>>() { int count = 0; int index = -1; public boolean hasNext() { return count < cardinality; } public Map.Entry<K,V> next() { ++count; for (++index; store[index] == emptySlot; ++inde...
22,992
public Map.Entry<K,V> next() { ++count; for (++index; store[index] == emptySlot; ++index) ; // FIXME: we could just return something that // only knows the index. That would be cleaner. return new AbstractMap.BasicMapEntry<K, V>(enumClass.getEnumConstants()[index], store[index]) { pub...
public Map.Entry<K,V> next() { ++count; for (++index; store[index] == emptySlot; ++index) ; // FIXME: we could just return something that // only knows the index. That would be cleaner. return new AbstractMap.SimpleEntry<K, V>(enumClass.getEnumConstants()[index], store[index]) { publi...
22,993
protected void doResolveMember(AbstractVmClassLoader clc) { VmType vmClass = getConstClass().getResolvedVmClass(); vmResolvedField = vmClass.getField(getName()); if (vmResolvedField == null) { throw new NoSuchFieldError(toString() + " in class " + getClassName()); } }
protected void doResolveMember(VmClassLoader clc) { VmType vmClass = getConstClass().getResolvedVmClass(); vmResolvedField = vmClass.getField(getName()); if (vmResolvedField == null) { throw new NoSuchFieldError(toString() + " in class " + getClassName()); } }
22,994
private void writeRoot() throws BackingStoreException, IOException { bw.write(" <root type=\""); if (prefs.isUserNode()) { bw.write("user"); } else { bw.write("system"); } bw.write("\"/>"); writeRootMap(); writeNode(); bw.write(" </root...
private void writeRoot() throws BackingStoreException, IOException { bw.write(" <root type=\""); if (prefs.isUserNode()) { bw.write("user"); } else { bw.write("system"); } bw.write("\">"); writeRootMap(); writeNode(); bw.write(" </root>...
22,995
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { JNodeToolkit tk = (JNodeToolkit) JNodeToolkit.getDefaultToolkit(); Component source = tk.getFocusHandler().getFocusedComponent(); if (source == null) source = tk.getTop(); KeyEvent me = new KeyEvent(sou...
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { RawJNodeToolkit tk = (RawJNodeToolkit) RawJNodeToolkit.getDefaultToolkit(); Component source = tk.getFocusHandler().getFocusedComponent(); if (source == null) source = tk.getTop(); KeyEvent me = new Key...
22,996
protected boolean removeEldestEntry(Map.Entry eldest) { if(size()>MAX_SIZE) { try{ ((Block)eldest.getValue()).flush(); //notify the listeners CacheEvent event = new CacheEvent(eldest.getValue(),CacheEvent.REMOVED); Iterator listeners=cacheListeners.iterator(); while(listeners.hasNext()) { ((Cache...
protected synchronized boolean removeEldestEntry(Map.Entry eldest) { log.debug("BlockCache size: "+size()); if(size()>MAX_SIZE) { try{ ((Block)eldest.getValue()).flush(); //notify the listeners CacheEvent event = new CacheEvent(eldest.getValue(),CacheEvent.REMOVED); Iterator listeners=cacheListeners.ite...
22,997
public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR, dosTime >> 11); cal.set(Calendar.DATE, dosDate & 0x1f); cal.set(Calendar.MONTH, (dosDate...
public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR_OF_DAY, dosTime >> 11); cal.set(Calendar.DATE, dosDate & 0x1f); cal.set(Calendar.MONTH, (...
22,999
public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR, dosTime >> 11); cal.set(Calendar.DATE, dosDate & 0x1f); cal.set(Calendar.MONTH, (dosDate...
public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR, dosTime >> 11); cal.set(Calendar.DATE, dosDate & 0x1f); cal.set(Calendar.MONTH, ((dosDat...
23,000
public static int encodeDate(long javaDateTime) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(javaDateTime); return 512 * (cal.get(Calendar.YEAR) - 1980) + 32 * cal.get(Calendar.MONTH) + cal.get(Calendar.DATE); }
public static int encodeDate(long javaDateTime) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(javaDateTime); return 512 * (cal.get(Calendar.YEAR) - 1980) + 32 * ( cal.get(Calendar.MONTH) + 1 ) + cal.get(Calendar.DATE); }
23,001
public static int encodeTime(long javaDateTime) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(javaDateTime); return 2048 * cal.get(Calendar.HOUR) + 32 * cal.get(Calendar.MINUTE) + cal.get(Calendar.SECOND) / 2; }
public static int encodeTime(long javaDateTime) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(javaDateTime); return 2048 * cal.get(Calendar.HOUR_OF_DAY) + 32 * cal.get(Calendar.MINUTE) + cal.get(Calendar.SECOND) / 2; }
23,002
public int viewToModel(float fx, float fy, Shape a, Position.Bias[] bias) { return super.viewToModel(fx, fy, a, bias); }
public int viewToModel(float fx, float fy, Shape a, Position.Bias[] bias) { return super.viewToModel(fx, fy, adjustAllocation(a), bias); }
23,003
protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height...
protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height...
23,004
protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height...
protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height...
23,005
protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height...
protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height...
23,006
protected void setBorderToNormal(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; Border border = (Border) borders.get(b); b.setBorder(border); } }
protected void setBorderToNormal(Component c) { if (c instanceof AbstractButton) { JButton b = (JButton) c; Border border = (Border) borders.get(b); b.setBorder(border); } }
23,009
protected void setBorderToNormal(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; Border border = (Border) borders.get(b); b.setBorder(border); } }
protected void setBorderToNormal(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; Border border = (Border) borders.get(b); b.setBorder(border); } }
23,010
protected void setBorderToRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(true); b.setBorder(rolloverBorder); } }
protected void setBorderToRollover(Component c) { if (c instanceof AbstractButton) { JButton b = (JButton) c; b.setRolloverEnabled(true); b.setBorder(rolloverBorder); } }
23,011
protected void setBorderToRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(true); b.setBorder(rolloverBorder); } }
protected void setBorderToRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(true); b.setBorder(rolloverBorder); } }
23,012
protected void flushBits() throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
protected final void flushBits() throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
23,013
private static void incomingMessageCall(UnicastConnection conn) throws IOException { ObjectInputStream in = conn.startObjectInputStream(); // (re)start // ObjectInputStream ObjID objid = ObjID.read(in); int method = in.readInt(); long hash = in.readLon...
private static void incomingMessageCall(UnicastConnection conn) throws IOException { ObjectInputStream in = conn.startObjectInputStream(); // (re)start // ObjectInputStream ObjID objid = ObjID.read(in); int method = in.readInt(); long hash = in.readLon...
23,015
private static void incomingMessageCall(UnicastConnection conn) throws IOException { ObjectInputStream in = conn.startObjectInputStream(); // (re)start // ObjectInputStream ObjID objid = ObjID.read(in); int method = in.readInt(); long hash = in.readLon...
private static void incomingMessageCall(UnicastConnection conn) throws IOException { ObjectInputStream in = conn.startObjectInputStream(); // (re)start // ObjectInputStream ObjID objid = ObjID.read(in); int method = in.readInt(); long hash = in.readLon...
23,016
public VariableRefAssignQuad(int address, IRBasicBlock block, int lhsIndex, int rhsIndex) { super(address, block, lhsIndex); refs = new Operand[] { getOperand(rhsIndex) }; setDeadCode(true); }
public VariableRefAssignQuad(int address, IRBasicBlock block, int lhsIndex, int rhsIndex) { super(address, block, lhsIndex); refs = new Operand[] { getOperand(rhsIndex) }; }
23,017
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
23,018
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmExcept...
23,019
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
23,020
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); if (lastException != null) throw ...
23,021
public MultiPixelPackedSampleModel(int dataType, int w, int h, int numberOfBits) { this(dataType, w, h, numberOfBits, (w * numberOfBits + DataBuffer.getDataTypeSize(dataType) - 1) / DataBuffer.getDataTypeSize(dataType), 0); if (dataType != DataBuffer.TYPE_BYTE && dataType != DataBuffer.TYPE_USHORT && dataType != Dat...
public MultiPixelPackedSampleModel(int dataType, int w, int h, int numberOfBits) { this(dataType, w, h, numberOfBits, (w * numberOfBits + DataBuffer.getDataTypeSize(dataType) - 1) / DataBuffer.getDataTypeSize(dataType), 0); if (dataType != DataBuffer.TYPE_BYTE && dataType != DataBuffer.TYPE_USHORT && dataType != Dat...
23,023
public SampleModel createCompatibleSampleModel(int w, int h) { SampleModel sampleModel = new MultiPixelPackedSampleModel(dataType, w, h, pixelBitStride); return sampleModel; }
public SampleModel createCompatibleSampleModel(int w, int h) { SampleModel sampleModel = new MultiPixelPackedSampleModel(dataType, w, h, pixelBitStride); return sampleModel; }
23,024
public DataBuffer createDataBuffer() { DataBuffer dataBuffer = null; int size = scanlineStride * height; switch (dataType) { case DataBuffer.TYPE_BYTE : dataBuffer = new DataBufferByte(size + (dataBitOffset + 7) / 8); break; case DataBuffer.TYPE_USHORT : dataBuffer = new DataBufferUShort(size + (dataBi...
public DataBuffer createDataBuffer() { DataBuffer dataBuffer = null; int size = scanlineStride * height; switch (dataType) { case DataBuffer.TYPE_BYTE : dataBuffer = new DataBufferByte(size + (dataBitOffset + 7) / 8); break; case DataBuffer.TYPE_USHORT : dataBuffer = new DataBufferUShort(size + (dataBi...
23,025
public DataBuffer createDataBuffer() { DataBuffer dataBuffer = null; int size = scanlineStride * height; switch (dataType) { case DataBuffer.TYPE_BYTE : dataBuffer = new DataBufferByte(size + (dataBitOffset + 7) / 8); break; case DataBuffer.TYPE_USHORT : dataBuffer = new DataBufferUShort(size + (dataBi...
public DataBuffer createDataBuffer() { DataBuffer dataBuffer = null; int size = scanlineStride * height; switch (dataType) { case DataBuffer.TYPE_BYTE : dataBuffer = new DataBufferByte(size + (dataBitOffset + 7) / 8); break; case DataBuffer.TYPE_USHORT : dataBuffer = new DataBufferUShort(size + (dataBi...
23,026
public SampleModel createSubsetSampleModel(int bands[]) { if (bands != null) { if (bands.length != 1) throw new RasterFormatException("MultiPixelPackedSampleModel has " + "only one band."); } SampleModel sm = createCompatibleSampleModel(width, height); return sm; }
public SampleModel createSubsetSampleModel(int bands[]) { if (bands != null) { if (bands.length != 1) throw new RasterFormatException("MultiPixelPackedSampleModel has " + "only one band."); } SampleModel sm = createCompatibleSampleModel(width, height); return sm; }
23,027
public int getBitOffset(int x) { return (x * pixelBitStride + dataBitOffset) % dataElementSize; }
public int getBitOffset(int x) { return (x * pixelBitStride + dataBitOffset) % dataElementSize; }
23,028
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int shift = dataElementSiz...
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int shift = dataElementSiz...
23,029
public int getOffset(int x, int y) { int offset = y * scanlineStride; offset += (x * pixelBitStride + dataBitOffset) / dataElementSize; return offset; }
public int getOffset(int x, int y) { int offset = y * scanlineStride; offset += (x * pixelBitStride + dataBitOffset) / dataElementSize; return offset; }
23,030
public int[] getPixel(int x, int y, int iArray[], DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int pixels[]; if (iArray != null) { pixels = iArray; } else { pixels = new int[numBands]; } int bitnum = ...
public int[] getPixel(int x, int y, int iArray[], DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int pixels[]; if (iArray != null) { pixels = iArray; } else { pixels = new int[numBands]; } int bitnum = ...
23,031
public int getPixelBitStride() { return pixelBitStride; }
public int getPixelBitStride() { return pixelBitStride; }
23,032
public int getSample(int x, int y, int b, DataBuffer data) { // 'b' must be 0 if ((x < 0) || (y < 0) || (x >= width) || (y >= height) || (b != 0)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int element = data.getElem(y * scanlineSt...
public int getSample(int x, int y, int b, DataBuffer data) { // 'b' must be 0 if ((x < 0) || (y < 0) || (x >= width) || (y >= height) || (b != 0)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int element = data.getElem(y * scanlineSt...
23,033
public int[] getSampleSize() { int sampleSize[] = { pixelBitStride }; return sampleSize; }
public int[] getSampleSize() { int sampleSize[] = { pixelBitStride }; return sampleSize; }
23,034
public void setDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStri...
public void setDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStri...
23,035
public void setDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStri...
public void setDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStri...
23,036
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStride + (bitnum / dataElementSize); in...
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStride + (bitnum / dataElementSize); in...
23,037
public void setSample(int x, int y, int b, int s, DataBuffer data) { // 'b' must be 0 if ((x < 0) || (y < 0) || (x >= width) || (y >= height) || (b != 0)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStride + ...
public void setSample(int x, int y, int b, int s, DataBuffer data) { // 'b' must be 0 if ((x < 0) || (y < 0) || (x >= width) || (y >= height) || (b != 0)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStride + ...
23,038
protected boolean accept(Component comp) { throw new Error("not implemented"); }
protected boolean accept(Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instanceof ScrollPane || comp...
23,039
public void layoutContainer(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); Rectangle portBounds = vp.getBounds(); Dimension viewMinimum = view.getMinimumSize(); int width = Math.max(portBounds.width, viewMinimum.width); int height = Ma...
public void layoutContainer(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); Rectangle portBounds = vp.getBounds(); Dimension viewMinimum = view.getMinimumSize(); int width = Math.max(portBounds.width, viewMinimum.width); int height = Ma...
23,040
public void layoutContainer(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); Rectangle portBounds = vp.getBounds(); Dimension viewMinimum = view.getMinimumSize(); int width = Math.max(portBounds.width, viewMinimum.width); int height = Ma...
public void layoutContainer(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); Rectangle portBounds = vp.getBounds(); Dimension viewMinimum = view.getMinimumSize(); int width = Math.max(portBounds.width, viewMinimum.width); int height = Ma...
23,041
protected void setUp() throws Exception { super.setUp(); VmClassLoader bib = new VmClassLoader(new URL("file:///" + System.getProperty("classes.dir") + "/"), new VmX86Architecture()); VmType.initializeForBootImage(bib); clc = bib; }
protected void setUp() throws Exception { super.setUp(); VmSystemClassLoader bib = new VmSystemClassLoader(new URL("file:///" + System.getProperty("classes.dir") + "/"), new VmX86Architecture()); VmType.initializeForBootImage(bib); clc = bib; }
23,042
public static synchronized TypeCode type() { if (typeCode == null) { synchronized (TypeCode.class) { if (typeCode == null) { ORB orb = Restricted_ORB.Singleton; if (active) { return orb.create_recursive_...
public static synchronized TypeCode type() { if (typeCode == null) { synchronized (TypeCode.class) { if (typeCode == null) { ORB orb = OrbRestricted.Singleton; if (active) { return orb.create_recursive_t...
23,043
public static TypeCode type() { if (typeCode == null) { typeCode = Restricted_ORB.Singleton.create_interface_tc(IDLTypeHelper.id(), "IDLType" ); } return typeCode; }
public static TypeCode type() { if (typeCode == null) { typeCode = OrbRestricted.Singleton.create_interface_tc(IDLTypeHelper.id(), "IDLType" ); } return typeCode; }
23,044
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
23,045
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
23,046
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
23,047
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
23,048
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
23,049
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
23,050
public static int vmMain() throws PragmaUninterruptible { //return 15; try { Unsafe.debug("Starting JNode\n"); final long start = VmSystem.currentKernelMillis(); //Unsafe.debug("VmSystem.initialize\n"); VmSystem.initialize(); //Unsafe.debug("Starting PluginManager"); final PluginManager piMgr = new Defa...
public static int vmMain() throws PragmaUninterruptible { //return 15; try { Unsafe.debug("Starting JNode\n"); final long start = VmSystem.currentKernelMillis(); //Unsafe.debug("VmSystem.initialize\n"); VmSystem.initialize(); //Unsafe.debug("Starting PluginManager"); final PluginManager piMgr = new Defa...
23,051
public Any[] clone_slots() { if (orb.icSlotSize == 0) { return NO_SLOTS; } else { Any[] r = get_slots(); Any[] copy = new Any[ r.length ]; cdrBufOutput buf = new cdrBufOutput(); buf.setOrb(orb); for (int i = 0; i < copy.length; i++) { ...
public Any[] clone_slots() { if (orb.icSlotSize == 0) { return NO_SLOTS; } else { Any[] r = get_slots(); Any[] copy = new Any[ r.length ]; BufferedCdrOutput buf = new BufferedCdrOutput(); buf.setOrb(orb); for (int i = 0; i < copy.length; i++) { ...
23,053
public void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = layeredPane; Component candidate = null; Point p = me.getPoint(); while ((candidate == null) && (parent != ...
public void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = layeredPane; Component candidate = null; Point p = me.getPoint(); while ((candidate == null) && (parent != ...
23,054
public NTFSAttribute getAttribute(int attrTypeID) { log.debug("getAttribute(0x" + NumberUtils.hex(attrTypeID, 4) + ")"); int offset = this.getFirtAttributeOffset(); while (true) { final int type = getUInt32AsInt(offset + 0x00); if (type == 0xFFFFFFFF) { // T...
public NTFSAttribute getAttribute(int attrTypeID) { log.debug("getAttribute(0x" + NumberUtils.hex(attrTypeID, 4) + ")"); int offset = this.getFirtAttributeOffset(); while (true) { final int type = getUInt32AsInt(offset + 0x00); if (type == 0xFFFFFFFF) { // T...
23,055
public void send(IOR ior) { try { Socket socket = new Socket(ior.Internet.host, ior.Internet.port); OutputStream socketOutput = socket.getOutputStream(); write(socketOutput); socketOutput.close(); socket.close(); } catch (IOException ex) { MARSHAL t = ne...
public void send(IOR ior, ORB orb) { try { Socket socket = new Socket(ior.Internet.host, ior.Internet.port); OutputStream socketOutput = socket.getOutputStream(); write(socketOutput); socketOutput.close(); socket.close(); } catch (IOException ex) { MARSH...
23,058
public void send(IOR ior) { try { Socket socket = new Socket(ior.Internet.host, ior.Internet.port); OutputStream socketOutput = socket.getOutputStream(); write(socketOutput); socketOutput.close(); socket.close(); } catch (IOException ex) { MARSHAL t = ne...
public void send(IOR ior) { try { Socket socket; if (orb instanceof OrbFunctional) socket = ((OrbFunctional) orb).socketFactory.createClientSocket( ior.Internet.host, ior.Internet.port); else socket = new Socket(ior.Internet.host, ior.Internet.port); OutputStream socketOutput = socket.getOutpu...
23,059
public Ne2000Core( Ne2000PCIDriver driver, ResourceOwner owner, Device device, Ne2000Flags flags) throws ResourceNotFreeException, DriverException { final int irq = getIRQ(device, flags); this.driver = driver; this.flags = flags; this.tx_active = false; // Get the start of the IO address space iobase = getI...
public Ne2000Core( Ne2000PCIDriver driver, ResourceOwner owner, Device device, Ne2000Flags flags) throws ResourceNotFreeException, DriverException { final int irq = getIRQ(device, flags); this.driver = driver; this.flags = flags; this.tx_active = false; // Get the start of the IO address space iobase = getI...
23,060
public boolean dispatchEvent(AWTEvent event) { boolean dispatched = false; if (event instanceof MouseEvent && event.getSource() instanceof Window) { MouseEvent mouseEvent = (MouseEvent) event; handleMouseEvent(mouseEvent); dispatched = true; } return dispatched; }
public boolean dispatchEvent(AWTEvent event) { if (event instanceof MouseEvent && event.getSource() instanceof Window) { MouseEvent mouseEvent = (MouseEvent) event; handleMouseEvent(mouseEvent); dispatched = true; } return dispatched; }
23,061
public boolean dispatchEvent(AWTEvent event) { boolean dispatched = false; if (event instanceof MouseEvent && event.getSource() instanceof Window) { MouseEvent mouseEvent = (MouseEvent) event; handleMouseEvent(mouseEvent); dispatched = true; } return dispatched; }
public boolean dispatchEvent(AWTEvent event) { boolean dispatched = false; if (event instanceof MouseEvent && event.getSource() instanceof Window) { MouseEvent mouseEvent = (MouseEvent) event; handleMouseEvent(mouseEvent); dispatched = true; } return dispatched; }
23,062
public boolean dispatchEvent(AWTEvent event) { boolean dispatched = false; if (event instanceof MouseEvent && event.getSource() instanceof Window) { MouseEvent mouseEvent = (MouseEvent) event; handleMouseEvent(mouseEvent); dispatched = true; } return dispatched; }
public boolean dispatchEvent(AWTEvent event) { boolean dispatched = false; if (event instanceof MouseEvent && event.getSource() instanceof Window) { MouseEvent mouseEvent = (MouseEvent) event; handleMouseEvent(mouseEvent); dispatched = true; } return false; }
23,063
private void handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); if (target != null && target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event target // is different fr...
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); if (target != null && target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event target // is different...
23,064
protected static boolean isLogicalFontName(String name) { String uname = name.toUpperCase (); return (uname.equals ("SANSSERIF") || uname.equals ("SERIF") || uname.equals ("MONOSPACED") || uname.equals ("DIALOG") || uname.equals ("DIALOGINPUT")); }
protected static boolean isLogicalFontName(String name) { String uname = name.toUpperCase (); return (uname.equals ("SANSSERIF") || uname.equals ("SERIF") || uname.equals ("MONOSPACED") || uname.equals ("DIALOG") || uname.equals ("DIALOGINPUT") || uname.equals ("DEFA...
23,066
public final Class getCategory() { return JobMediaSheetsCompleted.class; }
public Class getCategory() { return JobMediaSheetsCompleted.class; }
23,068
public final String getName() { return "job-media-sheets-completed"; }
public String getName() { return "job-media-sheets-completed"; }
23,069
private synchronized Logger findAncestor(Logger child) { String childName = child.getName(); Logger best = rootLogger; int bestNameLength = 0; Logger cand; String candName; int candNameLength; if (child == rootLogger) return null; for (Iterator iter = loggers.keySet().iterator()...
private synchronized Logger findAncestor(Logger child) { String childName = child.getName(); Logger best = rootLogger; int bestNameLength = 0; Logger cand; String candName; int candNameLength; if (child == rootLogger) return null; for (Iterator iter = loggers.keySet().iterator()...
23,070
private synchronized Logger findAncestor(Logger child) { String childName = child.getName(); Logger best = rootLogger; int bestNameLength = 0; Logger cand; String candName; int candNameLength; if (child == rootLogger) return null; for (Iterator iter = loggers.keySet().iterator()...
private synchronized Logger findAncestor(Logger child) { String childName = child.getName(); Logger best = rootLogger; int bestNameLength = 0; Logger cand; String candName; int candNameLength; if (child == rootLogger) return null; for (Iterator iter = loggers.keySet().iterator()...
23,071
public boolean inside(int x, int y) { return contains(x, y); }
public boolean inside(int x, int y) { return contains(x, y); }
23,072
public void move(int x, int y) { setLocation(x, y); }
public void move(int x, int y) { setLocation(x, y); }
23,073
public void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height); }
public void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height); }
23,074
public void resize(int width, int height) { setSize(width, height); }
public void resize(int width, int height) { setSize(width, height); }
23,075
public Policy _get_policy(int type) { return delegate.get_policy(this, type); }
public Policy _get_policy(int a_policy_type) { return delegate.get_policy(this, type); }
23,076
public Policy _get_policy(int type) { return delegate.get_policy(this, type); }
public Policy _get_policy(int type) { return delegate.get_policy(this, a_policy_type); }
23,077
public org.omg.CORBA.Object _set_policy_override(Policy[] policies, SetOverrideType set_add ) { return delegate.set_policy_override(this, policies, set_add); }
public org.omg.CORBA.Object _set_policy_override(Policy[] policies, SetOverrideType how ) { return delegate.set_policy_override(this, policies, set_add); }
23,078
public org.omg.CORBA.Object _set_policy_override(Policy[] policies, SetOverrideType set_add ) { return delegate.set_policy_override(this, policies, set_add); }
public org.omg.CORBA.Object _set_policy_override(Policy[] policies, SetOverrideType set_add ) { return delegate.set_policy_override(this, policies, how); }
23,079
public void addItem(String item) { addItem(item, -1); }
public void addItem(String item) { addItem(item, -1); }
23,080
public void addNotify() { if (peer == null) peer = getToolkit().createList(this); super.addNotify(); }
addNotify() { if (peer == null) peer = getToolkit().createList(this); super.addNotify(); }
23,081
public boolean allowsMultipleSelections() { return (multipleMode); }
public boolean allowsMultipleSelections() { return (multipleMode); }
23,082
public void clear() { removeAll(); }
public void clear() { removeAll(); }
23,083
public int countItems() { return (getItemCount()); }
public int countItems() { return (getItemCount()); }
23,084
public void delItem(int index) throws IllegalArgumentException { remove(index); }
public void delItem(int index) throws IllegalArgumentException { remove(index); }
23,085
public synchronized void delItems(int start, int end) throws IllegalArgumentException { if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index value: " + start); if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index valu...
delItems(int start, int end) throws IllegalArgumentException { if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index value: " + start); if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index value: " + start); if (start...
23,086
public synchronized void delItems(int start, int end) throws IllegalArgumentException { if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index value: " + start); if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index valu...
public synchronized void delItems(int start, int end) throws IllegalArgumentException { if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index value: " + start); if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index valu...
23,087
public synchronized void deselect(int index) { ListPeer lp = (ListPeer) getPeer(); if (lp != null) lp.deselect(index); }
public synchronized void deselect(int index) { ListPeer lp = (ListPeer) getPeer(); if (lp != null) lp.deselect(index); }
23,089