bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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 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... | 36,688 |
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, (dosDate... | 36,690 |
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, (dosDate... | 36,691 |
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) + cal.get(Calendar.DATE); } | 36,692 |
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) + 32 * cal.get(Calendar.MINUTE) + cal.get(Calendar.SECOND) / 2; } | 36,693 |
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); } | 36,694 |
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... | 36,695 |
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... | 36,696 |
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... | 36,697 |
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); } } | 36,700 |
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); } } | 36,701 |
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); } } | 36,702 |
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); } } | 36,703 |
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"); } | 36,704 |
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... | 36,706 |
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... | 36,707 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note that all implementation class nam... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(... | 36,708 |
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_short); } | public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_short); } | 36,710 |
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) }; setDeadCode(true); } | 36,711 |
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... | 36,712 |
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... | 36,713 |
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... | 36,714 |
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 ... | 36,715 |
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... | 36,717 |
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; } | 36,718 |
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... | 36,719 |
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... | 36,720 |
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; } | 36,721 |
public int getBitOffset(int x) { return (x * pixelBitStride + dataBitOffset) % dataElementSize; } | public int getBitOffset(int x) { return (x * pixelBitStride + dataBitOffset) % dataElementSize; } | 36,722 |
public int getDataBitOffset() { return dataBitOffset; } | public int getDataBitOffset() { return dataBitOffset; } | 36,723 |
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... | 36,724 |
public int getNumDataElements() { return 1; } | public int getNumDataElements() { return 1; } | 36,725 |
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; } | 36,726 |
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 = ... | 36,727 |
public int getPixelBitStride() { return pixelBitStride; } | public int getPixelBitStride() { return pixelBitStride; } | 36,728 |
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... | 36,729 |
public int[] getSampleSize() { int sampleSize[] = { pixelBitStride }; return sampleSize; } | public int[] getSampleSize() { int sampleSize[] = { pixelBitStride }; return sampleSize; } | 36,730 |
public int getScanlineStride() { return scanlineStride; } | public int getScanlineStride() { return scanlineStride; } | 36,731 |
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... | 36,732 |
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... | 36,733 |
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... | 36,734 |
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 + ... | 36,735 |
protected boolean accept(Component comp) { throw new Error("not implemented"); } | protected boolean accept (Component comp) { throw new Error("not implemented"); } | 36,736 |
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... | 36,737 |
public BeanContextChildSupport() { this(null); } | public BeanContextChildSupport() { this(null); } | 36,738 |
public BeanContext getBeanContext() { return beanContext; } | public BeanContext getBeanContext() { return beanContext; } | 36,739 |
public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | 36,740 |
public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | 36,741 |
public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | 36,742 |
public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | 36,743 |
public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | public void setBeanContext(BeanContext newBeanContext) throws PropertyVetoException { synchronized(beanContextChildPeer) { if(newBeanContext == beanContext) return; if(!rejectedSetBCOnce) { if(!validatePendingSetBeanContext(newBeanContext)) { rejectedSetBCOnce = true; throw new PropertyVetoExceptio... | 36,744 |
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... | 36,745 |
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... | 36,746 |
public Dimension preferredLayoutSize(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); if (view instanceof Scrollable) { Scrollable sc = (Scrollable) view; Dimension d = sc.getPreferredScrollableViewportSize(); // System.err.println(this + ".pref... | publicDimensionpreferredLayoutSize(Containerparent){JViewportvp=(JViewport)parent;Componentview=vp.getView();if(viewinstanceofScrollable){Scrollablesc=(Scrollable)view;Dimensiond=sc.getPreferredScrollableViewportSize();//System.err.println(this+".preferredLayoutSize():scrollable->"+d);returnd; }elsereturnview.getPrefer... | 36,747 |
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(); VmClassLoader bib = new VmClassLoader(new URL("file:///" + System.getProperty("classes.dir") + "/"), new VmX86Architecture()); VmType.initializeForBootImage(bib); clc = bib; } | 36,748 |
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... | 36,749 |
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; } | 36,750 |
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 ... | 36,751 |
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 ... | 36,752 |
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 ... | 36,753 |
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 ... | 36,754 |
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 ... | 36,755 |
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 ... | 36,756 |
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... | 36,757 |
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++) { ... | 36,759 |
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 != ... | 36,760 |
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... | 36,761 |
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... | 36,764 |
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... | 36,765 |
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; CompiledField current = null; for (int i = 0; i < pattern.length(); i++) { thisChar = pattern.charAt(i)... | private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; CompiledField current = null; for (int i = 0; i < pattern.length(); i++) { thisChar = pattern.charAt(i)... | 36,766 |
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... | 36,767 |
public String toString() { return toString(false); } | public String toString(boolean objectInfo) { return toString(false); } | 36,768 |
public String toString() { return toString(false); } | public String toString() { StringBuffer sb = new StringBuffer(super.toString()); Throwable cause = getRootCause(); if (cause != null) { sb.append(" caused by "); sb.append(cause); } Name remaining = getRemainingName(); if (remaining != null) { sb.append(" [remainingName: "); sb.append(remaining); } Object resolve... | 36,769 |
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; } | 36,770 |
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; } | 36,771 |
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; } | 36,772 |
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... | 36,773 |
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... | 36,775 |
public final Class getCategory() { return JobMediaSheetsCompleted.class; } | public Class getCategory() { return JobMediaSheetsCompleted.class; } | 36,777 |
public final String getName() { return "job-media-sheets-completed"; } | public String getName() { return "job-media-sheets-completed"; } | 36,778 |
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()... | 36,779 |
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()... | 36,780 |
public Rectangle2D createIntersection(Rectangle2D r) { // Favor runtime type of other rectangle. Rectangle2D res = r.getBounds2D(); intersect(this, r, res); return res; } | public Rectangle2D createIntersection(Rectangle2D r) { // Favor runtime type of other rectangle. Rectangle2D res = r.getBounds2D(); intersect(this, r, res); return res; } | 36,781 |
public Rectangle2D createUnion(Rectangle2D r) { // Favor runtime type of other rectangle. Rectangle2D res = r.getBounds2D(); union(this, r, res); return res; } | public Rectangle2D createUnion(Rectangle2D r) { // Favor runtime type of other rectangle. Rectangle2D res = r.getBounds2D(); union(this, r, res); return res; } | 36,782 |
public boolean equals(Object obj) { if (!(obj instanceof Rectangle2D)) return false; Rectangle2D r = (Rectangle2D) obj; return r.getX() == x && r.getY() == y && r.getWidth() == width && r.getHeight() == height; } | public boolean equals(Object obj) { if (!(obj instanceof Rectangle2D)) return false; Rectangle2D r = (Rectangle2D) obj; return r.getX() == x && r.getY() == y && r.getWidth() == width && r.getHeight() == height; } | 36,783 |
public boolean equals(Object obj) { if (!(obj instanceof Rectangle2D)) return false; Rectangle2D r = (Rectangle2D) obj; return r.getX() == x && r.getY() == y && r.getWidth() == width && r.getHeight() == height; } | public boolean equals(Object obj) { if (!(obj instanceof Rectangle2D)) return false; Rectangle2D r = (Rectangle2D) obj; return r.getX() == x && r.getY() == y && r.getWidth() == width && r.getHeight() == height; } | 36,784 |
public Rectangle2D getBounds2D() { return new Rectangle(x, y, width, height); } | public Rectangle2D getBounds2D() { return new Rectangle(x, y, width, height); } | 36,785 |
public void grow(int h, int v) { x -= h; y -= v; width += h + h; height += v + v; } | public void grow(int h, int v) { x -= h; y -= v; width += h + h; height += v + v; } | 36,786 |
public boolean inside(int x, int y) { return contains(x, y); } | public boolean inside(int x, int y) { return contains(x, y); } | 36,787 |
public void move(int x, int y) { setLocation(x, y); } | public void move(int x, int y) { setLocation(x, y); } | 36,788 |
public int outcode(double x, double y) { int result = 0; if (width <= 0) result |= OUT_LEFT | OUT_RIGHT; else if (x < this.x) result |= OUT_LEFT; else if (x > this.x + width) result |= OUT_RIGHT; if (height <= 0) result |= OUT_BOTTOM | OUT_TOP; else if (y < this.y) // Remember that +y heads top-to-bottom... | public int outcode(double x, double y) { int result = 0; if (width <= 0) result |= OUT_LEFT | OUT_RIGHT; else if (x < this.x) result |= OUT_LEFT; else if (x > this.x + width) result |= OUT_RIGHT; if (height <= 0) result |= OUT_BOTTOM | OUT_TOP; else if (y < this.y) // Remember that +y heads top-to-bottom... | 36,789 |
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); } | 36,790 |
public void resize(int width, int height) { setSize(width, height); } | public void resize(int width, int height) { setSize(width, height); } | 36,791 |
public String toString() { return getClass().getName() + "[x=" + x + ",y=" + y + ",width=" + width + ",height=" + height + ']'; } | public String toString() { return getClass().getName() + "[x=" + x + ",y=" + y + ",width=" + width + ",height=" + height + ']'; } | 36,792 |
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); } | 36,793 |
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); } | 36,794 |
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); } | 36,795 |
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); } | 36,796 |
public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); } | public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); } | 36,797 |
public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); } | public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); } | 36,798 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.