bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public boolean equals(Object o) { return ((X509CRLEntry) o).serialNo.equals(serialNo) && ((X509CRLEntry) o).revocationDate.equals(revocationDate); } | public boolean equals(Object o) { return ((X509CRLEntry) o).serialNo.equals(serialNo) && ((X509CRLEntry) o).revocationDate.equals(revocationDate); } | 20,149 |
private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | private void parse(int version, DERReader der) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | 20,150 |
private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | private void parse(int version, InputStream in) throws Exception { DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); serialNo = (BigInteger) val.getV... | 20,151 |
private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); serialN... | 20,152 |
private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | 20,153 |
private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | 20,154 |
private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | 20,155 |
private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | private void parse(int version, InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue entry = der.read(); if (!entry.isConstructed()) throw new ASN1ParsingException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; DERValue val = der.read(); ... | 20,156 |
public String toString() { return "X509CRLEntry serial=" + serialNo + " revocation date=" + revocationDate + " critExt=" + critOids + " ext=" + nonCritOids; } | public String toString() { return "X509CRLEntry serial=" + serialNo + " revocation date=" + revocationDate + " ext=" + extensions; } | 20,158 |
public static boolean insertSysException(Any into, SystemException exception) { try { cdrBufOutput output = new cdrBufOutput(); String m_exception_id = getRepositoryId(exception.getClass()); output.write_string(m_exception_id); output.write_ulong(exception.minor); Completio... | public static boolean insertSysException(Any into, SystemException exception) { try { BufferedCdrOutput output = new BufferedCdrOutput(); String m_exception_id = getRepositoryId(exception.getClass()); output.write_string(m_exception_id); output.write_ulong(exception.minor); ... | 20,159 |
public static boolean insertSysException(Any into, SystemException exception) { try { cdrBufOutput output = new cdrBufOutput(); String m_exception_id = getRepositoryId(exception.getClass()); output.write_string(m_exception_id); output.write_ulong(exception.minor); Completio... | public static boolean insertSysException(Any into, SystemException exception) { try { cdrBufOutput output = new cdrBufOutput(); String m_exception_id = getRepositoryId(exception.getClass()); output.write_string(m_exception_id); output.write_ulong(exception.minor); Completio... | 20,160 |
public static boolean insertSysException(Any into, SystemException exception) { try { cdrBufOutput output = new cdrBufOutput(); String m_exception_id = getRepositoryId(exception.getClass()); output.write_string(m_exception_id); output.write_ulong(exception.minor); Completio... | public static boolean insertSysException(Any into, SystemException exception) { try { cdrBufOutput output = new cdrBufOutput(); String m_exception_id = getRepositoryId(exception.getClass()); output.write_string(m_exception_id); output.write_ulong(exception.minor); Completio... | 20,161 |
public static SystemException readSystemException(InputStream input, ServiceContext[] contexts) { SystemException exception; String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus completed = CompletionStatusHelper.read(input); try { exception = (SystemExcept... | public static SystemException readSystemException(InputStream input, ServiceContext[] contexts) { SystemException exception; String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus completed = CompletionStatusHelper.read(input); try { exception = (SystemExcept... | 20,162 |
public static SystemException readSystemException(InputStream input, ServiceContext[] contexts) { SystemException exception; String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus completed = CompletionStatusHelper.read(input); try { exception = (SystemExcept... | public static SystemException readSystemException(InputStream input, ServiceContext[] contexts) { SystemException exception; String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus completed = CompletionStatusHelper.read(input); try { exception = (SystemExcept... | 20,163 |
public static SystemException readSystemException(InputStream input, ServiceContext[] contexts) { SystemException exception; String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus completed = CompletionStatusHelper.read(input); try { exception = (SystemExcept... | public static SystemException readSystemException(InputStream input, ServiceContext[] contexts) { SystemException exception; String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus completed = CompletionStatusHelper.read(input); try { exception = (SystemExcept... | 20,164 |
private void teardown() { log.entering(this.getClass().getName(), "teardown"); //$NON-NLS-1$ // if we added our own providers remove them if (gnuCryptoProviderNdx > 0) ProviderUtil.removeProvider(Registry.GNU_CRYPTO); if (gnuCallbacksNdx > 0) ProviderUtil.removeProvider("GNU-CALLBACKS"); //$NON... | void teardown() { log.entering(this.getClass().getName(), "teardown"); //$NON-NLS-1$ // if we added our own providers remove them if (gnuCryptoProviderNdx > 0) ProviderUtil.removeProvider(Registry.GNU_CRYPTO); if (gnuCallbacksNdx > 0) ProviderUtil.removeProvider("GNU-CALLBACKS"); //$NON-NLS-1$ ... | 20,170 |
public WrappedLine(Element elem) { super(elem); determineNumLines(); } | public WrappedLine(Element elem) { super(elem); } | 20,172 |
void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | private int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depend... | 20,173 |
void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | void determineNumLines() { int nLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending o... | 20,174 |
void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 20,175 |
void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { nLines++; // careful: check that there's no off-by-one problem here // depending on whi... | 20,176 |
void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 20,177 |
void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 20,178 |
void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 20,179 |
public void insertUpdate (DocumentEvent changes, Shape a, ViewFactory f) { updateDamage((Rectangle)a); } | public void insertUpdate (DocumentEvent changes, Shape a, ViewFactory f) { Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); updateDamage(r); } | 20,181 |
public void removeUpdate (DocumentEvent changes, Shape a, ViewFactory f) { // Note: This method is not called when characters from the // end of the document are removed. The reason for this // can be found in the implementation of View.forwardUpdate: // The document event will denote offsets... | public void removeUpdate (DocumentEvent changes, Shape a, ViewFactory f) { // Note: This method is not called when characters from the // end of the document are removed. The reason for this // can be found in the implementation of View.forwardUpdate: // The document event will denote offsets... | 20,182 |
void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) ... | void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. int nLines = determineNumLines(); if ... | 20,183 |
void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) ... | void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) ... | 20,184 |
void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) ... | void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) ... | 20,185 |
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); // Although calling modelToView with the last possible offset will // cause a BadLocationException in CompositeView it is... | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); // Although calling modelToView with the last possible offset will // cause a BadLocationException in CompositeView it is... | 20,186 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 20,187 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 20,188 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 20,189 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 20,190 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 20,192 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 20,193 |
public void changedUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.changedUpdate(e, a, viewFactory); // No repaint needed, as this is done by the WrappedLine instances. } | public void changedUpdate (DocumentEvent e, Shape a, ViewFactory f) { updateChildren(e, a); // No repaint needed, as this is done by the WrappedLine instances. } | 20,194 |
public void insertUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.insertUpdate(e, a, viewFactory); // No repaint needed, as this is done by the WrappedLine instances. } | public void insertUpdate (DocumentEvent e, Shape a, ViewFactory f) { updateChildren(e, a); // No repaint needed, as this is done by the WrappedLine instances. } | 20,195 |
public float nextTabStop(float x, int tabStop) { JTextComponent host = (JTextComponent)getContainer(); float tabSizePixels = getTabSize() * host.getFontMetrics(host.getFont()).charWidth('m'); return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels; } | public float nextTabStop(float x, int tabStop) { JTextComponent host = (JTextComponent)getContainer(); float tabSizePixels = getTabSize() * host.getFontMetrics(host.getFont()).charWidth('m'); return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels; } | 20,197 |
public void removeUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.removeUpdate(e, a, viewFactory); // No repaint needed, as this is done by the WrappedLine instances. } | public void removeUpdate (DocumentEvent e, Shape a, ViewFactory f) { updateChildren(e, a); // No repaint needed, as this is done by the WrappedLine instances. } | 20,199 |
public int getWidth() { return width; } | public int getWidth() { return span[X_AXIS]; } | 20,202 |
public int getHeight() { return height; } | public int getHeight() { return span[Y_AXIS]; } | 20,203 |
public void setSize(float width, float height) { if (this.width != (int) width) layoutChanged(X_AXIS); if (this.height != (int) height) layoutChanged(Y_AXIS); this.width = (int) width; this.height = (int) height; Rectangle outside = new Rectangle(0, 0, this.width, this.height); Rectangle ... | public void setSize(float width, float height) { if (this.width != (int) width) layoutChanged(X_AXIS); if (this.height != (int) height) layoutChanged(Y_AXIS); this.width = (int) width; this.height = (int) height; Rectangle outside = new Rectangle(0, 0, this.width, this.height); Rectangle ... | 20,204 |
public void preferenceChanged (View child, boolean width, boolean height) { if (width) xLayoutValid = false; if (height) yLayoutValid = false; super.preferenceChanged(child, width, height); } | public void preferenceChanged (View child, boolean width, boolean height) { if (width) layoutValid[X_AXIS] = false; if (height) yLayoutValid = false; super.preferenceChanged(child, width, height); } | 20,205 |
public void preferenceChanged (View child, boolean width, boolean height) { if (width) xLayoutValid = false; if (height) yLayoutValid = false; super.preferenceChanged(child, width, height); } | public void preferenceChanged (View child, boolean width, boolean height) { if (width) xLayoutValid = false; if (height) layoutValid[Y_AXIS] = false; super.preferenceChanged(child, width, height); } | 20,206 |
public void clean(java.rmi.server.ObjID[] $param_0, long $param_1, java.rmi.dgc.VMID $param_2, boolean $param_3) throws java.rmi.RemoteException { try { if (useNewInvoke) { ref.invoke(this, $method_clean_0, new java.lang.Object[] {$param_0, new java.lang.Long($param_1), $param_2, ne... | public void clean(java.rmi.server.ObjID[] $param_0, long $param_1, java.rmi.dgc.VMID $param_2, boolean $param_3) throws java.rmi.RemoteException { try { if (useNewInvoke) { ref.invoke(this, $method_clean_0, new java.lang.Object[] {$param_0, new java.lang.Long($param_1), $param_2, Bo... | 20,229 |
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte... | private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte... | 20,231 |
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte... | private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte... | 20,232 |
public Formatter(Appendable app, Locale loc) { this.out = app == null ? new StringBuilder() : app; this.locale = loc; } | public Formatter() { this.out = app == null ? new StringBuilder() : app; this.locale = loc; } | 20,233 |
public Formatter(Appendable app, Locale loc) { this.out = app == null ? new StringBuilder() : app; this.locale = loc; } | public Formatter(Appendable app, Locale loc) { this.out = app == null ? new StringBuilder() : app; this.locale = loc; } | 20,234 |
public Formatter format(String format, Object... args) { return format(locale, format, args); } | public Formatter format(Locale loc, String fmt, Object... args) { return format(locale, format, args); } | 20,235 |
public Formatter format(String format, Object... args) { return format(locale, format, args); } | public Formatter format(String format, Object... args) { if (closed) throw new FormatterClosedException(); int implicitArgumentIndex = 1; int previousArgumentIndex = 0; try { fmtLocale = loc; format = fmt; length = format.length(); for (index = 0; index < length; ++index) { char c = format.charAt(index); if (c... | 20,236 |
public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this(w, h, ColorModel.getRGBdefault(), pix, off, scan, null); } | public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this(w, h, ColorModel.getRGBdefault(), pix, off, scan, null); } | 20,237 |
public Style addStyle(String nm, Style parent) { StyleContext context = (StyleContext) getAttributeContext(); return context.addStyle(nm, parent); } | public Style addStyle(String nm, Style parent) { StyleContext context = (StyleContext) getAttributeContext(); Style newStyle = context.addStyle(nm, parent); if (styleChangeListener == null) styleChangeListener = new StyleChangeListener(); newStyle.addChangeListener(styleChangeListener); return newStyle; } | 20,238 |
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocatio... | protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocatio... | 20,239 |
abstract void dump(boolean dumpStack, VmStackReader stackReader); | final void dump(boolean dumpStack, VmStackReader stackReader) { Unsafe.debug(name); Unsafe.debug("-queue:\n"); VmThreadQueueEntry e = first; if (e == null) { Unsafe.debug("Empty\n"); } else { while (e != null) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.thread.getId()); Unsafe.debug(" ... | 20,240 |
public void setSample(int x, int y, int b, double s) { sampleModel.setSample(x - sampleModelTranslateX, y - sampleModelTranslateY, b, s, dataBuffer); } | public void setSample(int x, int y, int b, double s) { sampleModel.setSample(x - sampleModelTranslateX, y - sampleModelTranslateY, b, s, dataBuffer); } | 20,241 |
public void close() throws IOException { if (!valid) throw new IOException("invalid file descriptor"); try { VMChannel.close(native_fd); } finally { valid = false; closed = true; } } | public void close() throws IOException { if (!valid) throw new IOException("invalid file descriptor"); try { VmChannel.close(native_fd); } finally { valid = false; closed = true; } } | 20,242 |
public VMChannel accept() throws IOException { int new_fd = accept(nfd.getNativeFD()); if (new_fd == -1) // non-blocking accept had no pending connection return null; return new VMChannel(new_fd); } | public VMChannel accept() throws IOException { int new_fd = VmChannel.accept(nfd.getNativeFD()); if (new_fd == -1) // non-blocking accept had no pending connection return null; return new VMChannel(new_fd); } | 20,243 |
public int available() throws IOException { return available(nfd.getNativeFD()); } | public int available() throws IOException { return VmChannel.available(nfd.getNativeFD()); } | 20,244 |
public boolean connect(InetSocketAddress saddr, int timeout) throws SocketException { int fd; InetAddress addr = saddr.getAddress(); // Translates an IOException into a SocketException to conform // to the throws clause. try { fd = nfd.getNativeFD(); } catch (IOException ioe) ... | public boolean connect(InetSocketAddress saddr, int timeout) throws SocketException { int fd; InetAddress addr = saddr.getAddress(); // Translates an IOException into a SocketException to conform // to the throws clause. try { fd = nfd.getNativeFD(); } catch (IOException ioe) ... | 20,245 |
public boolean connect(InetSocketAddress saddr, int timeout) throws SocketException { int fd; InetAddress addr = saddr.getAddress(); // Translates an IOException into a SocketException to conform // to the throws clause. try { fd = nfd.getNativeFD(); } catch (IOException ioe) ... | public boolean connect(InetSocketAddress saddr, int timeout) throws SocketException { int fd; InetAddress addr = saddr.getAddress(); // Translates an IOException into a SocketException to conform // to the throws clause. try { fd = nfd.getNativeFD(); } catch (IOException ioe) ... | 20,246 |
public void disconnect() throws IOException { if (kind != Kind.SOCK_DGRAM) throw new IOException("can only disconnect datagram channels"); disconnect(nfd.getNativeFD()); } | public void disconnect() throws IOException { if (kind != Kind.SOCK_DGRAM) throw new IOException("can only disconnect datagram channels"); VmChannel.disconnect(nfd.getNativeFD()); } | 20,247 |
public boolean flush(boolean metadata) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return flush(nfd.getNativeFD(), metadata); } | public boolean flush(boolean metadata) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return VmChannel.flush(nfd.getNativeFD(), metadata); } | 20,248 |
public InetSocketAddress getLocalAddress() throws IOException { if (!nfd.isValid()) return null; ByteBuffer name = ByteBuffer.allocateDirect(18); int namelen = getsockname(nfd.getNativeFD(), name); if (namelen == 0) // not bound return null; // XXX return some wildcard? if (namelen == 4) ... | public InetSocketAddress getLocalAddress() throws IOException { if (!nfd.isValid()) return null; ByteBuffer name = ByteBuffer.allocateDirect(18); int namelen = VmChannel.getsockname(nfd.getNativeFD(), name); if (namelen == 0) // not bound return null; // XXX return some wildcard? if (namelen... | 20,249 |
public InetSocketAddress getPeerAddress() throws IOException { if (!nfd.isValid()) return null; ByteBuffer name = ByteBuffer.allocateDirect(18); int namelen = getpeername (nfd.getNativeFD(), name); if (namelen == 0) // not connected yet return null; if (namelen == 4) // IPv4 { by... | public InetSocketAddress getPeerAddress() throws IOException { if (!nfd.isValid()) return null; ByteBuffer name = ByteBuffer.allocateDirect(18); int namelen = VmChannel.getpeername (nfd.getNativeFD(), name); if (namelen == 0) // not connected yet return null; if (namelen == 4) // IPv4 {... | 20,250 |
public static VMChannel getStderr() throws IOException { return new VMChannel(stderr_fd()); } | public static VMChannel getStderr() throws IOException { return new VMChannel(VmChannel.stderr_fd()); } | 20,251 |
public static VMChannel getStdin() throws IOException { return new VMChannel(stdin_fd()); } | public static VMChannel getStdin() throws IOException { return new VMChannel(VmChannel.stdin_fd()); } | 20,252 |
public static VMChannel getStdout() throws IOException { return new VMChannel(stdout_fd()); } | public static VMChannel getStdout() throws IOException { return new VMChannel(VmChannel.stdout_fd()); } | 20,253 |
public void initSocket(boolean stream) throws IOException { if (nfd.isValid()) throw new IOException("native FD already initialized"); if (stream) kind = Kind.SOCK_STREAM; else kind = Kind.SOCK_DGRAM; nfd.setNativeFD(socket(stream)); } | public void initSocket(boolean stream) throws IOException { if (nfd.isValid()) throw new IOException("native FD already initialized"); if (stream) kind = Kind.SOCK_STREAM; else kind = Kind.SOCK_DGRAM; nfd.setNativeFD(VmChannel.socket(stream)); } | 20,254 |
public boolean lock(long pos, long len, boolean shared, boolean wait) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return lock(nfd.getNativeFD(), pos, len, shared, wait); } | public boolean lock(long pos, long len, boolean shared, boolean wait) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return VmChannel.lock(nfd.getNativeFD(), pos, len, shared, wait); } | 20,255 |
public MappedByteBuffer map(char mode, long position, int size) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return map(nfd.getNativeFD(), mode, position, size); } | public MappedByteBuffer map(char mode, long position, int size) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return VmChannel.map(nfd.getNativeFD(), mode, position, size); } | 20,256 |
public void openFile(String path, int mode) throws IOException { if (nfd.isValid() || nfd.isClosed()) throw new IOException("can't reinitialize this channel"); int fd = open(path, mode); nfd.setNativeFD(fd); kind = Kind.FILE; } | public void openFile(String path, int mode) throws IOException { if (nfd.isValid() || nfd.isClosed()) throw new IOException("can't reinitialize this channel"); int fd = VmChannel.open(path, mode); nfd.setNativeFD(fd); kind = Kind.FILE; } | 20,257 |
public long position() throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return position(nfd.getNativeFD()); } | public long position() throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return VmChannel.position(nfd.getNativeFD()); } | 20,258 |
public int read(ByteBuffer dst) throws IOException { return read(nfd.getNativeFD(), dst); } | public int read(ByteBuffer dst) throws IOException { return VmChannel.read(nfd.getNativeFD(), dst); } | 20,259 |
public long readScattering(ByteBuffer[] dsts, int offset, int length) throws IOException { if (offset + length > dsts.length) throw new IndexOutOfBoundsException("offset + length > dsts.length"); return readScattering(nfd.getNativeFD(), dsts, offset, length); } | public long readScattering(ByteBuffer[] dsts, int offset, int length) throws IOException { if (offset + length > dsts.length) throw new IndexOutOfBoundsException("offset + length > dsts.length"); return VmChannel.readScattering(nfd.getNativeFD(), dsts, offset, length); } | 20,260 |
public SocketAddress receive(ByteBuffer dst) throws IOException { if (kind != Kind.SOCK_DGRAM) throw new SocketException("not a datagram socket"); ByteBuffer hostPort = ByteBuffer.allocateDirect(18); int hostlen = receive(nfd.getNativeFD(), dst, hostPort); if (hostlen == 0) return null; if (... | public SocketAddress receive(ByteBuffer dst) throws IOException { if (kind != Kind.SOCK_DGRAM) throw new SocketException("not a datagram socket"); ByteBuffer hostPort = ByteBuffer.allocateDirect(18); int hostlen = VmChannel.receive(nfd.getNativeFD(), dst, hostPort); if (hostlen == 0) return nul... | 20,261 |
public void seek(long pos) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); seek(nfd.getNativeFD(), pos); } | public void seek(long pos) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); VmChannel.seek(nfd.getNativeFD(), pos); } | 20,262 |
public int send(ByteBuffer src, InetSocketAddress dst) throws IOException { InetAddress addr = dst.getAddress(); if (addr == null) throw new NullPointerException(); if (addr instanceof Inet4Address) return send(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort()); else if (addr instance... | public int send(ByteBuffer src, InetSocketAddress dst) throws IOException { InetAddress addr = dst.getAddress(); if (addr == null) throw new NullPointerException(); if (addr instanceof Inet4Address) return VmChannel.send(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort()); else if (add... | 20,263 |
public int send(ByteBuffer src, InetSocketAddress dst) throws IOException { InetAddress addr = dst.getAddress(); if (addr == null) throw new NullPointerException(); if (addr instanceof Inet4Address) return send(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort()); else if (addr instance... | public int send(ByteBuffer src, InetSocketAddress dst) throws IOException { InetAddress addr = dst.getAddress(); if (addr == null) throw new NullPointerException(); if (addr instanceof Inet4Address) return send(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort()); else if (addr instance... | 20,264 |
public void setBlocking(boolean blocking) throws IOException { setBlocking(nfd.getNativeFD(), blocking); } | public void setBlocking(boolean blocking) throws IOException { VmChannel.setBlocking(nfd.getNativeFD(), blocking); } | 20,265 |
public long size() throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return size(nfd.getNativeFD()); } | public long size() throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return VmChannel.size(nfd.getNativeFD()); } | 20,266 |
public void truncate(long length) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); truncate(nfd.getNativeFD(), length); } | public void truncate(long length) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); VmChannel.truncate(nfd.getNativeFD(), length); } | 20,267 |
public void unlock(long pos, long len) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); unlock(nfd.getNativeFD(), pos, len); } | public void unlock(long pos, long len) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); VmChannel.unlock(nfd.getNativeFD(), pos, len); } | 20,268 |
public int write(ByteBuffer src) throws IOException { return write(nfd.getNativeFD(), src); } | public int write(ByteBuffer src) throws IOException { return VmChannel.write(nfd.getNativeFD(), src); } | 20,269 |
public long writeGathering(ByteBuffer[] srcs, int offset, int length) throws IOException { if (offset + length > srcs.length) throw new IndexOutOfBoundsException("offset + length > srcs.length"); // A gathering write is limited to 16 buffers; when writing, ensure // that we have at least one buf... | public long writeGathering(ByteBuffer[] srcs, int offset, int length) throws IOException { if (offset + length > srcs.length) throw new IndexOutOfBoundsException("offset + length > srcs.length"); // A gathering write is limited to 16 buffers; when writing, ensure // that we have at least one buf... | 20,270 |
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int xyOffset = pixelStride * x + scanlineStride * y; int[] totalBandDataOffsets = new int[numBands]; /* Notice that band and bank offsets are different. Band offsets are managed by the sample model, and bank offsets are managed by th... | public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int xyOffset = pixelStride * x + scanlineStride * y; int[] totalBandDataOffsets = new int[numBands]; /* Notice that band and bank offsets are different. Band offsets are managed by the sample model, and bank offsets are managed by th... | 20,272 |
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int xyOffset = pixelStride * x + scanlineStride * y; int[] totalBandDataOffsets = new int[numBands]; /* Notice that band and bank offsets are different. Band offsets are managed by the sample model, and bank offsets are managed by th... | public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int xyOffset = pixelStride * x + scanlineStride * y; int[] totalBandDataOffsets = new int[numBands]; /* Notice that band and bank offsets are different. Band offsets are managed by the sample model, and bank offsets are managed by th... | 20,273 |
public void setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data) { if (!tightPixelPacking) { super.setDataElements(x, y, w, h, obj, data); return; } // using set speedup, we can copy whole rows int rowSize = w * numBands; //int dataSize = rowSize * h; //DataBuffer transferBuffer = Buffers... | public void setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data) { if (!tightPixelPacking) { super.setDataElements(x, y, w, h, obj, data); return; } // using set speedup, we can copy whole rows int rowSize = w*numBands; int dataSize = rowSize*h; //int dataSize = rowSize * h; //DataBuffer ... | 20,274 |
public void setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data) { if (!tightPixelPacking) { super.setDataElements(x, y, w, h, obj, data); return; } // using set speedup, we can copy whole rows int rowSize = w * numBands; //int dataSize = rowSize * h; //DataBuffer transferBuffer = Buffers... | public void setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data) { if (!tightPixelPacking) { super.setDataElements(x, y, w, h, obj, data); return; } // using set speedup, we can copy whole rows int rowSize = w * numBands; //int dataSize = rowSize * h; //DataBuffer transferBuffer = Buffers... | 20,276 |
protected AccessibleJMenu(JMenu component) { super(component); } | protected AccessibleJMenu() { super(component); } | 20,277 |
protected AccessibleJMenu(JMenu component) { super(component); } | protected AccessibleJMenu(JMenu component) { } | 20,278 |
public WinListener(JMenu value0, JPopupMenu value1) { } | public WinListener(JPopupMenu popup) { } | 20,279 |
public void windowClosing(WindowEvent value0) { } | public void windowClosing(WindowEvent event) { } | 20,280 |
protected PropertyChangeListener createActionChangeListener(JMenuItem item) { return null; } | protected PropertyChangeListener createActionChangeListener(JMenuItem item) { return new ActionChangedListener(item); } | 20,283 |
protected JMenuItem createActionComponent(Action action) { return null; } | protected JMenuItem createActionComponent(Action action) { return new JMenuItem(action); } | 20,284 |
private ChangeListener createMenuChangeListener() { return null; } | private ChangeListener createMenuChangeListener() { return new MenuChangeListener(); } | 20,285 |
protected JMenu.WinListener createWinListener(JPopupMenu popup) { return null; } | protected WinListener createWinListener(JPopupMenu popup) { return null; } | 20,286 |
protected JMenu.WinListener createWinListener(JPopupMenu popup) { return null; } | protected JMenu.WinListener createWinListener(JPopupMenu popup) { return new WinListener(popup); } | 20,287 |
protected void fireMenuCanceled() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuCanceled(new MenuEvent(this)); } | protected void fireMenuCanceled() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuCanceled(menuEvent); } | 20,289 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.