bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public synchronized 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 n...
public synchronized 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 n...
23,108
public synchronized 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 n...
public synchronized 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 n...
23,109
public synchronized 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 n...
public synchronized 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 n...
23,110
public synchronized FSEntry createFileEntry(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; ...
public synchronized FSEntry createFileEntry(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; ...
23,111
public synchronized FSEntry createFileEntry(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; ...
publicsynchronizedFSEntrycreateFileEntry(Stringname)throwsIOException{ if(!canWrite()) thrownewIOException("Filesystemordirectoryismountedread-only!"); //createanewiNodeforthefile //TODO:accessrights,filetype,UIDandGIDshouldbepassedthroughtheFSDirectoryinterface INodenewINode; Ext2DirectoryRecorddr; Ext2FileSy...
23,112
protected Thread getCurrentWriter() { // FIXME: Implement locking! return null; }
protected Thread getCurrentWriter() { // FIXME: Implement locking! return currentWriter; }
23,114
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc...
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc...
23,115
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); content.remove(offset, length); postRemoveUpdate(event); fireRemoveUpdate(event); }
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); Element[] added = new Element[1]; added[0] = root.getElement(start); boolean shouldFire = conten...
23,119
public void render(Runnable runnable) { // FIXME: Implement me! }
readLock(); try { runnable.run(); } finally { readUnlock(); } readLock(); try { runnable.run(); } finally { readUnlock(); } publicreadLock(); try { runnable.run(); } finally { readUnlock(); } voidreadLock(); try { runnable.run(); } finally { readUnlock(); } render(RunnablereadLock(); try { runnable.run(); } finally { r...
23,121
protected void writeLock() { // FIXME: Implement me. }
if (currentWriter!= null && currentWriter.equals(Thread.currentThread())) return; synchronized (documentCV) { numWritersWaiting++; while (numReaders > 0) { try { documentCV.wait(); } catch (InterruptedException ie) { throw new Error("interruped while trying to obtain write lock"); } } numWritersWaiting --; currentWrite...
23,122
protected void writeUnlock() { // FIXME: Implement me. }
synchronized (documentCV) { if (currentWriter.equals(Thread.currentThread())) { currentWriter = null; documentCV.notifyAll(); } } synchronized (documentCV) { if (currentWriter.equals(Thread.currentThread())) { currentWriter = null; documentCV.notifyAll(); } } protectedsynchronized (documentCV) { if (currentWriter.equal...
23,123
public Component getTopComponentAt(int x, int y) { Component comp = super.getTopComponentAt(x, y); SwingFrame sfp = (SwingFrame) SwingUtilities.getAncestorOfClass( SwingFrame.class, comp); if (sfp != null) { Rectangle r = sfp.getBounds(); Insets ins = sfp.getSwingPeer().getInsets(); r.x = r....
public Component getTopComponentAt(int x, int y) { Component comp = super.getTopComponentAt(x, y); SwingFrame sfp = (SwingFrame) SwingUtilities.getAncestorOfClass( SwingFrame.class, comp); if (sfp != null) { Rectangle r = sfp.getBounds(); Insets ins = sfp.getSwingPeer().getInsets(); r.x = r....
23,124
protected Item cloneConstant() { return createConst(getValue()); }
protected Item cloneConstant() { return createConst(getValue()); }
23,125
public static long[] read(InputStream input) { LongLongSeqHolder h = new LongLongSeqHolder(); h._read(input); return h.value; }
public static long[] read(InputStream input) { LongLongSeqHolder h = new LongLongSeqHolder(); h._read(input); return h.value; }
23,126
public static void write(OutputStream output, long[] value) { LongLongSeqHolder h = new LongLongSeqHolder(value); h._write(output); }
public static void write(OutputStream output, long[] value) { LongLongSeqHolder h = new LongLongSeqHolder(value); h._write(output); }
23,127
public LongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public LongLongSeqHolder() { value = initial_value; typecode.setLength(value.length); }
23,128
public LongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public LongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); }
23,129
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp==rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabl...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp==rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabl...
23,130
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp==rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabl...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabl...
23,131
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); s.setOpaque(true); }
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); s.setOpaque(false); }
23,132
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ...
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemExcept...
23,134
public abstract boolean addPermission(Permission permission);
public abstract boolean addPermission(Permission permission);
23,136
public abstract boolean checkPermission(Permission permission);
public abstract boolean checkPermission(Permission permission);
23,137
public abstract Object clone();
public abstract Object clone();
23,138
public abstract Principal getPrincipal();
public abstract Principal getPrincipal();
23,139
public abstract boolean isNegative();
public abstract boolean isNegative();
23,140
public abstract Enumeration permissions();
public abstract Enumeration permissions();
23,141
public abstract boolean removePermission(Permission perm);
public abstract boolean removePermission(Permission perm);
23,142
public abstract void setNegativePermissions();
public abstract void setNegativePermissions();
23,143
public abstract boolean setPrincipal(Principal user);
public abstract boolean setPrincipal(Principal user);
23,144
public abstract String toString();
public abstract String toString();
23,145
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
23,146
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
public Object evaluate(Node context, int pos, int len) Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2)); ...
23,147
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
23,148
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
public Object evaluate(Node context, int pos, int len) Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2)); ...
23,149
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
23,150
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
23,151
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
public Object evaluate(Node context, int pos, int len) Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2)); ...
23,152
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
23,153
public BufferCapabilities getBufferCapabilities() throws NotImplementedException { throw new Error("not implemented"); }
public BufferCapabilities getBufferCapabilities() { throw new Error("not implemented"); }
23,154
public BufferCapabilities getBufferCapabilities() throws NotImplementedException { throw new Error("not implemented"); }
public BufferCapabilities getBufferCapabilities() throws NotImplementedException { if (imageCapabilities == null) getImageCapabilities(); if (bufferCapabilities == null) bufferCapabilities = new BufferCapabilities(imageCapabilities, imageCapabilities, null); return bufferCapabilities; }
23,155
public ImageCapabilities getImageCapabilities() throws NotImplementedException { throw new Error("not implemented"); }
public ImageCapabilities getImageCapabilities() { throw new Error("not implemented"); }
23,156
public ImageCapabilities getImageCapabilities() throws NotImplementedException { throw new Error("not implemented"); }
public ImageCapabilities getImageCapabilities() throws NotImplementedException { if (imageCapabilities == null) imageCapabilities = new ImageCapabilities(false); return imageCapabilities; }
23,157
boolean chain(REToken next) { if (next instanceof RETokenChar) { RETokenChar cnext = (RETokenChar) next; // assume for now that next can only be one character int newsize = ch.length + cnext.ch.length; char[] chTemp = new char [newsize]; System.arraycopy(ch,0,chTemp,0,ch.length...
boolean chain(REToken next) { if (next instanceof RETokenChar && ((RETokenChar)next).insens == insens) { RETokenChar cnext = (RETokenChar) next; // assume for now that next can only be one character int newsize = ch.length + cnext.ch.length; char[] chTemp = new char [newsize]; ...
23,160
void dispatchEventImpl(AWTEvent e) { if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
void dispatchEventImpl(AWTEvent e) { if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
23,161
public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File file = ARG_TOUCH.getFile(cmdLine); final File parentFile = file.getParentFile(); if (!file.exists()) { if (!parentFile.exists()) { if (!pa...
public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File file = ARG_TOUCH.getFile(cmdLine); final File parentFile = file.getParentFile(); if (!file.exists()) { if (parentFile!=null && !parentFile.exists()) { ...
23,163
public static void main(String[] argv) throws Exception { initEnv(); SwingTextScreenConsoleManager cm = new SwingTextScreenConsoleManager(); new Thread(new CommandShell((TextConsole) cm.createConsole(null, ConsoleManager.CreateOptions.TEXT | ConsoleManager.CreateOptions.SCROLLABL...
public static void main(String[] argv) throws Exception { initEnv(); SwingTextScreenConsoleManager cm = new SwingTextScreenConsoleManager(); new Thread(new CommandShell((TextConsole) cm.createConsole("Console 1", ConsoleManager.CreateOptions.TEXT | ConsoleManager.CreateOptions.SC...
23,164
public SampleModel getSampleModel() { return sampleModel; }
public SampleModel getSampleModel (int width, int height) { return sampleModel; }
23,165
public SampleModel getSampleModel() { return sampleModel; }
public SampleModel getSampleModel() { if (width <= 0 || height <= 0) throw new IllegalArgumentException ("invalid dimension"); if (width * height < Math.min (width, height)) throw new IllegalArgumentException ("width * height > Integer.MAX_VALUE"); return sampleModel.createCompatibleSampleModel (width, height)...
23,166
public void fireTableCellUpdated (int row, int column) { fireTableChanged(new TableModelEvent(this, row, row, column)); }
public void fireTableCellUpdated(int row, int column) { fireTableChanged(new TableModelEvent(this, row, row, column)); }
23,167
public void fireTableChanged(TableModelEvent event) { int index; TableModelListener listener; Object[] list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { listener = (TableModelListener) list [index + 1]; listener.tableChanged (event); } }
public void fireTableChanged(TableModelEvent event) { int index; TableModelListener listener; Object[] list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { listener = (TableModelListener) list [index + 1]; listener.tableChanged(event); } }
23,168
public void fireTableRowsInserted (int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT)); }
public void fireTableRowsInserted(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT)); }
23,169
public void fireTableRowsUpdated (int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); }
public void fireTableRowsUpdated(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); }
23,170
public String getColumnName(int columnIndex) { StringBuffer buffer = new StringBuffer(); while (columnIndex >= 0) { buffer.insert (0, (char) ('A' + columnIndex % 26)); columnIndex = columnIndex / 26 - 1; } return buffer.toString(); }
public String getColumnName(int columnIndex) { StringBuffer buffer = new StringBuffer(); while (columnIndex >= 0) { buffer.insert(0, (char) ('A' + columnIndex % 26)); columnIndex = columnIndex / 26 - 1; } return buffer.toString(); }
23,171
public synchronized byte[] getINodeTableBlock(int blockNo) throws FileSystemException, IOException{ if(blockNo < blockCount) return fs.getBlock(firstBlock+blockNo); else throw new FileSystemException("Trying to get block #"+blockNo+ "of an inode table that only has "+blockCount+" blocks"); }
public synchronized byte[] getINodeTableBlock(int blockNo) throws FileSystemException, IOException{ if(blockNo < blockCount) return fs.getBlock(firstBlock+blockNo); else throw new FileSystemException("Trying to get block #"+blockNo+ "of an inode table that only has "+blockCount+" blocks"); }
23,172
public synchronized void writeINodeTableBlock(byte[] data, int blockNo) throws FileSystemException, IOException { if(blockNo < blockCount) fs.writeBlock(firstBlock+blockNo, data, false); else throw new FileSystemException("Trying to write block #"+blockNo+ "of an inode table that only has "+blockCount+" blocks"...
public synchronized void writeINodeTableBlock(byte[] data, int blockNo) throws FileSystemException, IOException { if(blockNo < blockCount) fs.writeBlock(firstBlock+blockNo, data, false); else throw new FileSystemException("Trying to write block #"+blockNo+ "of an inode table that only has "+blockCount+" blocks"...
23,173
public static FileSystemView getFileSystemView() { if (File.separator.equals("/")) return new UnixFileSystemView(); // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else // return new GenericFileSystemView(); return null; }
public static FileSystemView getFileSystemView() { if (File.separator.equals("/")) defaultFileSystemView = new UnixFileSystemView(); // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else // return new GenericFileSystemView(); return null; }
23,174
public static FileSystemView getFileSystemView() { if (File.separator.equals("/")) return new UnixFileSystemView(); // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else // return new GenericFileSystemView(); return null; }
public static FileSystemView getFileSystemView() { if (File.separator.equals("/")) return new UnixFileSystemView(); // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else // return new GenericFileSystemView(); } return defaultFileSystemView; }
23,175
Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column);
Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column);
23,176
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
public void addSelectionPath(TreePath path) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = new...
23,177
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
23,178
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
23,179
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
23,180
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
23,181
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
public void addSelectionPaths(TreePath[] paths) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length ...
23,182
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
23,183
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
23,184
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
23,185
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
23,186
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
23,187
protected boolean arePathsContiguous(TreePath[] value0) { return false; // TODO }
protected boolean arePathsContiguous(TreePath[] paths) { return false; // TODO }
23,188
protected boolean canPathsBeAdded(TreePath[] value0) { return false; // TODO }
protected boolean canPathsBeAdded(TreePath[] paths) { return false; // TODO }
23,189
protected boolean canPathsBeRemoved(TreePath[] value0) { return false; // TODO }
protected boolean canPathsBeRemoved(TreePath[] paths) { return false; // TODO }
23,190
public boolean isPathSelected(TreePath value0) { if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false; }
public boolean isPathSelected(TreePath path) { if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false; }
23,191
public boolean isPathSelected(TreePath value0) { if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false; }
public boolean isPathSelected(TreePath value0) { if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false; }
23,192
public boolean isRowSelected(int value0) { return false; // TODO }
public boolean isRowSelected(int row) { return false; // TODO }
23,193
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
public void removeSelectionPath(TreePath path) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, temp,...
23,194
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
23,195
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
23,196
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
23,197
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
public void removeSelectionPaths(TreePath[] paths) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { ind...
23,198
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
23,199
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
23,200
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
23,201
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
23,202
public void setRowMapper(RowMapper value0) { // TODO }
public void setRowMapper(RowMapper rowMapper) { // TODO }
23,203
public void setSelectionPaths(TreePath[] value0) { // TODO }
public void setSelectionPaths(TreePath[] paths) { // TODO }
23,204
public Rectangle getTabBounds(JTabbedPane pane, int index) { Rectangle result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.getTabBounds(pane, index); ...
public Rectangle getTabBounds(JTabbedPane pane, int index) { Rectangle result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.getTabBounds(pane, index); ...
23,205
public int getTabRunCount(JTabbedPane pane) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.getTabRunCount(pane); } // return values from...
public int getTabRunCount(JTabbedPane pane) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.getTabRunCount(pane); } // return values from...
23,206
public int tabForCoordinate(JTabbedPane pane, int x, int y) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.tabForCoordinate(pane, x, y); } ...
public int tabForCoordinate(JTabbedPane pane, int x, int y) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.tabForCoordinate(pane, x, y); } ...
23,207
private boolean verifyHashes(String entry, Attributes attr) { int verified = 0; // The bytes for ENTRY's manifest entry, which are signed in the // signature file. byte[] entryBytes = null; try { entryBytes = readManifestEntry(super.getEntry(entry)); } catch (IOException ioe) ...
private boolean verifyHashes(String entry, Attributes attr) { int verified = 0; // The bytes for ENTRY's manifest entry, which are signed in the // signature file. byte[] entryBytes = null; try { ZipEntry e = super.getEntry(entry); if (e == null) { if (DEBUG) debug("verifyHashes: no entry ...
23,208
public Node cloneNode(boolean deep) { IIOMetadataNode newnode = new IIOMetadataNode(name); newnode.parent = null; newnode.obj = obj; if (deep) { for (int i=0; i < children.size(); i++) newnode.children.add(((Node)children.get(i)).cloneNode(deep)); } // clone attrs for (Iterato...
public Node cloneNode(boolean deep) { IIOMetadataNode newnode = new IIOMetadataNode(name); newnode.parent = null; newnode.obj = obj; if (deep) { for (int i=0; i < children.size(); i++) newnode.children.add(((Node)children.get(i)).cloneNode(deep)); } // clone attrs for (Iterato...
23,209
public short compareDocumentPosition(Node other) throws DOMException { throw new Error("not implemented"); }
public short compareDocumentPosition(Node other) throws DOMException { return Element.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC; }
23,210
public Attr getAttributeNode(String name) { String val = getAttribute(name); if (val != null) return new IIOAttr(name, val, this); return null; }
public Attr getAttributeNode(String name) { String val = getAttribute(name); if (val != null) return new IIOMetadataNodeAttr(this, name, val); return null; }
23,211
public String getBaseURI() { throw new Error("not implemented"); }
public String getBaseURI() { return null; }
23,212
public Object getFeature(String feature, String version) { throw new Error("not implemented"); }
public Object getFeature(String feature, String version) { return null; }
23,213
public TypeInfo getSchemaTypeInfo() { throw new Error("not implemented"); }
public TypeInfo getSchemaTypeInfo() { return null; }
23,214
public String getTextContent() throws DOMException { throw new Error("not implemented"); }
public String getTextContent() throws DOMException { return null; }
23,215
public Object getUserData(String key) { throw new Error("not implemented"); }
public Object getUserData(String key) { return null; }
23,216
public boolean isDefaultNamespace(String namespaceURI) { throw new Error("not implemented"); }
public boolean isDefaultNamespace(String namespaceURI) { return true; }
23,217