bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listene... | private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { Vector lc = new Vector(listeners); int size = lc.size(); for (int i = 0; i < size; i++) { ScreenListener target = ... | 3,579 |
private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listene... | private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)lc.elem... | 3,580 |
private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.e... | private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { Vector lc = new Vector(listeners); int size = lc.size(); for (int i = 0; i < size; i++) { ScreenListener target = ... | 3,581 |
private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.e... | private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.e... | 3,582 |
private void fireScreenSizeChanged() { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenSizeChanged(numRows,numCols); } } } | private void fireScreenSizeChanged() { if (listeners != null) { Vector lc = new Vector(listeners); int size = lc.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenSizeChanged(numRows,num... | 3,583 |
private void fireScreenSizeChanged() { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenSizeChanged(numRows,numCols); } } } | private void fireScreenSizeChanged() { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)lc.elementAt(i); target.onScreenSizeChanged(numRows,numCols); } } } | 3,584 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 3,585 |
private static final void checkTag(int value_tag) { if ((value_tag < 0x7fffff00 || value_tag > 0x7fffffff) && value_tag != vt_NULL && value_tag != vt_INDIRECTION ) throw new MARSHAL("Invalid value record, unsupported header tag: " + value_tag ); } | private static final void checkTag(int value_tag) { if ((value_tag < 0x7fffff00 || value_tag > 0x7fffffff) && value_tag != vt_NULL && value_tag != vt_INDIRECTION ) throw new MARSHAL("Invalid value record, unsupported header tag: " + value_tag ); } | 3,587 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 3,588 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 3,589 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 3,590 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 3,591 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 3,592 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 3,593 |
public static void write(OutputStream output, Serializable value) { // Write null if this is a null value. if (value == null) output.write_long(vt_NULL); else write(output, value, ObjectCreator.toIDL(value.getClass().getName())); } | public static void write(OutputStream output, Serializable value) { // Write null if this is a null value. if (value == null) output.write_long(vt_NULL); else write(output, value, value.getClass()); } | 3,594 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,595 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,596 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,597 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,598 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,599 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,600 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,601 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,602 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,603 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,604 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,605 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 3,606 |
public static String[] read(InputStream input) { String[] value = new String[ input.read_long() ]; for (int i = 0; i < value.length; i++) value [ i ] = input.read_wstring(); return value; } | public static String[] read(InputStream input) { String[] value = new String[ input.read_long() ]; for (int i = 0; i < value.length; i++) value [ i ] = input.read_string(); return value; } | 3,607 |
public Object clone() { SimpleAttributeSet s = new SimpleAttributeSet(); s.tab = (Hashtable) tab.clone(); return s; } | public Object clone() { SimpleAttributeSet s = new SimpleAttributeSet(); s.tab = (Hashtable) tab.clone(); return s; } | 3,610 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY)) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.g... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals(JS... | 3,611 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY)) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.g... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY)) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.g... | 3,612 |
private void getPCFile() { String workingDir = System.getProperty("user.dir"); MyFileChooser pcFileChooser = new MyFileChooser(workingDir); // set the file filters for the file chooser filter = getFilterByDescription(); pcFileChooser.addChoosableFileFilter(filter); int ret = pcFileChoos... | private void getPCFile() { String workingDir = System.getProperty("user.dir"); TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir); // set the file filters for the file chooser filter = getFilterByDescription(); pcFileChooser.addChoosableFileFilter(filter); int ret = p... | 3,613 |
protected Option(String longName, String description) { this.longName = longName; this.description = description; } | protected Option(char shortName, String description) { this.longName = longName; this.description = description; } | 3,614 |
protected Option(String longName, String description) { this.longName = longName; this.description = description; } | protected Option(String longName, String description) { if (shortName == 0) throw new IllegalArgumentException("short name must not be \\0"); this.shortName = shortName; this.description = description; } | 3,615 |
private VmAbstractHeap allocHeap(int size, boolean addToHeapList) { //Unsafe.debug("allocHeap"); final Address start = helper.allocateBlock(size); //final Address start = MemoryBlockManager.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSiz... | private VmAbstractHeap allocHeap(int size, boolean addToHeapList) { //Unsafe.debug("allocHeap"); final Address start = helper.allocateBlock(size); //final Address start = MemoryBlockManager.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSiz... | 3,616 |
protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | 3,617 |
protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | 3,618 |
protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | 3,619 |
public long getFreeMemory() { long size = bootHeap.getFreeSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getFreeSize(); h = h.getNext(); } //size += (Unsafe.addressToLong(heapEnd) - Unsafe.addressToLong(nextHeapPtr)); size += MemoryBlockManager.getFreeMemory(); return size; } | public long getFreeMemory() { long size = bootHeap.getFreeSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getFreeSize(); h = h.getNext(); } //size += (Unsafe.addressToLong(heapEnd) - Unsafe.addressToLong(nextHeapPtr)); size += MemoryBlockManager.getFreeMemory(); return size; } | 3,620 |
public long getTotalMemory() { long size = bootHeap.getSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getSize(); h = h.getNext(); } //size += (Unsafe.addressToLong(heapEnd) - Unsafe.addressToLong(nextHeapPtr)); size += MemoryBlockManager.getFreeMemory(); return size; } | public long getTotalMemory() { long size = bootHeap.getSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getSize(); h = h.getNext(); } //size += (Unsafe.addressToLong(heapEnd) - Unsafe.addressToLong(nextHeapPtr)); size += MemoryBlockManager.getFreeMemory(); return size; } | 3,621 |
protected void initialize() { // Set the basic fields final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final int slotSize = arch.getReferenceSize(); // Initialize the boot heap. bootHeap.initialize(helper.getBootHeapStart(), helper.getBootHeapEnd(), slotSize); // Initialize the first n... | protected void initialize() { // Set the basic fields final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final int slotSize = arch.getReferenceSize(); // Initialize the boot heap. bootHeap.initialize(helper.getBootHeapStart(), helper.getBootHeapEnd(), slotSize); // Initialize the first n... | 3,622 |
public final boolean isObject(Address ptr) { long addrL = helper.addressToLong(ptr); if ((addrL & (ObjectLayout.OBJECT_ALIGN - 1)) != 0) { // The object is not at an object aligned boundary return false; } if (bootHeap.isObject(ptr)) { return true; } VmAbstractHeap heap = firstHeap; while (heap != null) {... | public final boolean isObject(Address ptr) { long addrL = helper.addressToLong(ptr); if ((addrL & (ObjectLayout.OBJECT_ALIGN - 1)) != 0) { // The object is not at an object aligned boundary return false; } if (bootHeap.isObject(ptr)) { return true; } VmAbstractHeap heap = firstHeap; while (heap != null) {... | 3,623 |
final void resetCurrentHeap() { this.currentHeap = this.firstHeap; // Recalculate the trigger size triggerSize = (int)Math.min(Integer.MAX_VALUE, getFreeMemory() * GC_TRIGGER_PERCENTAGE); } | final void resetCurrentHeap() { this.currentHeap = this.firstHeap; // Recalculate the trigger size triggerSize = (int)Math.min(Integer.MAX_VALUE, getFreeMemory() * GC_TRIGGER_PERCENTAGE); } | 3,624 |
public FatLfnDirEntry(AbstractDirectory dir, byte[] src, int offset) { super(dir, src, offset); } | public FatLfnDirEntry(AbstractDirectory dir, byte[] src, int offset) { super(dir, src, offset); } | 3,626 |
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final I... | public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final I... | 3,627 |
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final I... | public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final I... | 3,628 |
public void createFileInstance(String fileName) throws FileNotFoundException { fout = new DataOutputStream(new FileOutputStream(fileName)); } | public void createFileInstance(String fileName) throws FileNotFoundException { try { fout = new DataOutputStream(new FileOutputStream(fileName)); } catch (Exception e) { System.out.println("create file " + e.getMessage()); } } | 3,629 |
public void setFCWs(int fcw1, int fcw2) { this.fcw1 = fcw1; this.fcw2 = fcw2; if ((fcw1 & 0x88) == 0x88) { cursorProg = fcw2; } } | public void setFCWs(int fcw1, int fcw2) { this.fcw1 = fcw1; this.fcw2 = fcw2; if (fcw1 == 0x88) { cursorProg = fcw2; } } | 3,634 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | 3,635 |
public void actionPerformed(ActionEvent e) { Object obj = filelist.getSelectedValue(); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject(obj .toString()); if (filechooser.isTraversable(f)) filechooser.... | public void actionPerformed(ActionEvent e) { Object obj = filelist.getSelectedValue(); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject(obj .toString()); if (filechooser.isTraversable(f) && filechooser.ge... | 3,636 |
public Dimension getPreferredSize(JComponent c) { JToolTip tip = (JToolTip) c; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = tip.getInsets(); FontMetrics fm = tip.getToolkit().getFontMetrics(tip.getFont()); SwingUtilities.layoutCo... | public Dimension getPreferredSize(JComponent c) { JToolTip tip = (JToolTip) c; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = tip.getInsets(); FontMetrics fm = tip.getToolkit().getFontMetrics(tip.getFont()); SwingUtilities.layoutCo... | 3,637 |
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetric... | public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetric... | 3,638 |
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetric... | public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetric... | 3,639 |
public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType<?> resolvedType = classRef.getResolvedVmClass(); final Label curInstrLabel = getCurInstrLabel(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or ... | public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType<?> resolvedType = classRef.getResolvedVmClass(); final Label curInstrLabel = getCurInstrLabel(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or ... | 3,640 |
public Container getFocusCycleRootAncestor() { // as defined. return null; } | public final Container getFocusCycleRootAncestor() { // as defined. return null; } | 3,642 |
public String getWarningString() { // as defined. return null; } | public final String getWarningString() { // as defined. return null; } | 3,643 |
public boolean isFocusCycleRoot() { return true; } | public final boolean isFocusCycleRoot() { return true; } | 3,644 |
public ThreadDeath() { super(); } | public ThreadDeath() { } | 3,645 |
public ARPHeader(SocketBuffer skbuf) throws SocketException { hwtype = skbuf.get16(0); ptype = skbuf.get16(2); //int hwsize = skbuf.get(4); //int psize = skbuf.get(5); op = skbuf.get16(6); if ((hwtype == 1) && (ptype == EthernetConstants.ETH_P_IP)) { srcHWAddress = new EthernetAddress(skbuf, 8); srcPAddress... | public ARPHeader(SocketBuffer skbuf) throws SocketException { hwtype = skbuf.get16(0); ptype = skbuf.get16(2); //int hwsize = skbuf.get(4); //int psize = skbuf.get(5); op = skbuf.get16(6); if ((hwtype == 1) && (ptype == EthernetConstants.ETH_P_IP)) { srcHWAddress = new EthernetAddress(skbuf, 8); srcPAddress... | 3,646 |
public InvalidLayerException(String message) { super(message); } | public InvalidLayerException(String message) { super(message); } | 3,647 |
private boolean isAvailable(KeyEvent ke) { boolean exists = true; if (isLinux) { exists = mapper.isKeyStrokeDefined(ke,isAltGr); } else { exists = mapper.isKeyStrokeDefined(ke); } System.out.println(" key is available " + !exists); if (exists) { Object[] ar... | private boolean isAvailable(KeyEvent ke) { boolean exists = true; if (isLinux) { exists = mapper.isKeyStrokeDefined(ke,isAltGr); } else { exists = mapper.isKeyStrokeDefined(ke); } if (exists) { Object[] args = {getKeyDescription(ke)}; int result = ... | 3,648 |
DataFlavor(){ mimeType = null; representationClass = null; humanPresentableName = null;} | DataFlavor(){ mimeType = null; representationClass = null; humanPresentableName = null;} | 3,649 |
public Object clone () throws CloneNotSupportedException{ try { return(super.clone()); } catch(Exception e) { return(null); }} | public Object clone () throws CloneNotSupportedException{ try { return super.clone(); } catch(Exception e) { return(null); }} | 3,650 |
public Object clone () throws CloneNotSupportedException{ try { return(super.clone()); } catch(Exception e) { return(null); }} | public Object clone () throws CloneNotSupportedException{ try { return(super.clone()); } catch(Exception e) { return null; } }} | 3,651 |
public Object clone () throws CloneNotSupportedException{ try { return(super.clone()); } catch(Exception e) { return(null); }} | public Object clone () throws CloneNotSupportedException{ try { return(super.clone()); catch(Exception e) { return(null); | 3,652 |
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);} | equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);} | 3,653 |
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);} | equals(DataFlavor flavor){ if (flavor == null) return false; if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return false; if (!this.representationClass.equals(flavor.representationClass)) return false; return(true);} | 3,654 |
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);} | equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);} | 3,655 |
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);} | equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);} | 3,656 |
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);} | equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);} | 3,657 |
getDefaultRepresentationClass(){ return(java.io.InputStream.class);} | getDefaultRepresentationClass(){ return(java.io.InputStream.class);} | 3,658 |
getDefaultRepresentationClassAsString(){ return(getDefaultRepresentationClass().getName());} | getDefaultRepresentationClassAsString(){ return(getDefaultRepresentationClass().getName());} | 3,659 |
getHumanPresentableName(){ return(humanPresentableName);} | getHumanPresentableName(){ return(humanPresentableName);} | 3,660 |
getMimeType(){ return(mimeType);} | getMimeType(){ return(mimeType);} | 3,661 |
getParameter(String paramName, String mimeString){ int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));} | getParameter(String paramName, String mimeString){ int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));} | 3,662 |
getPrimaryType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(mimeType); return(mimeType.substring(0, idx));} | getPrimaryType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(mimeType); return(mimeType.substring(0, idx));} | 3,663 |
public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th... | public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return (Reader)transferable.getTransferData(th... | 3,664 |
public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th... | public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th... | 3,665 |
public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th... | public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th... | 3,666 |
getRepresentationClass(){ return(representationClass);} | getRepresentationClass(){ return(representationClass);} | 3,667 |
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(... | getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(... | 3,668 |
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(... | getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { String classname = getParameter("class", mimeString); if (classname != null) { return String classname = getParameter("class", mimeString);... | 3,669 |
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(... | getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException("classname: " + e.getM... | 3,670 |
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(... | getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(... | 3,671 |
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(... | getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(... | 3,672 |
getSubType(){ int start = mimeType.indexOf("/"); if (start == -1) return ""; int end = mimeType.indexOf(";", start + 1); if (end == -1) return mimeType.substring(start + 1); else return mimeType.substring(start + 1, end);} | getSubType(){ int start = mimeType.indexOf("/"); if (start == -1) return ""; int end = mimeType.indexOf(";", start + 1); if (end == -1) return mimeType.substring(start + 1); else return mimeType.substring(start + 1, end);} | 3,673 |
getTextPlainUnicodeFlavor(){ return(plainTextFlavor);} | getTextPlainUnicodeFlavor(){ return(plainTextFlavor);} | 3,674 |
hashCode(){ return(mimeType.toLowerCase().hashCode()^representationClass.hashCode());} | hashCode(){ return(mimeType.toLowerCase().hashCode()^representationClass.hashCode());} | 3,675 |
isFlavorJavaFileListType(){ if (this.mimeType.equals(javaFileListFlavor.mimeType) && this.representationClass.equals(javaFileListFlavor.representationClass)) return(true); return(false);} | isFlavorJavaFileListType(){ if (this.mimeType.equals(javaFileListFlavor.mimeType) && this.representationClass.equals(javaFileListFlavor.representationClass)) return(true); return(false);} | 3,676 |
isFlavorJavaFileListType(){ if (this.mimeType.equals(javaFileListFlavor.mimeType) && this.representationClass.equals(javaFileListFlavor.representationClass)) return(true); return(false);} | isFlavorJavaFileListType(){ if (this.mimeType.equals(javaFileListFlavor.mimeType) && this.representationClass.equals(javaFileListFlavor.representationClass)) return(true); return(false);} | 3,677 |
isFlavorRemoteObjectType(){ return(mimeType.startsWith(javaRemoteObjectMimeType));} | isFlavorRemoteObjectType(){ return(mimeType.startsWith(javaRemoteObjectMimeType));} | 3,678 |
isFlavorSerializedObjectType(){ // FIXME: What is the diff between this and isMimeTypeSerializedObject? return(mimeType.startsWith(javaSerializedObjectMimeType));} | isFlavorSerializedObjectType(){ // FIXME: What is the diff between this and isMimeTypeSerializedObject? return(mimeType.startsWith(javaSerializedObjectMimeType));} | 3,679 |
isMimeTypeEqual(String mimeType){ String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); i = mimeType.indexOf(";"); if (i != -1) mimeType = mimeType.substring(0, i); return mime.equals(mimeType);} | isMimeTypeEqual(String mimeType){ String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); i = mimeType.indexOf(";"); if (i != -1) mimeType = mimeType.substring(0, i); return mime.equals(mimeType);} | 3,680 |
isMimeTypeSerializedObject(){ return(mimeType.startsWith(javaSerializedObjectMimeType));} | isMimeTypeSerializedObject(){ return(mimeType.startsWith(javaSerializedObjectMimeType));} | 3,681 |
isRepresentationClassInputStream(){ return(representationClass.getName().equals("java.io.InputStream"));} | isRepresentationClassInputStream(){ return(representationClass.getName().equals("java.io.InputStream"));} | 3,682 |
isRepresentationClassRemote(){ return Remote.class.isAssignableFrom (representationClass);} | isRepresentationClassRemote(){ return Remote.class.isAssignableFrom (representationClass);} | 3,683 |
isRepresentationClassSerializable(){ Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return(true); ++i; } return(false);} | isRepresentationClassSerializable(){ Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return(true); ++i; } return(false);} | 3,684 |
isRepresentationClassSerializable(){ Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return(true); ++i; } return(false);} | isRepresentationClassSerializable(){ Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return true; ++i; } return(false);} | 3,685 |
isRepresentationClassSerializable(){ Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return(true); ++i; } return(false);} | isRepresentationClassSerializable(){ Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return(true); ++i; } return(false);} | 3,686 |
match(DataFlavor dataFlavor){ // XXX - How is this different from equals? return(equals(dataFlavor));} | match(DataFlavor dataFlavor){ // XXX - How is this different from equals? return(equals(dataFlavor));} | 3,687 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.