bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,642
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
publicintnext()throwsXMLStreamException{if(lookahead){lookahead=false;returnevent;}if(event==XMLStreamConstants.END_ELEMENT){//Popnamespacecontextif(namespaceAware)namespaces.removeFirst();//Popbasecontextif(baseAware)bases.removeFirst();}if(!startEntityStack.isEmpty()){StringentityName=(String)startEntityStack.removeF...
17,643
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,644
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,645
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,646
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,647
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,648
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,649
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,650
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,651
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,652
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,653
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,654
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware) namespaces.removeFirst(); // Pop base context if (ba...
17,655
private String getXMLBase() { if (baseAware) { for (Iterator i = bases.iterator(); i.hasNext(); ) { String base = (String) i.next(); if (base != null) return base; } } return input.systemId; }
String getXMLBase() { if (baseAware) { for (Iterator i = bases.iterator(); i.hasNext(); ) { String base = (String) i.next(); if (base != null) return base; } } return input.systemId; }
17,656
public void setLocationRelativeTo (Component c) { if (c == null || !c.isShowing ()) { int x = 0; int y = 0; GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment (); Point center = ge.getCenterPoint (); x = center.x - (width / 2); y = center.y - (h...
else { int x = c.getX(); int y = c.getY(); int cWidth = c.getWidth(); int cHeight = c.getHeight(); Dimension screenSize = getToolkit().getScreenSize(); if ((y + cHeight) > screenSize.height) { if ((screenSize.width / 2 - x) <= 0) { if ((x - width) >= 0) x -= width; else x = 0; } else { if ((x + cWidth + width) <= ...
17,657
public VmSystemClassLoader(URL classesURL, VmArchitecture arch, ObjectResolver resolver) { this.classesURL = classesURL; this.classInfos = new TreeMap(); this.parent = null; this.selectorMap = new SelectorMap(); this.arch = arch; this.resolver = resolver; this.statics = new VmStatics(arch, resolver); }
public VmSystemClassLoader(URL classesURL, VmArchitecture arch, ObjectResolver resolver) { this.classesURL = classesURL; this.classInfos = new TreeMap(); this.parent = null; this.selectorMap = new SelectorMap(); this.arch = arch; this.resolver = resolver; this.statics = new VmStatics(arch, resolver); }
17,658
public void compileRuntime(VmMethod vmMethod, int optLevel) { final NativeCodeCompiler cmps[] = arch.getCompilers(); final NativeCodeCompiler cmp; if (optLevel < 0) { optLevel = 0; } else if (optLevel >= cmps.length) { optLevel = cmps.length-1; } cmp = cmps[optLevel]; cmp.compileRuntime(vmMethod, getResolve...
public void compileRuntime(VmMethod vmMethod, int optLevel) { final NativeCodeCompiler cmps[] = arch.getCompilers(); final NativeCodeCompiler cmp; if (optLevel < 0) { optLevel = 0; } else if (optLevel >= cmps.length) { optLevel = cmps.length-1; } cmp = cmps[optLevel]; cmp.compileRuntime(vmMethod, getResolve...
17,659
public boolean nameEquals(String otherName) { return name.equals(otherName); }
public boolean nameEquals(char[] otherName) { return name.equals(otherName); }
17,660
public String toString() { StringBuffer str = new StringBuffer(X509CertSelector.class.getName()); GetPropertyAction getProp = new GetPropertyAction("line.separator"); String nl = (String) AccessController.doPrivileged(getProp); String eol = ";" + nl; str.append(" {").append(nl); if (cert != null) ...
public String toString() { StringBuffer str = new StringBuffer(X509CertSelector.class.getName()); GetPropertyAction getProp = new GetPropertyAction("line.separator"); String nl = (String) AccessController.doPrivileged(getProp); String eol = ";" + nl; str.append(" {").append(nl); if (cert != null) ...
17,661
public void setPixel(int x, int y, float[] fArray) { sampleModel.setPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); }
public void setPixel(int x, int y, int[] iArray) { sampleModel.setPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); }
17,662
public void setPixel(int x, int y, float[] fArray) { sampleModel.setPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); }
public void setPixel(int x, int y, float[] fArray) { sampleModel.setPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); }
17,663
public ImageIcon(String s) { this(s, ""); }
public ImageIcon(String s) { this(s, s); }
17,664
private final void resolve32(int addr, int offset) { final int distance = offset - get32(addr); if (isRelJump() && (distance == 0)) { if (get8(addr - 1) == 0xe9) // JMP { set8(addr - 1, 0x90); // NOP set32(addr, 0x90909090); // 4 NOP's } else if (get8(addr - 2) == 0x0f) // Jcc { set8(addr ...
private final void resolve32(int addr, int offset) { final int distance = offset - get32(addr); if (isRelJump() && (distance == 0)) { if (get8(addr - 1) == 0xe9) // JMP { set8(addr - 1, 0x90); // NOP set32(addr, 0x90909090); // 4 NOP's } else if (get8(addr - 2) == 0x0f) // Jcc { set8(addr ...
17,665
public void setOffset(int offset) { if (this.dataOffset != -1) { if ("".equals(getObject().toString())) { return; } throw new RuntimeException( "Offset is already set. Duplicate labels? (" + getObject() + ")"); } if (offset < 0) { throw new IllegalArgumentException("Offset: " + offse...
public void setOffset(int offset) { if (this.dataOffset != -1) { if ("".equals(getObject().toString())) { return; } throw new RuntimeException( "Offset is already set. Duplicate labels? (" + getObject() + ")"); } if (offset < 0) { throw new IllegalArgumentException("Offset: " + offse...
17,666
public void setOffset(int offset) { if (this.dataOffset != -1) { if ("".equals(getObject().toString())) { return; } throw new RuntimeException( "Offset is already set. Duplicate labels? (" + getObject() + ")"); } if (offset < 0) { throw new IllegalArgumentException("Offset: " + offse...
public void setOffset(int offset) { if (this.dataOffset != -1) { if ("".equals(getObject().toString())) { return; } throw new RuntimeException( "Offset is already set. Duplicate labels? (" + getObject() + ")"); } if (offset < 0) { throw new IllegalArgumentException("Offset: " + offse...
17,667
public void setOffset(int offset) { if (this.dataOffset != -1) { if ("".equals(getObject().toString())) { return; } throw new RuntimeException( "Offset is already set. Duplicate labels? (" + getObject() + ")"); } if (offset < 0) { throw new IllegalArgumentException("Offset: " + offse...
public void setOffset(int offset) { if (this.dataOffset != -1) { if ("".equals(getObject().toString())) { return; } throw new RuntimeException( "Offset is already set. Duplicate labels? (" + getObject() + ")"); } if (offset < 0) { throw new IllegalArgumentException("Offset: " + offse...
17,668
public static final String encode(final byte[] src, final int off, final int len, final boolean breakLines) { final int len43 = len * 4 / 3; final byte[] outBuff = new byte[len43 // Main 4:3 + ((len % 3) > 0 ? 4 : 0) // Account for padding ...
public static final String encode(final byte[] src, final int off, final int len, final boolean breakLines) { final int len43 = len * 4 / 3; final byte[] outBuff = new byte[len43 // Main 4:3 + ((len % 3) > 0 ? 4 : 0) // Account for padding ...
17,669
public static final String encode(final byte[] src, final int off, final int len, final boolean breakLines) { final int len43 = len * 4 / 3; final byte[] outBuff = new byte[len43 // Main 4:3 + ((len % 3) > 0 ? 4 : 0) // Account for padding ...
public static final String encode(final byte[] src, final int off, final int len, final boolean breakLines) { final int len43 = len * 4 / 3; final byte[] outBuff = new byte[len43 // Main 4:3 + ((len % 3) > 0 ? 4 : 0) // Account for padding ...
17,670
public KeyStoreException(String msg) { super(msg); }
public KeyStoreException() { super(msg); }
17,671
public KeyStoreException(String msg) { super(msg); }
public KeyStoreException(String msg) { }
17,672
static final Address allocateBlock(int blockSize) { if (!initialized) { initialize(); } enter(); try { // Calculate the number of blocks needed final int reqBlockCount = (int)(blockAlign(blockSize, true) >>> BLOCK_SIZE_SHIFT); // Find a large enough series of blocks final long nr = findFreeBlocks(reqBloc...
static final Address allocateBlock(int blockSize) { if (!initialized) { initialize(); } enter(); try { // Calculate the number of blocks needed final int reqBlockCount = (int)(blockAlign(blockSize, true) >>> BLOCK_SIZE_SHIFT); // Find a large enough series of blocks final long nr = findFreeBlocks(reqBloc...
17,673
static final Address allocateBlock(int blockSize) { if (!initialized) { initialize(); } enter(); try { // Calculate the number of blocks needed final int reqBlockCount = (int)(blockAlign(blockSize, true) >>> BLOCK_SIZE_SHIFT); // Find a large enough series of blocks final long nr = findFreeBlocks(reqBloc...
static final Address allocateBlock(int blockSize) { if (!initialized) { initialize(); } enter(); try { // Calculate the number of blocks needed final int reqBlockCount = (int)(blockAlign(blockSize, true) >>> BLOCK_SIZE_SHIFT); // Find a large enough series of blocks final long nr = findFreeBlocks(reqBloc...
17,674
private static void clear(Address ptr, long size) { Unsafe.debug("clear"); Unsafe.debug(size); while (size != 0) { final int part = (int)Math.min(size, 0x7fffffffL); Unsafe.debug(size); Unsafe.clear(ptr, part); ptr = Unsafe.add(ptr, part); size -= part; } }
private static void clear(Address ptr, long size) { Unsafe.debug("clear"); Unsafe.debug(size); while (size != 0) { final int part = (int)Math.min(size, 0x7fffffffL); Unsafe.debug(size); Unsafe.clear(ptr, part); ptr = Unsafe.add(ptr, part); size -= part; } }
17,675
private static void clear(Address ptr, long size) { Unsafe.debug("clear"); Unsafe.debug(size); while (size != 0) { final int part = (int)Math.min(size, 0x7fffffffL); Unsafe.debug(size); Unsafe.clear(ptr, part); ptr = Unsafe.add(ptr, part); size -= part; } }
private static void clear(Address ptr, long size) { Unsafe.debug("clear"); Unsafe.debug(size); while (size != 0) { final int part = (int)Math.min(size, 0x7fffffffL); Unsafe.debug(size); Unsafe.clear(ptr, part); ptr = Unsafe.add(ptr, part); size -= part; } }
17,676
private final static void initialize() { Unsafe.debug("initialize."); startPtr = blockAlign(Unsafe.addressToLong(Unsafe.getMemoryStart()), true); endPtr = blockAlign(Unsafe.addressToLong(Unsafe.getMemoryEnd()), false); final long size = endPtr - startPtr; Unsafe.debug(size); blockCount = (size >>> BLOCK_SIZE_S...
private final static void initialize() { Unsafe.debug("initialize."); startPtr = blockAlign(Unsafe.addressToLong(Unsafe.getMemoryStart()), true); endPtr = blockAlign(Unsafe.addressToLong(Unsafe.getMemoryEnd()), false); final long size = endPtr - startPtr; Unsafe.debug(size); blockCount = (size >>> BLOCK_SIZE_S...
17,678
private final static void initialize() { Unsafe.debug("initialize."); startPtr = blockAlign(Unsafe.addressToLong(Unsafe.getMemoryStart()), true); endPtr = blockAlign(Unsafe.addressToLong(Unsafe.getMemoryEnd()), false); final long size = endPtr - startPtr; Unsafe.debug(size); blockCount = (size >>> BLOCK_SIZE_S...
private final static void initialize() { Unsafe.debug("initialize."); startPtr = blockAlign(Unsafe.addressToLong(Unsafe.getMemoryStart()), true); endPtr = blockAlign(Unsafe.addressToLong(Unsafe.getMemoryEnd()), false); final long size = endPtr - startPtr; Unsafe.debug(size); blockCount = (size >>> BLOCK_SIZE_S...
17,679
private static final boolean isInUse(long blockNr) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); final int v = Unsafe.getInt(ptr); return ((v & mask) == mask); }
private static final boolean isInUse(long blockNr) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); final int v = Unsafe.getInt(ptr); return ((v & mask) == mask); }
17,680
private static final boolean isInUse(long blockNr) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); final int v = Unsafe.getInt(ptr); return ((v & mask) == mask); }
private static final boolean isInUse(long blockNr) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); final int v = Unsafe.getInt(ptr); return ((v & mask) == mask); }
17,681
private static final void setInUse(long blockNr, boolean inUse) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); int v = Unsafe.getInt(ptr); if (inUse) { v |= mask;...
private static final void setInUse(long blockNr, boolean inUse) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); int v = Unsafe.getInt(ptr); if (inUse) { v |= mask;...
17,682
private static final void setInUse(long blockNr, boolean inUse) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); int v = Unsafe.getInt(ptr); if (inUse) { v |= mask;...
private static final void setInUse(long blockNr, boolean inUse) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); int v = Unsafe.getInt(ptr); if (inUse) { v |= mask;...
17,683
private static final void setInUse(long blockNr, boolean inUse) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); int v = Unsafe.getInt(ptr); if (inUse) { v |= mask;...
private static final void setInUse(long blockNr, boolean inUse) { // 32-bits per int, so shift=5, mask=31 final long offset = blockNr >>> 5; final int mask = (1 << (int) (blockNr & 31)); final Address ptr = Unsafe.add(bitmapPtr, Unsafe.longToAddress(offset)); int v = Unsafe.getInt(ptr); if (inUse) { v |= mask;...
17,684
public abstract Object blockingLock ();
public abstract Object blockingLock ();
17,686
public abstract SelectableChannel configureBlocking (boolean block) throws IOException;
public abstract SelectableChannel configureBlocking(boolean block) throws IOException;
17,687
protected abstract void implCloseChannel () throws IOException;
protected abstract void implCloseChannel () throws IOException;
17,688
public abstract boolean isBlocking ();
public abstract boolean isBlocking ();
17,689
public abstract boolean isRegistered ();
public abstract boolean isRegistered ();
17,690
public abstract SelectionKey keyFor (Selector sel);
public abstract SelectionKey keyFor (Selector sel);
17,691
public final boolean isOpen () { return opened; }
public final boolean isOpen() { return opened; }
17,692
public final boolean isOpen () { return opened; }
public final boolean isOpen () { return ! closed; }
17,693
public abstract SelectorProvider provider ();
public abstract SelectorProvider provider ();
17,694
public abstract SelectionKey register (Selector sel, int ops, Object att) throws ClosedChannelException;
public abstract SelectionKey register (Selector sel, int ops, Object att) throws ClosedChannelException;
17,695
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,696
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,697
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,698
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,699
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,700
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,701
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,702
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,703
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,704
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ...
17,705
public void close() throws IOException { flush(); closed = true; //XXX throw new IOException("Yet unimplemented"); }
public void close() throws IOException { flush(); closed = true; //XXX throw new IOException("Yet unimplemented"); }
17,706
public void flush() throws IOException { //XXX throw new IOException("Yet unimplemented"); }
public void flush() throws IOException { //XXX throw new IOException("Yet unimplemented"); }
17,707
public byte[] getBlock(long nr) throws IOException { int blockSize = superblock.getBlockSize(); Block result; Integer key = new Integer((int) nr); //check if the block has already been retrieved if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(...
public byte[] getBlock(long nr) throws IOException { int blockSize = superblock.getBlockSize(); Block result; Integer key = new Integer((int) nr); //check if the block has already been retrieved if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(...
17,708
public byte[] getBlock(long nr) throws IOException { int blockSize = superblock.getBlockSize(); Block result; Integer key = new Integer((int) nr); //check if the block has already been retrieved if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(...
public byte[] getBlock(long nr) throws IOException { int blockSize = superblock.getBlockSize(); Block result; Integer key = new Integer((int) nr); //check if the block has already been retrieved if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(...
17,709
public byte[] getBlock(long nr) throws IOException { int blockSize = superblock.getBlockSize(); Block result; Integer key = new Integer((int) nr); //check if the block has already been retrieved if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(...
public byte[] getBlock(long nr) throws IOException { int blockSize = superblock.getBlockSize(); Block result; Integer key = new Integer((int) nr); //check if the block has already been retrieved if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(...
17,710
public long getBlockSize() { return superblock.getBlockSize(); }
public long getBlockSize() { return superblock.getBlockSize(); }
17,711
public INode getINode(int iNodeNr) throws IOException, FileSystemException { if (iNodeNr < 1) throw new IOException("INode number must be greater than 0"); int group = (int) ((iNodeNr - 1) / superblock.getINodesPerGroup()); int index = (int) ((iNodeNr - 1) % superblock.getINodesPerGroup()); //get the part of the...
public INode getINode(int iNodeNr) throws IOException, FileSystemException { if (iNodeNr < 1) throw new IOException("INode number must be greater than 0"); int group = (int) ((iNodeNr - 1) / superblock.getINodesPerGroup()); int index = (int) ((iNodeNr - 1) % superblock.getINodesPerGroup()); //get the part of the...
17,712
public FSEntry getRootEntry() throws IOException { log.debug("Ext2FileSystem.getRootEntry()"); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); } } catch (FileSystemException e) { throw new IOException(e); } return null; }
public FSEntry getRootEntry() throws IOException { log.debug("Ext2FileSystem.getRootEntry()"); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); } } catch (FileSystemException e) { throw new IOException(e); } return null; }
17,713
public FSEntry getRootEntry() throws IOException { log.debug("Ext2FileSystem.getRootEntry()"); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); } } catch (FileSystemException e) { throw new IOException(e); } return null; }
public FSEntry getRootEntry() throws IOException { log.debug("Ext2FileSystem.getRootEntry()"); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); } } catch (FileSystemException e) { throw new IOException(e); } return null; }
17,714
public Superblock() { data = new byte[SUPERBLOCK_LENGTH]; log.setLevel(Level.DEBUG); }
public Superblock() { data = new byte[SUPERBLOCK_LENGTH]; log.setLevel(Level.DEBUG); }
17,716
public GroupDescriptor() { data = new byte[GROUPDESCRIPTOR_LENGTH]; log.setLevel(Level.DEBUG); }
public GroupDescriptor() { data = new byte[GROUPDESCRIPTOR_LENGTH]; log.setLevel(Level.DEBUG); }
17,717
public INode(Ext2FileSystem fs, INodeDescriptor desc) { this.fs = fs; this.desc = desc; this.data = new byte[INODE_LENGTH]; log.setLevel(Level.DEBUG); }
public INode(Ext2FileSystem fs, INodeDescriptor desc) { this.fs = fs; this.desc = desc; this.data = new byte[INODE_LENGTH]; log.setLevel(Level.DEBUG); }
17,718
protected void update() throws IOException{ try{ if(dirty) { log.debug(" ** updating inode **"); desc.getINodeTable().writeInodeData( desc.getIndex(), data ); dirty=false; } }catch(FileSystemException fs) { throw new IOException(fs); } }
protected void update() throws IOException{ try{ if(dirty) { log.debug(" ** updating inode **"); desc.getINodeTable().writeInodeData( desc.getIndex(), data ); dirty=false; } }catch(FileSystemException fs) { throw new IOException(fs); } }
17,719
public void flush() { if (!dirty) return; //XXX... log.error("BLOCK FLUSHED FROM CACHE"); }
public void flush() { if (!dirty) return; //XXX... log.error("BLOCK FLUSHED FROM CACHE"); }
17,720
public void flush() { if (!dirty) return; //XXX... log.error("BLOCK FLUSHED FROM CACHE"); }
public void flush() { if (!dirty) return; //XXX... log.error("BLOCK FLUSHED FROM CACHE"); }
17,721
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) log.debug("CACHE HIT, size:"+size()); else log.debug("CACHE MISS"); return result; }
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) log.debug("CACHE HIT, size:"+size()); else log.debug("CACHE MISS"); return result; }
17,722
public Block(byte[] data) { this.data = data; }
public Block(byte[] data) { this.data = data; }
17,723
public Ext2Entry(INode iNode, String name, int type) { this.iNode = iNode; this.name = name; this.type = type; this.valid = true; log.debug("Ext2Entry(iNode, name): name="+name+ (isDirectory()?" is a directory ":"")+ (isFile()?" is a file ":"")); }
public Ext2Entry(INode iNode, String name, int type) { this.iNode = iNode; this.name = name; this.type = type; this.valid = true; log.debug("Ext2Entry(iNode, name): name="+name+ (isDirectory()?" is a directory ":"")+ (isFile()?" is a file ":"")); }
17,724
public void setData(byte[] data) { this.data = data; dirty = true; }
public void setData(byte[] data) { this.data = data; dirty = true; }
17,726
public int getIconWidth() { return 16; }
public int getIconWidth() { return 16; }
17,727
public RenderContext(AffineTransform xform) { this(xform, null, null); }
public RenderContext(AffineTransform xform, Shape aoi, RenderingHints hints) { this(xform, null, null); }
17,728
public RenderContext(AffineTransform xform) { this(xform, null, null); }
public RenderContext(AffineTransform xform) { this.xform = xform; this.aoi = aoi; this.hints = hints; }
17,729
public String replaceAll(String replacement) { throw new InternalError("Not implemented yet"); }
public String replaceAll (String replacement) { throw new InternalError("Not implemented yet"); }
17,730
public String replaceAll(String replacement) { throw new InternalError("Not implemented yet"); }
public String replaceAll(String replacement) { reset(); return pattern.getRE().substituteAll(input, replacement, position); }
17,731
public String replaceFirst(String replacement) { throw new InternalError("Not implemented yet"); }
public String replaceFirst (String replacement) { throw new InternalError("Not implemented yet"); }
17,732
public String replaceFirst(String replacement) { throw new InternalError("Not implemented yet"); }
public String replaceFirst(String replacement) { reset(); return pattern.getRE().substitute(input, replacement, position); }
17,733
public void addItem(MenuItem item) { Action action = new AbstractAction(){ public void actionPerformed(ActionEvent e) { //todo implement it } }; action.putValue(Action.NAME, item.getLabel()); ((JPopupMenu)jComponent).add(action); }
public void addItem(MenuItem item) { Action action = new AbstractAction(){ public void actionPerformed(ActionEvent e) { //todo implement it } }; action.putValue(Action.NAME, item.getLabel()); ((JPopupMenu)jComponent).add(action); }
17,734
public void setLabel(String text) { ((JPopupMenu)jComponent).setLabel(text); }
public void setLabel(String text) { ((JPopupMenu) jComponent).setLabel(text); }
17,735
public void setArc(Rectangle2D r, double start, double extent, int type) { setArc(r.getX(), r.getY(), r.getWidth(), r.getHeight(), start, extent, type); }
public void setArc(Rectangle2D r, double start, double extent, int type) { setArc(r.getX(), r.getY(), r.getWidth(), r.getHeight(), start, extent, type); }
17,736
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW...
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW...
17,737
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW...
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW...
17,738
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW...
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW...
17,739
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW...
final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW...
17,740
final void setDpms(DpmsState state) { int crtc_ext_cntl = vgaIO.getReg32(CRTC_EXT_CNTL); int lvds_gen_cntl = vgaIO.getReg32(LVDS_GEN_CNTL);// log.info("Get LVDS_GEN_CTRL 0x" + NumberUtils.hex(lvds_gen_cntl)); crtc_ext_cntl &= ~(CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); lvds_gen_cntl &= ~(LVDS_DISPLA...
final void setDpms(DpmsState state) { int crtc_ext_cntl = vgaIO.getReg32(CRTC_EXT_CNTL); int lvds_gen_cntl = vgaIO.getReg32(LVDS_GEN_CNTL);// log.info("Get LVDS_GEN_CTRL 0x" + NumberUtils.hex(lvds_gen_cntl)); crtc_ext_cntl &= ~(CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); lvds_gen_cntl &= ~(LVDS_DISPLA...
17,741
final void setDpms(DpmsState state) { int crtc_ext_cntl = vgaIO.getReg32(CRTC_EXT_CNTL); int lvds_gen_cntl = vgaIO.getReg32(LVDS_GEN_CNTL);// log.info("Get LVDS_GEN_CTRL 0x" + NumberUtils.hex(lvds_gen_cntl)); crtc_ext_cntl &= ~(CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); lvds_gen_cntl &= ~(LVDS_DISPLA...
final void setDpms(DpmsState state) { int crtc_ext_cntl = vgaIO.getReg32(CRTC_EXT_CNTL); int lvds_gen_cntl = vgaIO.getReg32(LVDS_GEN_CNTL);// log.info("Get LVDS_GEN_CTRL 0x" + NumberUtils.hex(lvds_gen_cntl)); crtc_ext_cntl &= ~(CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); lvds_gen_cntl &= ~(LVDS_DISPLA...
17,742
final void setDpms(DpmsState state) { int crtc_ext_cntl = vgaIO.getReg32(CRTC_EXT_CNTL); int lvds_gen_cntl = vgaIO.getReg32(LVDS_GEN_CNTL);// log.info("Get LVDS_GEN_CTRL 0x" + NumberUtils.hex(lvds_gen_cntl)); crtc_ext_cntl &= ~(CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); lvds_gen_cntl &= ~(LVDS_DISPLA...
final void setDpms(DpmsState state) { int crtc_ext_cntl = vgaIO.getReg32(CRTC_EXT_CNTL); int lvds_gen_cntl = vgaIO.getReg32(LVDS_GEN_CNTL);// log.info("Get LVDS_GEN_CTRL 0x" + NumberUtils.hex(lvds_gen_cntl)); crtc_ext_cntl &= ~(CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); lvds_gen_cntl &= ~(LVDS_DISPLA...
17,743
JToolTip(String text) { this.text = text; }
JToolTip(String text) { this.text = text; }
17,744
public ObjectAlreadyActive(String why) { super(why); }
public ObjectAlreadyActive() { super(why); }
17,745