bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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; } | 6,024 |
public final VmWriteBarrier getWriteBarrier() { return writeBarrier; } | public final VmWriteBarrier getWriteBarrier() { return writeBarrier; } | 6,025 |
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... | 6,026 |
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... | 6,027 |
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... | 6,028 |
public boolean isLowOnMemory() { return lowOnMemory; } | public boolean isLowOnMemory() { return lowOnMemory; } | 6,029 |
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) {... | 6,030 |
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); } | 6,031 |
public void start() { // Create a Heap monitor heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(... | public void start() { // Create a Heap monitor heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(... | 6,032 |
public FatLfnDirEntry(AbstractDirectory dir, byte[] src, int offset) { super(dir, src, offset); } | public FatLfnDirEntry(AbstractDirectory dir, byte[] src, int offset) { super(dir, src, offset); } | 6,034 |
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... | 6,035 |
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... | 6,036 |
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()); } } | 6,037 |
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; } } | 6,044 |
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... | 6,046 |
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.... | 6,047 |
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... | 6,049 |
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... | 6,050 |
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... | publicvoidpaint(Graphicsg,JComponentc){JToolTiptip=(JToolTip)c;Stringtext=tip.getTipText();if(text==null)return;Rectanglevr=newRectangle();vr=SwingUtilities.calculateInnerArea(tip,vr);Rectangleir=newRectangle();Rectangletr=newRectangle();FontMetricsfm=tip.getToolkit().getFontMetrics(tip.getFont());SwingUtilities.layout... | 6,051 |
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... | 6,052 |
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... | 6,053 |
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 ... | 6,054 |
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 ... | 6,055 |
public Container getFocusCycleRootAncestor() { // as defined. return null; } | public final Container getFocusCycleRootAncestor() { // as defined. return null; } | 6,057 |
public String getWarningString() { // as defined. return null; } | public final String getWarningString() { // as defined. return null; } | 6,058 |
public boolean isFocusCycleRoot() { return true; } | public final boolean isFocusCycleRoot() { return true; } | 6,059 |
public ThreadDeath() { super(); } | public ThreadDeath() { super(); } | 6,060 |
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... | 6,061 |
public InvalidLayerException(String message) { super(message); } | public InvalidLayerException(String message) { super(message); } | 6,062 |
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 = JO... | 6,063 |
DataFlavor(){ mimeType = null; representationClass = null; humanPresentableName = null;} | DataFlavor(){ mimeType = null; representationClass = null; humanPresentableName = null;} | 6,064 |
DataFlavor(){ mimeType = null; representationClass = null; humanPresentableName = null;} | DataFlavor(){ mimeType = null; representationClass = null; humanPresentableName = null;} | 6,065 |
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); }} | 6,066 |
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); }} | 6,067 |
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; } }} | 6,068 |
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); }} | 6,069 |
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);} | 6,070 |
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);} | 6,071 |
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);} | 6,072 |
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);} | 6,073 |
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);} | 6,074 |
getDefaultRepresentationClass(){ return(java.io.InputStream.class);} | getDefaultRepresentationClass(){ return(java.io.InputStream.class);} | 6,075 |
getDefaultRepresentationClassAsString(){ return(getDefaultRepresentationClass().getName());} | getDefaultRepresentationClassAsString(){ return(getDefaultRepresentationClass().getName());} | 6,076 |
getHumanPresentableName(){ return(humanPresentableName);} | getHumanPresentableName(){ return(humanPresentableName);} | 6,077 |
getHumanPresentableName(){ return(humanPresentableName);} | getHumanPresentableName(){ return(humanPresentableName);} | 6,078 |
getMimeType(){ return(mimeType);} | getMimeType(){ return(mimeType);} | 6,079 |
getMimeType(){ return(mimeType);} | getMimeType(){ return(mimeType);} | 6,080 |
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));} | 6,081 |
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));} | 6,082 |
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));} | 6,083 |
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... | 6,084 |
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... | 6,085 |
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... | 6,086 |
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... | 6,087 |
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... | 6,088 |
getRepresentationClass(){ return(representationClass);} | getRepresentationClass(){ return(representationClass);} | 6,089 |
getRepresentationClass(){ return(representationClass);} | getRepresentationClass(){ return(representationClass);} | 6,090 |
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(... | 6,091 |
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 tryToLoadClass(classname, classLoader); } ... | 6,092 |
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... | 6,093 |
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(... | 6,094 |
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(... | 6,095 |
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);} | 6,096 |
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);} | 6,097 |
getTextPlainUnicodeFlavor(){ return(plainTextFlavor);} | getTextPlainUnicodeFlavor(){ return(plainTextFlavor);} | 6,098 |
hashCode(){ return(mimeType.toLowerCase().hashCode()^representationClass.hashCode());} | hashCode(){ return(mimeType.toLowerCase().hashCode()^representationClass.hashCode());} | 6,099 |
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);} | 6,100 |
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);} | 6,101 |
isFlavorRemoteObjectType(){ return(mimeType.startsWith(javaRemoteObjectMimeType));} | isFlavorRemoteObjectType(){ return(mimeType.startsWith(javaRemoteObjectMimeType));} | 6,102 |
isFlavorRemoteObjectType(){ return(mimeType.startsWith(javaRemoteObjectMimeType));} | isFlavorRemoteObjectType(){ return(mimeType.startsWith(javaRemoteObjectMimeType));} | 6,103 |
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));} | 6,104 |
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));} | 6,105 |
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);} | 6,106 |
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);} | 6,107 |
isMimeTypeSerializedObject(){ return(mimeType.startsWith(javaSerializedObjectMimeType));} | isMimeTypeSerializedObject(){ return(mimeType.startsWith(javaSerializedObjectMimeType));} | 6,108 |
public boolean isRepresentationClassByteBuffer () { return ByteBuffer.class.isAssignableFrom (representationClass); } | public boolean isRepresentationClassByteBuffer() { return ByteBuffer.class.isAssignableFrom (representationClass); } | 6,109 |
public boolean isRepresentationClassByteBuffer () { return ByteBuffer.class.isAssignableFrom (representationClass); } | public boolean isRepresentationClassByteBuffer () { return ByteBuffer.class.isAssignableFrom(representationClass); } | 6,110 |
public boolean isRepresentationClassCharBuffer () { return CharBuffer.class.isAssignableFrom (representationClass); } | public boolean isRepresentationClassCharBuffer() { return CharBuffer.class.isAssignableFrom (representationClass); } | 6,111 |
public boolean isRepresentationClassCharBuffer () { return CharBuffer.class.isAssignableFrom (representationClass); } | public boolean isRepresentationClassCharBuffer () { return CharBuffer.class.isAssignableFrom(representationClass); } | 6,112 |
isRepresentationClassInputStream(){ return(representationClass.getName().equals("java.io.InputStream"));} | isRepresentationClassInputStream(){ return(representationClass.getName().equals("java.io.InputStream"));} | 6,113 |
public boolean isRepresentationClassReader () { return Reader.class.isAssignableFrom (representationClass); } | public boolean isRepresentationClassReader() { return Reader.class.isAssignableFrom (representationClass); } | 6,114 |
public boolean isRepresentationClassReader () { return Reader.class.isAssignableFrom (representationClass); } | public boolean isRepresentationClassReader () { return Reader.class.isAssignableFrom(representationClass); } | 6,115 |
isRepresentationClassRemote(){ return Remote.class.isAssignableFrom (representationClass);} | isRepresentationClassRemote(){ return Remote.class.isAssignableFrom (representationClass);} | 6,116 |
isRepresentationClassRemote(){ return Remote.class.isAssignableFrom (representationClass);} | isRepresentationClassRemote(){ return Remote.class.isAssignableFrom (representationClass);} | 6,117 |
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);} | 6,118 |
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);} | 6,119 |
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);} | 6,120 |
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));} | 6,121 |
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));} | 6,122 |
normalizeMimeType(String type){ return(type);} | normalizeMimeType(String type){ return(type);} | 6,123 |
normalizeMimeTypeParameter(String name, String value){ return(name + "=" + value);} | normalizeMimeTypeParameter(String name, String value){ return(name + "=" + value);} | 6,124 |
readExternal(ObjectInput stream) throws IOException, ClassNotFoundException{ // FIXME: Implement me} | readExternal(ObjectInput stream) throws IOException, ClassNotFoundException{ // FIXME: Implement me} | 6,125 |
readExternal(ObjectInput stream) throws IOException, ClassNotFoundException{ // FIXME: Implement me} | readExternal(ObjectInput stream) throws IOException, ClassNotFoundException{ // FIXME: Implement me} | 6,126 |
selectBestTextFlavor(DataFlavor[] availableFlavors){ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; // A Reader or String is good. if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df;... | selectBestTextFlavor(DataFlavor[] availableFlavors){ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; // A Reader or String is good. if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df;... | 6,127 |
selectBestTextFlavor(DataFlavor[] availableFlavors){ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; // A Reader or String is good. if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df;... | selectBestTextFlavor(DataFlavor[] availableFlavors){ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; // A Reader or String is good. if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df;... | 6,128 |
selectBestTextFlavor(DataFlavor[] availableFlavors){ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; // A Reader or String is good. if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df;... | selectBestTextFlavor(DataFlavor[] availableFlavors){ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; // A Reader or String is good. if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df;... | 6,129 |
setHumanPresentableName(String humanPresentableName){ this.humanPresentableName = humanPresentableName;} | setHumanPresentableName(String humanPresentableName){ this.humanPresentableName = humanPresentableName;} | 6,130 |
setHumanPresentableName(String humanPresentableName){ this.humanPresentableName = humanPresentableName;} | setHumanPresentableName(String humanPresentableName){ this.humanPresentableName = humanPresentableName;} | 6,131 |
toString(){ return(getClass().getName() + "[representationClass=" + getRepresentationClass().getName() + ",mimeType=" + getMimeType() + ",humanPresentableName=" + getHumanPresentableName() + "]");} | toString(){ return(getClass().getName() + "[representationClass=" + getRepresentationClass().getName() + ",mimeType=" + getMimeType() + ",humanPresentableName=" + getHumanPresentableName() + "]");} | 6,132 |
toString(){ return(getClass().getName() + "[representationClass=" + getRepresentationClass().getName() + ",mimeType=" + getMimeType() + ",humanPresentableName=" + getHumanPresentableName() + "]");} | toString(){ return(getClass().getName() + "[representationClass=" + getRepresentationClass().getName() + ",mimeType=" + getMimeType() + ",humanPresentableName=" + getHumanPresentableName() + "]");} | 6,133 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.