bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(KEYTOOL_TOOL, true); result.setHeader(Messages.getString("Main.19")); //$NON-NLS-1$ result.setFooter(Messages.getString("Main.20")); //$NON-NLS-1$ OptionGroup cmdGro...
if (Configuration.DEBUG) if (Configuration.DEBUG) privateif (Configuration.DEBUG) Parserif (Configuration.DEBUG) getParser()if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) log.entering(this.getClass().getName(),if (Co...
31,998
public static final void main(String[] args) { log.entering(Main.class.getName(), "main", args); //$NON-NLS-1$ Main tool = new Main(); int result = 1; try { tool.setup(); tool.start(args); result = 0; } catch (OptionException x) { System.err.println(x.getMess...
publicstaticfinalvoidmain(String[]args){log.entering(Main.class.getName(),"main",args);//$NON-NLS-1$Maintool=newMain();intresult=1;try{tool.setup();tool.start(args);result=0;}catch(OptionExceptionx){System.err.println(x.getMessage());if(tool.cmdLineParser!=null)tool.cmdLineParser.printHelp();}catch(SecurityExceptionx){...
31,999
public static final void main(String[] args) { log.entering(Main.class.getName(), "main", args); //$NON-NLS-1$ Main tool = new Main(); int result = 1; try { tool.setup(); tool.start(args); result = 0; } catch (OptionException x) { System.err.println(x.getMess...
if (Configuration.DEBUG) if (Configuration.DEBUG) publicif (Configuration.DEBUG) staticif (Configuration.DEBUG) finalif (Configuration.DEBUG) voidif (Configuration.DEBUG) main(String[]if (Configuration.DEBUG) args)if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (C...
32,000
private void setup() { log.entering(this.getClass().getName(), "setup"); //$NON-NLS-1$ cmdLineParser = getParser(); gnuCryptoProviderNdx = ProviderUtil.addProvider(new GnuCrypto()); gnuCallbacksNdx = ProviderUtil.addProvider(new GnuCallbacks()); log.exiting(this.getClass().getName(), "setup"); //$NON-...
privatevoidsetup(){log.entering(this.getClass().getName(),"setup");//$NON-NLS-1$cmdLineParser=getParser();gnuCryptoProviderNdx=ProviderUtil.addProvider(newGnuCrypto());gnuCallbacksNdx=ProviderUtil.addProvider(newGnuCallbacks());log.exiting(this.getClass().getName(),"setup");//$NON-NLS-1$}
32,001
private void setup() { log.entering(this.getClass().getName(), "setup"); //$NON-NLS-1$ cmdLineParser = getParser(); gnuCryptoProviderNdx = ProviderUtil.addProvider(new GnuCrypto()); gnuCallbacksNdx = ProviderUtil.addProvider(new GnuCallbacks()); log.exiting(this.getClass().getName(), "setup"); //$NON-...
if (Configuration.DEBUG) if (Configuration.DEBUG) privateif (Configuration.DEBUG) voidif (Configuration.DEBUG) setup()if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) log.entering(this.getClass().getName(),if (Configur...
32,002
private void start(String[] args) throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ if (args == null || args.length == 0) throw new OptionException(""); //$NON-NLS-1$ String opt; Command cmd; while (args.length > 0) { opt = args[0]; cmd = null; ...
privatevoidstart(String[]args)throwsException{log.entering(this.getClass().getName(),"start");//$NON-NLS-1$if(args==null||args.length==0)thrownewOptionException("");//$NON-NLS-1$Stringopt;Commandcmd;while(args.length>0){opt=args[0];cmd=null;if(_GENKEY.equals(opt))cmd=newGenKeyCmd();elseif(_IMPORT.equals(opt))cmd=newImp...
32,003
private void start(String[] args) throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ if (args == null || args.length == 0) throw new OptionException(""); //$NON-NLS-1$ String opt; Command cmd; while (args.length > 0) { opt = args[0]; cmd = null; ...
if (Configuration.DEBUG) if (Configuration.DEBUG) privateif (Configuration.DEBUG) voidif (Configuration.DEBUG) start(String[]if (Configuration.DEBUG) args)if (Configuration.DEBUG) throwsif (Configuration.DEBUG) Exceptionif (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG)...
32,004
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$ ...
32,005
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...
privatevoidteardown(){log.entering(this.getClass().getName(),"teardown");//$NON-NLS-1$//ifweaddedourownprovidersremovethemif(gnuCryptoProviderNdx>0)ProviderUtil.removeProvider(Registry.GNU_CRYPTO);if(gnuCallbacksNdx>0)ProviderUtil.removeProvider("GNU-CALLBACKS");//$NON-NLS-1$log.exiting(this.getClass().getName(),"teard...
32,006
public WrappedLine(Element elem) { super(elem); determineNumLines(); }
public WrappedLine(Element elem) { super(elem); }
32,008
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...
32,009
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...
32,010
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 ...
32,011
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...
32,012
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 ...
32,013
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 ...
32,014
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 ...
32,015
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); }
32,017
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...
32,018
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 (num...
32,019
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()) ...
32,020
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()) ...
32,021
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...
32,022
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...
32,023
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...
32,024
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...
32,025
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...
32,026
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...
int width = getWidth(); int pos; int width = getWidth(); int pos; protectedint width = getWidth(); int pos; intint width = getWidth(); int pos; calculateBreakPosition(intint width = getWidth(); int pos; p0,int width = getWidth(); int pos; intint width = getWidth(); int pos; p1)int width = getWidth(); int pos; int width...
32,027
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...
32,028
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...
32,029
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. }
32,030
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. }
32,031
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. }
Rectangle r = a != null && isAllocationValid() ? getInsideAllocation(a) : null; View v = getViewAtPosition(e.getOffset(), r); if (v != null) v.insertUpdate(e, r, f); Rectangle r = a != null && isAllocationValid() ? getInsideAllocation(a) : null; View v = getViewAtPosition(e.getOffset(), r); if (v != null) v.insertUpd...
32,032
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; }
32,033
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. }
32,035
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. }
Rectangle r = a != null && isAllocationValid() ? getInsideAllocation(a) : null; View v = getViewAtPosition(e.getOffset(), r); if (v != null) v.removeUpdate(e, r, f); Rectangle r = a != null && isAllocationValid() ? getInsideAllocation(a) : null; View v = getViewAtPosition(e.getOffset(), r); if (v != null) v.removeUpd...
32,036
public int getWidth() { return width; }
public int getWidth() { return span[X_AXIS]; }
32,038
public int getHeight() { return height; }
public int getHeight() { return span[Y_AXIS]; }
32,039
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 ...
32,040
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); }
32,041
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); }
32,042
public void mouseClicked (MouseEvent e) { // FIXME: implement this }
public void mouseClicked (MouseEvent e) { // FIXME: implement this }
32,063
public void mouseDragged (MouseEvent e) { // FIXME: implement this }
public void mouseDragged (MouseEvent e) { // FIXME: implement this }
32,064
public void mouseEntered (MouseEvent e) { // FIXME: implement this }
public void mouseEntered (MouseEvent e) { // FIXME: implement this }
32,065
public void mouseExited (MouseEvent e) { // FIXME: implement this }
public void mouseExited (MouseEvent e) { // FIXME: implement this }
32,066
public void mouseMoved (MouseEvent e) { // FIXME: implement this }
public void mouseMoved (MouseEvent e) { // FIXME: implement this }
32,067
public void mousePressed (MouseEvent e) { // FIXME: implement this }
public void mousePressed (MouseEvent e) { // FIXME: implement this }
32,068
public void mouseReleased (MouseEvent e) { // FIXME: implement this }
public void mouseReleased (MouseEvent e) { // FIXME: implement this }
32,069
protected void registerListeners () { // FIXME: implement this }
component.addMouseListener (this); component.addMouseMotionListener (this); component.addMouseListener (this); component.addMouseMotionListener (this); protectedcomponent.addMouseListener (this); component.addMouseMotionListener (this); voidcomponent.addMouseListener (this); component.addMouseMotionListener (this); reg...
32,070
protected void unregisterListeners () { // FIXME: implement this }
component.removeMouseListener (this); component.removeMouseMotionListener (this); component.removeMouseListener (this); component.removeMouseMotionListener (this); protectedcomponent.removeMouseListener (this); component.removeMouseMotionListener (this); voidcomponent.removeMouseListener (this); component.removeMouseMo...
32,071
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...
32,072
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...
32,074
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...
32,075
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; }
32,076
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; }
32,077
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); }
32,078
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...
32,079
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); }
32,080
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; }
32,081
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...
32,082
abstract void dump(boolean dumpStack, VmStackReader stackReader);
abstract void dump(boolean dumpStack, VmStackReader stackReader);
32,083
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); }
32,084
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; } }
32,085
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); }
32,086
public int available() throws IOException { return available(nfd.getNativeFD()); }
public int available() throws IOException { return VmChannel.available(nfd.getNativeFD()); }
32,087
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) ...
32,088
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) ...
32,089
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()); }
32,090
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); }
32,091
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...
32,092
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 {...
32,093
public static VMChannel getStderr() throws IOException { return new VMChannel(stderr_fd()); }
public static VMChannel getStderr() throws IOException { return new VMChannel(VmChannel.stderr_fd()); }
32,094
public static VMChannel getStdin() throws IOException { return new VMChannel(stdin_fd()); }
public static VMChannel getStdin() throws IOException { return new VMChannel(VmChannel.stdin_fd()); }
32,095
public static VMChannel getStdout() throws IOException { return new VMChannel(stdout_fd()); }
public static VMChannel getStdout() throws IOException { return new VMChannel(VmChannel.stdout_fd()); }
32,096
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)); }
32,097
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); }
32,098
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); }
32,099
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; }
32,100
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()); }
32,101
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); }
32,102
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); }
32,103
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...
32,104
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); }
32,105
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...
32,106
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...
32,107
public void setBlocking(boolean blocking) throws IOException { setBlocking(nfd.getNativeFD(), blocking); }
public void setBlocking(boolean blocking) throws IOException { VmChannel.setBlocking(nfd.getNativeFD(), blocking); }
32,108
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()); }
32,109
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); }
32,110
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); }
32,111
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); }
32,112
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...
32,113
public DataBuffer createDataBuffer() { // Maybe this value should be precalculated in the constructor? int highestOffset = 0; for (int b = 0; b < numBands; b++) { highestOffset = Math.max(highestOffset, bandOffsets[b]); } int size = pixelStride * (width - 1) + scanlineStride * (height - 1) + highestOffset + 1; ...
public DataBuffer createDataBuffer() { // Maybe this value should be precalculated in the constructor? int highestOffset = 0; for (int b = 0; b < numBands; b++) { highestOffset = Math.max(highestOffset, bandOffsets[b]); } int size = pixelStride * (width - 1) + scanlineStride * (height - 1) + highestOffset + 1; ...
32,115
public DataBuffer createDataBuffer() { // Maybe this value should be precalculated in the constructor? int highestOffset = 0; for (int b = 0; b < numBands; b++) { highestOffset = Math.max(highestOffset, bandOffsets[b]); } int size = pixelStride * (width - 1) + scanlineStride * (height - 1) + highestOffset + 1; ...
public DataBuffer createDataBuffer() { // Maybe this value should be precalculated in the constructor? int highestOffset = 0; for (int b = 0; b < numBands; b++) { highestOffset = Math.max(highestOffset, bandOffsets[b]); } int size = pixelStride * (width - 1) + scanlineStride * (height - 1) + highestOffset + 1; ...
32,116
public DataBuffer createDataBuffer() { // Maybe this value should be precalculated in the constructor? int highestOffset = 0; for (int b = 0; b < numBands; b++) { highestOffset = Math.max(highestOffset, bandOffsets[b]); } int size = pixelStride * (width - 1) + scanlineStride * (height - 1) + highestOffset + 1; ...
public DataBuffer createDataBuffer() { // Maybe this value should be precalculated in the constructor? int highestOffset = 0; for (int b = 0; b < numBands; b++) { highestOffset = Math.max(highestOffset, bandOffsets[b]); } int size = pixelStride * (width - 1) + scanlineStride * (height - 1) + highestOffset + 1; ...
32,117
public final int[] getBandOffsets() { return bandOffsets; }
public final int[] getBandOffsets() { return bandOffsets; }
32,118
public final int[] getBankIndices() { return bankIndices; }
public final int[] getBankIndices() { return bankIndices; }
32,119
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...
32,120
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...
32,121
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...
32,122
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...
32,123