bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public String toString () { if (any) { return "*"; } return qName.toString(); } | public String toString () if (any) return "*"; } return qName.toString(); } | 14,754 |
public String toString () { if (any) { return "*"; } return qName.toString(); } | public String toString () { if (any) { return "*"; return qName.toString(); | 14,755 |
final boolean equal(String s1, String s2) { return (((s1 == null || s1.length() == 0) && (s2 == null || s2.length() == 0)) || s1 != null && s1.equals(s2)); } | static boolean equal(String s1, String s2) { return (((s1 == null || s1.length() == 0) && (s2 == null || s2.length() == 0)) || s1 != null && s1.equals(s2)); } | 14,756 |
public MimeTypeMapper() { ; } | public MimeTypeMapper() { } | 14,757 |
public String getContentTypeFor(String filename) { int index = filename.lastIndexOf("."); if (index != -1) { if (index == filename.length()) return ("application/octet-stream"); else filename = filename.substring(index + 1); } String type = (String) mime_types.get(filename); if (type == null) ... | public String getContentTypeFor(String filename) { int index = filename.lastIndexOf("."); if (index != -1) { if (index == filename.length()) return "application/octet-stream"; else filename = filename.substring(index + 1); } String type = (String) mime_types.get(filename); if (type == null) r... | 14,758 |
public String getContentTypeFor(String filename) { int index = filename.lastIndexOf("."); if (index != -1) { if (index == filename.length()) return ("application/octet-stream"); else filename = filename.substring(index + 1); } String type = (String) mime_types.get(filename); if (type == null) ... | public String getContentTypeFor(String filename) { int index = filename.lastIndexOf("."); if (index != -1) { if (index == filename.length()) return ("application/octet-stream"); else filename = filename.substring(index + 1); } String type = (String) mime_types.get(filename); if (type == null) ... | 14,759 |
public static SelectorProvider provider () { if (pr == null) { pr = new SelectorProviderImpl (); } return pr; } | public static synchronized SelectorProvider provider() { if (pr == null) { pr = new SelectorProviderImpl (); } return pr; } | 14,760 |
public static SelectorProvider provider () { if (pr == null) { pr = new SelectorProviderImpl (); } return pr; } | public static SelectorProvider provider () { if (systemDefaultProvider == null) { pr = new SelectorProviderImpl (); } return pr; } | 14,761 |
public static SelectorProvider provider () { if (pr == null) { pr = new SelectorProviderImpl (); } return pr; } | public static SelectorProvider provider () { if (pr == null) { String propertyValue = System.getProperty("java.nio.channels.spi.SelectorProvider"); if (propertyValue == null || propertyValue.equals("")) systemDefaultProvider = new SelectorProviderImpl(); else { try { systemDefaultProvider = (Selector... | 14,762 |
public static SelectorProvider provider () { if (pr == null) { pr = new SelectorProviderImpl (); } return pr; } | public static SelectorProvider provider () { if (pr == null) { pr = new SelectorProviderImpl (); } return systemDefaultProvider; } | 14,763 |
FileResource(FileURLLoader loader, String name, File file) { super(loader, name); this.file = file; } | FileResource(FileURLLoader loader, File file) { super(loader, name); this.file = file; } | 14,764 |
FileResource(FileURLLoader loader, String name, File file) { super(loader, name); this.file = file; } | FileResource(FileURLLoader loader, String name, File file) { super(loader); this.file = file; } | 14,765 |
public URL getURL() { try { return new URL(loader.baseURL, name, loader.classloader.getURLStreamHandler("file")); } catch (MalformedURLException e) { InternalError ie = new InternalError(); ie.initCause(e); throw ie; } } | public URL getURL() { try { return new URL(loader.baseURL, name, loader.classloader.getURLStreamHandler("file")); } catch (MalformedURLException e) { InternalError ie = new InternalError(); ie.initCause(e); throw ie; } } | 14,766 |
Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists() && !file.isDirectory()) return new FileResource(this, file.getPath(), file); } catch (IOException e) { // Fall through... } return null; } | Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists() && !file.isDirectory()) return new FileResource(this, file); } catch (IOException e) { // Fall through... } return null; } | 14,767 |
JarURLResource(JarURLLoader loader, String name, JarEntry entry) { super(loader, name); this.entry = entry; } | JarURLResource(JarURLLoader loader, String name, JarEntry entry) { super(loader); this.entry = entry; } | 14,768 |
RemoteResource(RemoteURLLoader loader, String name, URL url, InputStream stream, int length) { super(loader, name); this.url = url; this.stream = stream; this.length = length; } | RemoteResource(RemoteURLLoader loader, String name, URL url, InputStream stream, int length) { super(loader); this.url = url; this.stream = stream; this.length = length; } | 14,770 |
Resource(URLLoader loader, String name) { this.loader = loader; this.name = name; } | Resource(URLLoader loader) { this.loader = loader; this.name = name; } | 14,771 |
Resource(URLLoader loader, String name) { this.loader = loader; this.name = name; } | Resource(URLLoader loader, String name) { this.loader = loader; } | 14,772 |
private void addURLs(URL[] newUrls) { for (int i = 0; i < newUrls.length; i++) addURL(newUrls[i]); } | private void addURLs(URL[] newUrls) { for (int i = 0; i < newUrls.length; i++) { urls.add(newUrls[i]); addURLImpl(newUrls[i]); } } | 14,773 |
private DragWindow() { super(owner); } | DragWindow() { super(owner); } | 14,774 |
public Superblock(byte src[]) throws FileSystemException { data = new byte[src.length]; System.arraycopy(src, 0, data, 0, src.length); //check the magic :) if(getMagic() != 0xEF53) throw new FileSystemException("Not ext2 superblock ("+getMagic()+": bad magic)"); } | public Superblock(byte src[], Ext2FileSystem fs) throws FileSystemException { data = new byte[src.length]; System.arraycopy(src, 0, data, 0, src.length); //check the magic :) if(getMagic() != 0xEF53) throw new FileSystemException("Not ext2 superblock ("+getMagic()+": bad magic)"); } | 14,775 |
protected void handleEmptyTag(TagElement tag) throws javax.swing.text.ChangedCharSetException { } | protected void handleEmptyTag(TagElement tag) throws ChangedCharSetException { } | 14,777 |
public boolean parseMarkupDeclarations(StringBuffer strBuff) throws IOException { return gnu.parseMarkupDeclarations(strBuff); } | protected boolean parseMarkupDeclarations(StringBuffer strBuff) throws IOException { return gnu.parseMarkupDeclarations(strBuff); } | 14,778 |
toString(){ return(getClass().getName() + "[" + paramString () + "]");} | toString(){ String temp = "Ctrl+"; if (usesShift) temp = temp + "Shift+"; temp = temp + keyName; return temp;} | 14,779 |
private Date makeTime(int tag, byte[] value) throws IOException { Calendar calendar = Calendar.getInstance(); String str = makeString(PRINTABLE_STRING, value); // Classpath's SimpleDateFormat does not work for parsing these // types of times, so we do this by hand. String date = str; String tz = ""... | private Date makeTime(int tag, byte[] value) throws IOException { Calendar calendar = Calendar.getInstance(); String str = makeString(PRINTABLE_STRING, value); // Classpath's SimpleDateFormat does not work for parsing these // types of times, so we do this by hand. String date = str; String tz = ""... | 14,780 |
private Date makeTime(int tag, byte[] value) throws IOException { Calendar calendar = Calendar.getInstance(); String str = makeString(PRINTABLE_STRING, value); // Classpath's SimpleDateFormat does not work for parsing these // types of times, so we do this by hand. String date = str; String tz = ""... | private Date makeTime(int tag, byte[] value) throws IOException { Calendar calendar = Calendar.getInstance(); String str = makeString(PRINTABLE_STRING, value); // Classpath's SimpleDateFormat does not work for parsing these // types of times, so we do this by hand. String date = str; String tz = ""... | 14,781 |
private Date makeTime(int tag, byte[] value) throws IOException { Calendar calendar = Calendar.getInstance(); String str = makeString(PRINTABLE_STRING, value); // Classpath's SimpleDateFormat does not work for parsing these // types of times, so we do this by hand. String date = str; String tz = ""... | private Date makeTime(int tag, byte[] value) throws IOException { Calendar calendar = Calendar.getInstance(); String str = makeString(PRINTABLE_STRING, value); // Classpath's SimpleDateFormat does not work for parsing these // types of times, so we do this by hand. String date = str; String tz = ""... | 14,782 |
boolean equals(ListenerRecord rec) { return listener == rec.listener && useCapture == rec.useCapture && type == rec.type; } | public boolean equals(Object o) { return listener == rec.listener && useCapture == rec.useCapture && type == rec.type; } | 14,787 |
public final void addEventListener(String type, EventListener listener, boolean useCapture) { if (listeners == null) { listeners = new ListenerRecord[1]; } else if (nListeners == listeners.length) { ListenerRec... | public final void addEventListener(String type, EventListener listener, boolean useCapture) { if (listeners == null) { listeners = new ListenerRecord[1]; } else if (nListeners == listeners.length) { ListenerRec... | 14,790 |
public final void addEventListener(String type, EventListener listener, boolean useCapture) { if (listeners == null) { listeners = new ListenerRecord[1]; } else if (nListeners == listeners.length) { ListenerRec... | public final void addEventListener(String type, EventListener listener, boolean useCapture) { if (listeners == null) { listeners = new ListenerRecord[1]; } else if (nListeners == listeners.length) { ListenerRec... | 14,791 |
public Object clone() { try { DomNode node = (DomNode) super.clone(); node.parent = null; node.depth = 0; node.index = 0; node.length = 0; node.first = null; node.last = null; node.previous = null; node.next = null; node.re... | public Object clone() { try { DomNode node = (DomNode) super.clone(); node.parent = null; node.depth = 0; node.index = 0; node.length = 0; node.first = null; node.last = null; node.previous = null; node.next = null; node.re... | 14,793 |
public void compact() { if (listeners != null && listeners.length != nListeners) { if (nListeners == 0) { listeners = null; } else { ListenerRecord[] l = new ListenerRecord[nListeners]; System.arraycopy(listeners, 0, l, 0, nListeners);... | public void compact() { if (listeners != null && listeners.length != nListeners) { if (nListeners == 0) { listeners = null; } else { ListenerRecord[] l = new ListenerRecord[nListeners]; System.arraycopy(listeners, 0, l, 0, nListeners);... | 14,794 |
public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | 14,795 |
public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | 14,796 |
public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | public boolean isEqualNode(Node arg) if (this == arg) return true; } if (arg == null) return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespaceUR... | 14,797 |
public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | 14,798 |
public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | 14,799 |
public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | 14,800 |
public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | public boolean isEqualNode(Node arg) { if (this == arg) { return true; if (arg == null) { return false; if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespaceU... | 14,801 |
public final void normalize() { // Suspend readonly status boolean saved = readonly; readonly = false; for (DomNode ctx = first; ctx != null; ctx = ctx.next) { switch (ctx.nodeType) { case TEXT_NODE: while (ctx.next != null && ctx.next.nodeType == TEXT_NODE) ... | public final void normalize() { // Suspend readonly status boolean saved = readonly; readonly = false; for (DomNode ctx = first; ctx != null; ctx = ctx.next) { switch (ctx.nodeType) { case TEXT_NODE: case CDATA_SECTION_NODE: while (ctx.next != null && (ctx.next.no... | 14,802 |
public final void normalize() { // Suspend readonly status boolean saved = readonly; readonly = false; for (DomNode ctx = first; ctx != null; ctx = ctx.next) { switch (ctx.nodeType) { case TEXT_NODE: while (ctx.next != null && ctx.next.nodeType == TEXT_NODE) ... | public final void normalize() { // Suspend readonly status boolean saved = readonly; readonly = false; for (DomNode ctx = first; ctx != null; ctx = ctx.next) { switch (ctx.nodeType) { case TEXT_NODE: while (ctx.next != null && ctx.next.nodeType == TEXT_NODE) ... | 14,803 |
private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? while (iter.hasNext()) { ListenerRecord rec = curre... | 14,805 |
private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... | 14,806 |
private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... | 14,807 |
private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... | 14,808 |
public final void removeEventListener(String type, EventListener listener, boolean useCapture) { for (int i = 0; i < nListeners; i++) { if (listeners[i].listener != listener) { continue; } ... | public final void removeEventListener(String type, EventListener listener, boolean useCapture) { for (int i = 0; i < nListeners; i++) { if (listeners[i].listener != listener) { continue; } ... | 14,810 |
public void trimToSize() { if (listeners != null && listeners.length != nListeners) { ListenerRecord[] newKids = new ListenerRecord[length]; System.arraycopy(listeners, 0, newKids, 0, nListeners); listeners = newKids; } } | public void trimToSize() { if (listeners != null && listeners.length != nListeners) { ListenerRecord[] newKids = new ListenerRecord[length]; System.arraycopy(listeners, 0, newKids, 0, nListeners); listeners = newKids; } } | 14,811 |
public void addAdjustmentListener (AdjustmentListener listener) { AWTEventMulticaster.add (adjustmentListener, listener); } | public void addAdjustmentListener (AdjustmentListener listener) { if (listener == null) return; adjustmentListener = AWTEventMulticaster.add (adjustmentListener, listener); } | 14,812 |
public void removeAdjustmentListener (AdjustmentListener listener) { AWTEventMulticaster.remove (adjustmentListener, listener); } | public void removeAdjustmentListener (AdjustmentListener listener) { if (listener == null) return; adjustmentListener = AWTEventMulticaster.remove (adjustmentListener, listener); } | 14,813 |
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ... | void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ... | 14,814 |
private static final CharsetProvider provider () { return Provider.provider (); } | private static CharsetProvider provider () { return Provider.provider (); } | 14,818 |
TextNode(TemplateNode children, TemplateNode next, boolean disableOutputEscaping) { super(children, next); this.disableOutputEscaping = disableOutputEscaping; } | TextNode(TemplateNode children, TemplateNode next, boolean disableOutputEscaping) { super(children, next); this.disableOutputEscaping = disableOutputEscaping; } | 14,819 |
TextNode(TemplateNode children, TemplateNode next, boolean disableOutputEscaping) { super(children, next); this.disableOutputEscaping = disableOutputEscaping; } | TextNode(TemplateNode children, TemplateNode next, boolean disableOutputEscaping) { this.disableOutputEscaping = disableOutputEscaping; } | 14,820 |
TemplateNode clone(Stylesheet stylesheet) { return new TextNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), disableOutputEscaping); } | TemplateNode clone(Stylesheet stylesheet) { return new TextNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), disableOutputEscaping); } | 14,821 |
private void writeObject(ObjectOutputStream value0) throws IOException { // TODO } | private void writeObject(ObjectOutputStream obj) throws IOException { // TODO } | 14,822 |
public MessageFormat(String pattern) { this(pattern, Locale.getDefault()); } | private MessageFormat () { this(pattern, Locale.getDefault()); } | 14,823 |
public MessageFormat(String pattern) { this(pattern, Locale.getDefault()); } | public MessageFormat(String pattern) { } | 14,824 |
public int getIconHeight() { return 10; } | public int getIconHeight() { return 10; } | 14,825 |
public int getIconWidth() { return 10; } | public int getIconWidth() { return 10; } | 14,826 |
public void paintIcon(Component c, Graphics g, int x, int y) { if (c instanceof AbstractButton) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("CheckBox.highlight"); Color low = def... | public void paintIcon(Component c, Graphics g, int x, int y) { if (c instanceof AbstractButton) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("CheckBox.highlight"); Color low = def... | 14,827 |
public int getIconHeight() { return 12; } | public int getIconHeight() { return 10; } | 14,828 |
public int getIconWidth() { return 12; } | public int getIconWidth() { return 10; } | 14,829 |
public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | 14,830 |
public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | 14,831 |
public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | 14,832 |
public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | 14,833 |
public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | 14,834 |
public NotFoundHolder(NotFound initialValue) { value = initialValue; } | public NotFoundHolder() { value = initialValue; } | 14,835 |
public NotFoundHolder(NotFound initialValue) { value = initialValue; } | public NotFoundHolder(NotFound initialValue) { } | 14,836 |
public RTFParser(InputStream stream, Document doc, int pos) { this(doc, pos); scanner = new RTFScanner(stream); } | private RTFParser(Document doc, int pos) { this(doc, pos); scanner = new RTFScanner(stream); } | 14,837 |
public RTFParser(InputStream stream, Document doc, int pos) { this(doc, pos); scanner = new RTFScanner(stream); } | public RTFParser(InputStream stream, Document doc, int pos) { this(doc, pos); scanner = new RTFScanner(stream); } | 14,838 |
protected void processImageUpdate(BufferedImage image, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateListener) it.next(); listener.imageUpdate... | protected void processImageUpdate(BufferedImage image, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateListener) it.next(); listener.imageUpdate... | 14,846 |
protected void processPassStarted(BufferedImage image, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateListener) it.next(); listene... | protected void processPassStarted(BufferedImage image, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateListener) it.next(); listene... | 14,848 |
protected void processThumbnailPassStarted(BufferedImage thumbnail, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateLi... | protected void processThumbnailPassStarted(BufferedImage thumbnail, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateLi... | 14,854 |
protected void processWarningOccurred(String warning) { Iterator it = warningListeners.iterator(); while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listener.warningOccurred(this, warning); } } | protected void processWarningOccurred(String warning) { if (warning == null) throw new IllegalArgumentException ("null argument"); if (warningListeners != null) { Iterator it = warningListeners.iterator(); while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listene... | 14,858 |
protected void processWarningOccurred(String warning) { Iterator it = warningListeners.iterator(); while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listener.warningOccurred(this, warning); } } | protected void processWarningOccurred(String warning) { Iterator it = warningListeners.iterator(); while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listener.warningOccurred(this, warning); } } | 14,859 |
public void removeAllIIOReadProgressListeners() { progressListeners.clear(); } | public void removeAllIIOReadProgressListeners() { progressListeners = null; } | 14,860 |
public void removeAllIIOReadUpdateListeners() { updateListeners.clear(); } | public void removeAllIIOReadUpdateListeners() { updateListeners = null; } | 14,861 |
public void removeAllIIOReadWarningListeners() { warningListeners.clear(); } | public void removeAllIIOReadWarningListeners() { warningListeners = null; } | 14,862 |
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ... | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ... | 14,868 |
public static Any[] read(InputStream input) { AnySeqHolder h = new AnySeqHolder(); h._read(input); return h.value; } | public static Any[] read(InputStream input) { AnySeqHolder h = new AnySeqHolder(); h._read(input); return h.value; } | 14,869 |
public static void write(OutputStream output, Any[] value) { AnySeqHolder h = new AnySeqHolder(value); h._write(output); } | public static void write(OutputStream output, Any[] value) { AnySeqHolder h = new AnySeqHolder(value); h._write(output); } | 14,870 |
public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList list = new ArrayList(cnt); for (int i = 0; i < cnt; i++) { list.add(exceptions.getException(i).getResolvedVmClass().asClass())... | public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(exceptions.getException(i).getResolvedVmClas... | 14,871 |
public String getName() { return getDeclaringClass().getName(); } | public String getName() { final Class<?> declClass = getDeclaringClass(); return declClass.getName(); } | 14,872 |
public int hashCode() { return getDeclaringClass().getName().hashCode(); } | public int hashCode() { final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode(); } | 14,873 |
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getDeclaringClass().getName()).append('('); Class[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName());... | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getDeclaringClass().getName()).append('('); Class[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName());... | 14,874 |
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getDeclaringClass().getName()).append('('); Class[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName());... | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getDeclaringClass().getName()).append('('); Class[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName());... | 14,875 |
public void mousePressed(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; BasicListUI.this.list.setSelectedIndex(index); } | public void mousePressed(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; BasicListUI.this.list.setSelectedIndex(index); } | 14,878 |
public static Object getData(DataBuffer buffer) { if (buffer instanceof DataBufferByte) return ((DataBufferByte) buffer).getData(); if (buffer instanceof DataBufferShort) return ((DataBufferShort) buffer).getData(); if (buffer instanceof DataBufferUShort) return ((DataBufferUShort) buffer).getData(); ... | public static Object getData(DataBuffer buffer) { if (buffer instanceof DataBufferByte) return ((DataBufferByte) buffer).getData(); if (buffer instanceof DataBufferShort) return ((DataBufferShort) buffer).getData(); if (buffer instanceof DataBufferUShort) return ((DataBufferUShort) buffer).getData(); ... | 14,882 |
public static String format (String pattern, Object arguments[]) { MessageFormat mf = new MessageFormat (pattern); StringBuffer sb = new StringBuffer (); FieldPosition fp = new FieldPosition (NumberFormat.INTEGER_FIELD); return mf.format(arguments, sb, fp).toString(); } | public static String format (String pattern, Object arguments[]) { MessageFormat mf = new MessageFormat (pattern); StringBuffer sb = new StringBuffer (); FieldPosition fp = new FieldPosition (NumberFormat.INTEGER_FIELD); return mf.formatInternal(arguments, sb, fp, null).toString(); } | 14,883 |
private static final int scanFormat (String pat, int index, StringBuffer buffer, Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); int max = pat.length(); // Skip the opening `{'. ++index; // Fetch the argument number. ... | private static final int scanFormat (String pat, int index, StringBuffer buffer, Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); int max = pat.length(); // Skip the opening `{'. ++index; // Fetch the argument number. ... | 14,884 |
private static final int scanFormat (String pat, int index, StringBuffer buffer, Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); int max = pat.length(); // Skip the opening `{'. ++index; // Fetch the argument number. ... | private static final int scanFormat (String pat, int index, StringBuffer buffer, Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); int max = pat.length(); // Skip the opening `{'. ++index; // Fetch the argument number. ... | 14,885 |
private static final int scanString (String pat, int index, StringBuffer buffer) { int max = pat.length(); buffer.setLength(0); for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.charAt(index + 2) == '\'') { buffer.append(pat.charAt(index ... | private static final int scanString (String pat, int index, StringBuffer buffer) { int max = pat.length(); buffer.setLength(0); for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.charAt(index + 2) == '\'') { buffer.append(pat.charAt(index ... | 14,886 |
public void setFormats (Format[] newFormats) { if (newFormats.length < elements.length) throw new IllegalArgumentException (); int len = Math.min(newFormats.length, elements.length); for (int i = 0; i < len; ++i) elements[i].setFormat = newFormats[i]; } | public void setFormats (Format[] newFormats) { if (newFormats.length < elements.length) throw new IllegalArgumentException("Not enough format objects"); int len = Math.min(newFormats.length, elements.length); for (int i = 0; i < len; ++i) elements[i].setFormat = newFormats[i]; } | 14,887 |
protected FramePeer createFrame(Frame target) { if (!isGuiActive()){ //Automatically starts the gui if not yet started. This may be a bad idea. System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); ... | protected FramePeer createFrame(Frame target) { if (!isGuiActive()){ //Automatically starts the gui if not yet started. This may be a bad idea. System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); ... | 14,888 |
protected FramePeer createFrame(Frame target) { if (!isGuiActive()){ //Automatically starts the gui if not yet started. This may be a bad idea. System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); ... | protected FramePeer createFrame(Frame target) { if (!isGuiActive()){ //Automatically starts the gui if not yet started. This may be a bad idea. System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); ... | 14,889 |
protected FramePeer createFrame(Frame target) { if (!isGuiActive()){ //Automatically starts the gui if not yet started. This may be a bad idea. System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); ... | protected FramePeer createFrame(Frame target) { if (!isGuiActive()){ //Automatically starts the gui if not yet started. This may be a bad idea. System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); ... | 14,890 |
public boolean isBorderOpaque() { return false; } | public boolean isBorderOpaque() { return false; } | 14,895 |
public JTabbedPane() { } | public JTabbedPane() { this(SwingConstants.TOP, WRAP_TAB_LAYOUT); } | 14,896 |
public void addTab(String name, Component panel) { addTab(name, null, panel, null); } | public void addTab(String name, Component panel) { addTab(name, null, panel, null); } | 14,897 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.