bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public String toString() { Iterator itr = iterator(); StringBuffer r = new StringBuffer("["); for (int pos = size(); pos > 0; pos--) { r.append(itr.next()); if (pos > 1) r.append(", "); } r.append("]"); return r.toString(); } | public String toString() { Iterator itr = iterator(); StringBuffer r = new StringBuffer("["); for (int pos = size(); pos > 0; pos--) { r.append(itr.next()); if (pos > 1) r.append(", "); } r.append("]"); return r.toString(); } | 21,406 |
public void setEnabled(boolean enabled) { setEnabled(enabled); } | public void setEnabled(boolean enabled) { super.setEnabled(enabled); } | 21,407 |
public void addColumn(TableColumn value0) { // TODO } | public void addColumn(TableColumn col) { // TODO } | 21,408 |
public void addColumnModelListener(TableColumnModelListener value0) { // TODO } | public void addColumnModelListener(TableColumnModelListener listener) { // TODO } | 21,410 |
protected void fireColumnSelectionChanged(ListSelectionEvent value0) { // TODO } | protected void fireColumnSelectionChanged(ListSelectionEvent evt) { // TODO } | 21,412 |
public TableColumn getColumn(int value0) { return null; // TODO } | public TableColumn getColumn(int i) { return null; // TODO } | 21,414 |
public TableColumn getColumn(int value0) { return null; // TODO } | public TableColumn getColumn(int value0) { return (TableColumn) tableColumns.get(i); // TODO } | 21,415 |
public int getColumnCount() { return 0; // TODO } | public int getColumnCount() { return tableColumns.size(); // TODO } | 21,416 |
public int getColumnIndex(Object value0) { return 0; // TODO } | public int getColumnIndex(Object obj) { return 0; // TODO } | 21,417 |
public int getColumnIndex(Object value0) { return 0; // TODO } | public int getColumnIndex(Object value0) { return tableColumns.indexOf(obj, 0); // TODO } | 21,418 |
public int getColumnIndexAtX(int value0) { return 0; // TODO } | public int getColumnIndexAtX(int x) { return 0; // TODO } | 21,419 |
public int getColumnIndexAtX(int value0) { return 0; // TODO } | public int getColumnIndexAtX(int value0) { for (int i = 0; i < tableColumns.size(); ++i) { int w = ((TableColumn)tableColumns.get(i)).getWidth(); if (0 <= x && x < w) return i; else x -= w; } return -1; // TODO } | 21,420 |
public int getColumnMargin() { return 0; // TODO } | public int getColumnMargin() { return columnMargin; // TODO } | 21,421 |
public boolean getColumnSelectionAllowed() { return false; // TODO } | public boolean getColumnSelectionAllowed() { return columnSelectionAllowed; // TODO } | 21,422 |
public Enumeration getColumns() { return null; // TODO } | public Enumeration getColumns() { return tableColumns.elements(); // TODO } | 21,423 |
public EventListener[] getListeners(Class value0) { return null; // TODO } | public EventListener[] getListeners(Class klass) { return null; // TODO } | 21,424 |
public EventListener[] getListeners(Class value0) { return null; // TODO } | public EventListener[] getListeners(Class value0) { return listenerList.getListeners(klass); // TODO } | 21,425 |
public int getTotalColumnWidth() { return 0; // TODO } | public int getTotalColumnWidth() { if (totalColumnWidth == -1) recalcWidthCache(); return totalColumnWidth; // TODO } | 21,426 |
public void moveColumn(int value0, int value1) { // TODO } | public void moveColumn(int i, int j) { // TODO } | 21,428 |
public void removeColumn(TableColumn value0) { // TODO } | public void removeColumn(TableColumn col) { // TODO } | 21,431 |
public void removeColumnModelListener(TableColumnModelListener value0) { // TODO } | public void removeColumnModelListener(TableColumnModelListener listener) { // TODO } | 21,433 |
public void setColumnMargin(int value0) { // TODO } | public void setColumnMargin(int m) { // TODO } | 21,435 |
public void setColumnSelectionAllowed(boolean value0) { // TODO } | public void setColumnSelectionAllowed(boolean a) { // TODO } | 21,437 |
public final Class getCategory() { return OutputDeviceAssigned.class; } | public Class getCategory() { return OutputDeviceAssigned.class; } | 21,440 |
public final String getName() { return "output-device-assigned"; } | public String getName() { return "output-device-assigned"; } | 21,441 |
public i82371AB_ACPI_SMBusControler(PCIDevice device) { this.device = device; // gets the IO registers address base from the PCI configuration register // see paragraph 7.3 in chipset specification int dword = device.readConfigWord(0x90); int base = dword & 0xFFF0; // see 7.1.127 in specification for clearing the... | public i82371AB_ACPI_SMBusControler(PCIDevice device) throws DriverException { this.device = device; // gets the IO registers address base from the PCI configuration register // see paragraph 7.3 in chipset specification int dword = device.readConfigWord(0x90); int base = dword & 0xFFF0; // see 7.1.127 in specifi... | 21,442 |
public i82371AB_ACPI_SMBusControler(PCIDevice device) { this.device = device; // gets the IO registers address base from the PCI configuration register // see paragraph 7.3 in chipset specification int dword = device.readConfigWord(0x90); int base = dword & 0xFFF0; // see 7.1.127 in specification for clearing the... | public i82371AB_ACPI_SMBusControler(PCIDevice device) { this.device = device; // gets the IO registers address base from the PCI configuration register // see paragraph 7.3 in chipset specification int dword = device.readConfigWord(0x90); int base = dword & 0xFFF0; // see 7.1.127 in specification for clearing the... | 21,443 |
public Window getActiveWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalActiveWindow(); } catch (SecurityException e) { return null; } } | public Window getActiveWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalActiveWindow(); } catch (SecurityException e) { return null; } } | 21,444 |
public abstract void toBack(); | void toBack(); | 21,445 |
public abstract void toFront(); | void toFront(); | 21,446 |
void setInputEncoding(String encoding) throws IOException { if (encoding.equals(inputEncoding)) return; if ("UTF-16".equalsIgnoreCase(encoding) && inputEncoding.startsWith("UTF-16")) return; if (reader != null) throw new UnsupportedEncodingException("document... | void setInputEncoding(String encoding) throws IOException { if (encoding.equals(inputEncoding)) return; if ("UTF-16".equalsIgnoreCase(encoding) && inputEncoding.startsWith("UTF-16")) return; if (encodingDetected) throw new UnsupportedEncodingException("docume... | 21,449 |
public static boolean isChar(int c) { return (c >= 0x20 && c < 0xd800) || (c >= 0xe00 && c < 0xfffd) || // NB exclude 0xfffd (c >= 0x10000 && c < 0x110000) || c == 0xa || c == 0x9 || c == 0xd; } | public static boolean isChar(int c) { return (c >= 0x20 && c < 0xd800) || (c >= 0xe00 && c < 0xfffe) || // NB exclude 0xfffd (c >= 0x10000 && c < 0x110000) || c == 0xa || c == 0x9 || c == 0xd; } | 21,450 |
public static boolean isXML11Char(int c) { return ((c >= 0x0001 && c <= 0xD7FF) || (c >= 0xE000 && c < 0xFFFD) || // NB exclude 0xfffd (c >= 0x10000 && c <= 0x10FFFF)); } | public static boolean isXML11Char(int c) { return ((c >= 0x0001 && c <= 0xD7FF) || (c >= 0xE000 && c < 0xFFFE) || // NB exclude 0xfffd (c >= 0x10000 && c <= 0x10FFFF)); } | 21,451 |
public void restoreState(Hashtable state); | void restoreState(Hashtable state); | 21,452 |
public void storeState(Hashtable state); | void storeState(Hashtable state); | 21,453 |
public Graphics getGraphics() { /* final Component parent = targetComponent.getParent(); if (parent != null) { final int x = peerComponent.getX(); final int y = peerComponent.getY(); final int width = peerComponent.getWidth(); final int height = peerC... | public Graphics getGraphics() { /* final Component parent = targetComponent.getParent(); if (parent != null) { final int x = peerComponent.getX(); final int y = peerComponent.getY(); final int width = peerComponent.getWidth(); final int height = peerC... | 21,454 |
public final void initialize(VmClassLoader loader) { if (context == null) { context = new X86CompilerContext(loader); } } | public final void initialize(VmClassLoader loader) { if (context == null) { context = new X86CompilerContext(loader, Vm.getVm().getHeapManager()); } } | 21,456 |
public DefaultHeapManager(VmClassLoader loader, HeapHelper helper, VmStatics statics) throws ClassNotFoundException { super(helper); this.writeBarrier = new DefaultWriteBarrier(helper); this.firstHeap = new VmDefaultHeap(this); this.currentHeap = firstHeap; this.defaultHeapClass = (VmNormalClass)loader.loadClass... | public DefaultHeapManager(VmClassLoader loader, HeapHelper helper, VmStatics statics) throws ClassNotFoundException { super(helper); this.writeBarrier = null; this.firstHeap = new VmDefaultHeap(this); this.currentHeap = firstHeap; this.defaultHeapClass = (VmNormalClass)loader.loadClass(VmDefaultHeap.class.getNam... | 21,457 |
public void dumpStatistics(PrintStream out) { out.println("WriteBarrier: " + writeBarrier.toString()); } | public void dumpStatistics(PrintStream out) { out.println("WriteBarrier: " + writeBarrier); } | 21,459 |
public byte[] getFontTable (int sfntTag); | byte[] getFontTable (int sfntTag); | 21,461 |
public int getFontTableSize (int sfntTag); | int getFontTableSize (int sfntTag); | 21,462 |
public int getVersion (); | int getVersion (); | 21,463 |
public Variable peek() { int n = stack.size(); // This deals with cases where there are excessive phis (unpruned SSA) if (n <= 0) { if (variable instanceof MethodArgument) { return variable; } else { return null; } } Variable var = (Variable) stack.get(n - 1); return var; } | public Variable peek() { int n = stack.size(); // This deals with cases where there are excessive phis (unpruned SSA) if (n <= 0) { if (variable instanceof MethodArgument) { return variable; } else { return null; } } Variable var = (Variable) stack.get(n - 1); return var; } | 21,465 |
public void add(PhiAssignQuad paq) { if (!quads.contains(paq)) { addDef(paq); quads.add(0, paq); } } | public void add(PhiAssignQuad paq) { if (!quads.contains(paq)) { addDef(paq); quads.add(0, paq); } } | 21,466 |
private final void emmitINT() { int addr = getAddressingMode(1); switch (addr) { case C_ADDR: stream.writeINT(getInt(0)); break; default: reportAddressingError(INT_ISN, addr); } } | private final void emmitINT() { int addr = getAddressingMode(1); switch (addr) { case C_ADDR: stream.writeINT(getInt(0)); break; default: reportAddressingError(INT_ISN, addr); } } | 21,470 |
public LanceCore( LanceDriver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (LanceFlags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterruptLine(); final PCIBaseAddres... | public LanceCore( LanceDriver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (LanceFlags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterruptLine(); final PCIBaseAddres... | 21,476 |
public void handleInterrupt(int irq) { while ((io.getCSR(0) & CSR0_INTR) != 0) { final int csr0 = io.getCSR(0); final int csr3 = io.getCSR(3); final int csr4 = io.getCSR(4); final int csr5 = io.getCSR(5); io.setCSR(0, csr0); io.setCSR(4, csr4); io.setCSR(5, csr5); // check if interrupt is due to Initi... | public void handleInterrupt(int irq) { while ((io.getCSR(0) & CSR0_INTR) != 0) { final int csr0 = io.getCSR(0); io.getCSR(3); final int csr4 = io.getCSR(4); final int csr5 = io.getCSR(5); io.setCSR(0, csr0); io.setCSR(4, csr4); io.setCSR(5, csr5); // check if interrupt is due to Initialization Done ... | 21,477 |
public IIOInvalidTreeException(String message, /*Node*/ Object offendingNode) { super(message); this.offendingNode = offendingNode; } | public IIOInvalidTreeException(String message, /*Node*/ Object offendingNode) { super(message); this.offendingNode = offendingNode; } | 21,478 |
public /*Node*/ Object getOffendingNode() { return offendingNode; } | public /*Node*/ Object getOffendingNode() { return offendingNode; } | 21,479 |
public void setViewSize(Dimension newSize) { viewSize = newSize; Component view = getView(); if (view != null) view.setSize(newSize); fireStateChanged(); } | public void setViewSize(Dimension newSize) { viewSize = newSize; Component view = getView(); if (view != null) view.setSize(viewSize); isViewSizeSet = true; fireStateChanged(); } | 21,482 |
public ReplyHeader() { service_context = new ServiceContext[] { cxCodeSet.STANDARD }; } | public ReplyHeader() { service_context = new ServiceContext[] { CodeSetServiceContext.STANDARD }; } | 21,483 |
public void read(cdrInput in) { request_id = in.read_ulong(); reply_status = in.read_ulong(); service_context = gnu.CORBA.GIOP.ServiceContext.readSequence(in); in.setCodeSet(cxCodeSet.find(service_context)); } | public void read(AbstractCdrInput in) { request_id = in.read_ulong(); reply_status = in.read_ulong(); service_context = gnu.CORBA.GIOP.ServiceContext.readSequence(in); in.setCodeSet(cxCodeSet.find(service_context)); } | 21,484 |
public void read(cdrInput in) { request_id = in.read_ulong(); reply_status = in.read_ulong(); service_context = gnu.CORBA.GIOP.ServiceContext.readSequence(in); in.setCodeSet(cxCodeSet.find(service_context)); } | public void read(cdrInput in) { request_id = in.read_ulong(); reply_status = in.read_ulong(); service_context = gnu.CORBA.GIOP.ServiceContext.readSequence(in); in.setCodeSet(CodeSetServiceContext.find(service_context)); } | 21,485 |
public void write(cdrOutput out) { out.write_ulong(request_id); out.write_ulong(reply_status); gnu.CORBA.GIOP.ServiceContext.writeSequence(out, service_context); out.setCodeSet(cxCodeSet.find(service_context)); } | public void write(AbstractCdrOutput out) { out.write_ulong(request_id); out.write_ulong(reply_status); gnu.CORBA.GIOP.ServiceContext.writeSequence(out, service_context); out.setCodeSet(cxCodeSet.find(service_context)); } | 21,486 |
public void write(cdrOutput out) { out.write_ulong(request_id); out.write_ulong(reply_status); gnu.CORBA.GIOP.ServiceContext.writeSequence(out, service_context); out.setCodeSet(cxCodeSet.find(service_context)); } | public void write(cdrOutput out) { out.write_ulong(request_id); out.write_ulong(reply_status); gnu.CORBA.GIOP.ServiceContext.writeSequence(out, service_context); out.setCodeSet(CodeSetServiceContext.find(service_context)); } | 21,487 |
public final Class getCategory() { return JobImpressions.class; } | public Class getCategory() { return JobImpressions.class; } | 21,488 |
public Object cloneWithSource(Object source) { return null; // TODO } // cloneWithSource() | public Object cloneWithSource(Object source) { return null; // TODO } // cloneWithSource() | 21,489 |
public Dimension getMinimumSize(Component c) { return getMeasurements(c).getMinimumSize(); } | public Dimension getMinimumSize(Component c) { Insets i = getBorderInsets(c); Dimension minSize = new Dimension(i.left + i.right, i.top + i.bottom); Font font = getFont(c); FontMetrics fm = c.getFontMetrics(font); int titleWidth = fm.stringWidth(getTitle()); switch (getTitlePosition()) { case ABOVE_TOP: case BELO... | 21,490 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins... | 21,491 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins... | 21,492 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins... | 21,493 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins... | 21,494 |
public long transferFrom (ReadableByteChannel src, long position, long count) throws IOException { if (position < 0 || count < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if ((mode & WRITE) == 0) throw new NonWritableChannelExcepti... | public long transferFrom (ReadableByteChannel src, long position, long count) throws IOException { if (position < 0 || count < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if ((mode & WRITE) == 0) throw new NonWritableChannelExcepti... | 21,495 |
public long transferTo (long position, long count, WritableByteChannel target) throws IOException { if (position < 0 || count < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if ((mode & READ) == 0) throw new NonReadableChannelExcepti... | public long transferTo (long position, long count, WritableByteChannel target) throws IOException { if (position < 0 || count < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if ((mode & READ) == 0) throw new NonReadableChannelExcepti... | 21,496 |
private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | private int checkRule(int month, int day, int dayOfWeek) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) ... | 21,497 |
private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | 21,498 |
private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | 21,499 |
private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | 21,500 |
private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | 21,501 |
private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | 21,502 |
private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | 21,503 |
public void setEndRule(int month, int day, int dayOfWeek, int time) { this.endMonth = month; this.endDay = day; this.endDayOfWeek = Math.abs(dayOfWeek); if (this.endTimeMode == WALL_TIME) this.endTime = time; else if (this.endTimeMode == STANDARD_TIME) // Convert from STANDARD to DST this... | public void setEndRule(int month, int day, int dayOfWeek, int time) { this.endMonth = month; this.endDay = day; this.endDayOfWeek = Math.abs(dayOfWeek); if (this.endTimeMode == WALL_TIME) this.endTime = time; else if (this.endTimeMode == STANDARD_TIME) // Convert from STANDARD to DST this... | 21,504 |
public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMonth = month; this.startDay = day; this.startDayOfWeek = Math.abs(dayOfWeek); if (this.startTimeMode == WALL_TIME || this.startTimeMode == STANDARD_TIME) this.startTime = time; else // Convert from UTC to STAN... | public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMonth = month; this.startDay = day; this.startDayOfWeek = Math.abs(dayOfWeek); if (this.startTimeMode == WALL_TIME || this.startTimeMode == STANDARD_TIME) this.startTime = time; else // Convert from UTC to STAN... | 21,505 |
private RefItem(int kind, Register reg, Object val, int offsetToFP) { super(kind, REFERENCE, offsetToFP); this.reg = reg; this.value = val; } | private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { super(kind, REFERENCE, offsetToFP); this.reg = reg; this.value = val; } | 21,506 |
static RefItem createConst(Object value) { return new RefItem(CONSTANT, null, value, 0); } | static RefItem createConst(VmConstString value) { return new RefItem(CONSTANT, null, value, 0); } | 21,507 |
Object getValue() { myAssert(getKind() == CONSTANT); return value; } | VmConstString getValue() { myAssert(getKind() == CONSTANT); return value; } | 21,508 |
void loadTo(EmitterContext ec, Register reg) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); myAssert(!pool.isFree(reg)); switch (getKind()) { case REGISTER: if (this.reg != reg) { release(ec); os.writeMOV(INTSIZE, reg, this.reg); } break; case LOCAL: os.wr... | void loadTo(EmitterContext ec, Register reg) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); myAssert(!pool.isFree(reg)); switch (getKind()) { case REGISTER: if (this.reg != reg) { release(ec); os.writeMOV(INTSIZE, reg, this.reg); } break; case LOCAL: os.wr... | 21,509 |
void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case REGISTER: os.writePUSH(reg); break; case LOCAL: os.writePUSH(FP, offsetToFP); break; case CONSTANT: os.writePUSH_Const(value); break; case FREGISTER: //TODO notImplement... | void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case REGISTER: os.writePUSH(reg); break; case LOCAL: os.writePUSH(FP, offsetToFP); break; case CONSTANT: if (value == null) { os.writePUSH_Const(null); } else { X86CompilerHelper helper = e... | 21,510 |
public static String unquote(String str) throws MalformedURLException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new MalformedURLException(str + " : Invalid character"); ... | public static String unquote(String str) throws MalformedURLException { if (str == null) return null; final int MAX_BYTES_PER_UTF_8_CHAR = 3; byte[] buf = new byte[str.length()*MAX_BYTES_PER_UTF_8_CHAR]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) ... | 21,511 |
public static String unquote(String str) throws MalformedURLException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new MalformedURLException(str + " : Invalid character"); ... | public static String unquote(String str) throws MalformedURLException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new MalformedURLException(str + " : Invalid character"); ... | 21,512 |
public static String toString(char ch) { // Package constructor avoids an array copy. return new String(new char[] { ch }, 0, 1, true); } | public String toString() { // Package constructor avoids an array copy. return new String(new char[] { ch }, 0, 1, true); } | 21,514 |
public static String toString(char ch) { // Package constructor avoids an array copy. return new String(new char[] { ch }, 0, 1, true); } | public static String toString(char ch) { // Package constructor avoids an array copy. return new String(new char[] { value }, 0, 1, true); } | 21,515 |
private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); if (Configuration.DEBUG) log.fine("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); ... | 21,516 |
private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | 21,517 |
private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | 21,518 |
private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | 21,519 |
private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | 21,520 |
private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | 21,521 |
private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... | 21,522 |
public void propertyChange(PropertyChangeEvent e) { super.propertyChange(e); String name = e.getPropertyName(); if (name.equals("editable")) editablePropertyChanged(e); if (name.equals("enabled")) { if (arrowButton instanceof MetalComboBoxButton) { ... | public void propertyChange(PropertyChangeEvent e) { super.propertyChange(e); String name = e.getPropertyName(); if (name.equals("editable")) editablePropertyChanged(e); else if (name.equals("enabled")) { if (arrowButton instanceof MetalComboBoxButton) { ... | 21,523 |
public Dimension getMinimumSize(JComponent c) { if (!isMinimumSizeDirty) return new Dimension(cachedMinimumSize); Dimension d; if (!comboBox.isEditable() && arrowButton != null && arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; ... | public Dimension getMinimumSize(JComponent c) { if (!isMinimumSizeDirty) return new Dimension(cachedMinimumSize); Dimension d; if (!comboBox.isEditable() && arrowButton != null && arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; ... | 21,525 |
public Dimension getMinimumSize(JComponent c) { if (!isMinimumSizeDirty) return new Dimension(cachedMinimumSize); Dimension d; if (!comboBox.isEditable() && arrowButton != null && arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; ... | public Dimension getMinimumSize(JComponent c) { if (!isMinimumSizeDirty) return new Dimension(cachedMinimumSize); Dimension d; if (!comboBox.isEditable() && arrowButton != null && arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; ... | 21,526 |
getNumberOfPages(); | int getNumberOfPages(); | 21,527 |
getPageFormat(int pageIndex) throws IndexOutOfBoundsException; | PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException; | 21,528 |
getPrintable(int pageIndex) throws IndexOutOfBoundsException; | Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException; | 21,529 |
public boolean hasNext() { Ext2DirectoryRecord dr; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); do { if(index>=iNode.getSize()) return false; dr = new Ext2DirectoryRecord(fs, data, index, index); index+=dr.getRecLen(); } while(dr.getINodeNr()==0); //inode nr=0 means the entry i... | public boolean hasNext() { Ext2DirectoryRecord dr; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); do { if(index>=iNode.getSize()) return false; dr = new Ext2DirectoryRecord(fs, data, index, index); index+=dr.getRecLen(); } while(dr.getINodeNr()==0); //inode nr=0 means the entry i... | 21,530 |
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //a single inode may be represented by more than one Ext2Directory instances, //but each will use the same instance of the underlying inode (see Ext2FileSyst... | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { int iNodeNr = iNode.getINodeNr(); iNode = ((Ext2FileSystem)getFileSystem()).getINode(iNodeNr); iNode.incLocked(); } //read itself as a file //a si... | 21,531 |
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //a single inode may be represented by more than one Ext2Directory instances, //but each will use the same instance of the underlying inode (see Ext2FileSyst... | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //a single inode may be represented by more than one Ext2Directory instances, //but each will use the same instance of the underlying inode (see Ext2FileSyst... | 21,532 |
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //a single inode may be represented by more than one Ext2Directory instances, //but each will use the same instance of the underlying inode (see Ext2FileSyst... | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //a single inode may be represented by more than one Ext2Directory instances, //but each will use the same instance of the underlying inode (see Ext2FileSyst... | 21,533 |
public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir... | public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir... | 21,534 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.