bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | publicbyte[]encodePublicKey(PublicKeykey){if(!(keyinstanceofGnuRSAPublicKey)){thrownewIllegalArgumentException("key");}GnuRSAPublicKeyrsaKey=(GnuRSAPublicKey)key;ByteArrayOutputStreambaos=newByteArrayOutputStream();//magicbaos.write(Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0]);baos.write(Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1]);... | 27,760 |
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | publicbyte[]encodePublicKey(PublicKeykey){if(!(keyinstanceofGnuRSAPublicKey)){thrownewIllegalArgumentException("key");}GnuRSAPublicKeyrsaKey=(GnuRSAPublicKey)key;ByteArrayOutputStreambaos=newByteArrayOutputStream();//magicbaos.write(Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0]);baos.write(Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1]);... | 27,761 |
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | publicbyte[]encodePublicKey(PublicKeykey){if(!(keyinstanceofGnuRSAPublicKey)){thrownewIllegalArgumentException("key");}GnuRSAPublicKeyrsaKey=(GnuRSAPublicKey)key;ByteArrayOutputStreambaos=newByteArrayOutputStream();//magicbaos.write(Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0]);baos.write(Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1]);... | 27,762 |
public BigInteger(int signum, byte[] magnitude) { if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; ... | private BigInteger() { if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; } // Magnitude is always... | 27,763 |
public BigInteger(int signum, byte[] magnitude) { if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; ... | public BigInteger(int signum, byte[] magnitude) { if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; ... | 27,764 |
protected void linkNativeSymbols(NativeStream os) throws ClassNotFoundException, UnresolvedObjectRefException { NativeStream.ObjectRef refJava; /* Link VmMethod_compile */ VmType vmMethodClass = loadClass(VmMethod.class); refJava = os.getObjectRef(vmMethodClass.getMethod("recompile", "()V")); os.getObjectRef(new ... | protected void linkNativeSymbols(NativeStream os) throws ClassNotFoundException, UnresolvedObjectRefException { NativeStream.ObjectRef refJava; /* Link VmMethod_compile */ VmType vmMethodClass = loadClass(VmMethod.class); refJava = os.getObjectRef(vmMethodClass.getMethod("recompile", "()V")); os.getObjectRef(new ... | 27,765 |
public final VmMethod getMethod(String name, String signature) { return getMethod(name, signature, false, true, VmMember.calcHashCode( name, signature)); } | public final VmMethod getMethod(String name, String signature) { return getMethod(name, signature, false, true, VmMember.calcHashCode( name, signature)); } | 27,766 |
public final VmField getField(String name) { return getField(name, null); } | public final VmField getField(String name) { return getField(name, null); } | 27,767 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,768 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,769 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,770 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,771 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,772 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,773 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,774 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,775 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,776 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,777 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 27,778 |
public void actionPerformed(ActionEvent ae) { Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (... | public void actionPerformed(ActionEvent ae) { Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (... | 27,779 |
public void actionPerformed(ActionEvent ae) { Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (... | public void actionPerformed(ActionEvent ae) { Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (... | 27,780 |
public void actionPerformed(ActionEvent ae) { Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (... | publicvoidactionPerformed(ActionEventae){Objectsource=ae.getSource();if(sourceinstanceofJEditorPane){JEditorPanepane=((JEditorPane)source);Documentd=pane.getDocument();if(dinstanceofHTMLDocument)insertHTML(pane,(HTMLDocument)d,0,html,0,0,addTag);//FIXME:isthiscorrectparameters?}//FIXME:elsenotimplemented} | 27,781 |
protected void insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) thro... | protected void insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) ... | 27,782 |
protected void insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) thro... | protected void insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) thro... | 27,783 |
protected void insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) { in... | protected void insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) { in... | 27,784 |
protected void activateLink(int pos, JEditorPane editor) { /* This method creates and fires a HyperlinkEvent if the document is an instance of HTMLDocument and the href tag of the link is not null. */ // FIXME: Not implemented. } | protected void activateLink(int pos, JEditorPane editor) { /* This method creates and fires a HyperlinkEvent if the document is an instance of HTMLDocument and the href tag of the link is not null. */ // FIXME: Not implemented. } | 27,785 |
protected void activateLink(int pos, JEditorPane editor) { /* This method creates and fires a HyperlinkEvent if the document is an instance of HTMLDocument and the href tag of the link is not null. */ // FIXME: Not implemented. } | protected void activateLink(int pos, JEditorPane editor) { /* This method creates and fires a HyperlinkEvent if the document is an instance of HTMLDocument and the href tag of the link is not null. */ // FIXME: Not implemented. } | 27,786 |
public void mouseClicked(MouseEvent e) { /* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ // FIXME: Not implemented. } | public void mouseClicked(MouseEvent e) { /* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ // FIXME: Not implemented. } | 27,787 |
public void mouseDragged(MouseEvent e) { /* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ // FIXME: Not implemented. } | public void mouseDragged(MouseEvent e) { /* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ // FIXME: Not implemented. } | 27,788 |
public void mouseMoved(MouseEvent e) { /* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ // FIXME: Not implemented. } | public void mouseMoved(MouseEvent e) { /* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ // FIXME: Not implemented. } | 27,789 |
public HTMLEditorKit() { // Nothing to do here. } | linkController = new LinkController(); autoFormSubmission = true; linkController = new LinkController(); autoFormSubmission = true; publiclinkController = new LinkController(); autoFormSubmission = true; HTMLEditorKit()linkController = new LinkController(); autoFormSubmission = true; linkController = new LinkController... | 27,790 |
public Object clone() { // FIXME: Need to clone all fields return (HTMLEditorKit) super.clone(); } | public Object clone() { // FIXME: Need to clone all fields HTMLEditorKit copy = (HTMLEditorKit) super.clone(); copy.linkController = new LinkController(); return copy; } | 27,791 |
public Document createDefaultDocument() { HTMLDocument document = new HTMLDocument(getStyleSheet()); document.setParser(getParser()); return document; } | public Document createDefaultDocument() { StyleSheet styleSheet = getStyleSheet(); StyleSheet ss = new StyleSheet(); ss.addStyleSheet(styleSheet); HTMLDocument document = new HTMLDocument(ss); document.setParser(getParser()); return document; } | 27,792 |
public void deinstall(JEditorPane c) { super.deinstall(c); c.removeMouseListener(mouseListener); mouseListener = null; editorPane = null; } | public void deinstall(JEditorPane c) { super.deinstall(c); c.removeMouseListener(mouseListener); mouseListener = null; editorPane = null; } | 27,794 |
protected Parser getParser() { if (parser == null) { parser = new GnuParserDelegator(HTML_401Swing.getInstance()); } return parser; } | protected Parser getParser() { if (parser == null) { parser = new GnuParserDelegator(HTML_401F.getInstance()); } return parser; } | 27,795 |
public StyleSheet getStyleSheet() { if (styleSheet == null) { try { styleSheet = new StyleSheet(); InputStream in = getClass().getResourceAsStream(DEFAULT_CSS); InputStreamReader r = new InputStreamReader(in); styleSheet.loadRules(r, null); r.... | public StyleSheet getStyleSheet() { if (styleSheet == null) { try { styleSheet = new StyleSheet(); Class c = HTMLEditorKit.class; InputStream in = c.getResourceAsStream(DEFAULT_CSS); InputStreamReader r = new InputStreamReader(in); styleSheet.loadRules(r,... | 27,796 |
public void install(JEditorPane c) { super.install(c); mouseListener = new LinkController(); c.addMouseListener(mouseListener); editorPane = c; // FIXME: need to set up hyperlinklistener object } | public void install(JEditorPane c) { super.install(c); mouseListener = new LinkController(); c.addMouseListener(mouseListener); editorPane = c; // FIXME: need to set up hyperlinklistener object } | 27,797 |
public void install(JEditorPane c) { super.install(c); mouseListener = new LinkController(); c.addMouseListener(mouseListener); editorPane = c; // FIXME: need to set up hyperlinklistener object } | publicvoidinstall(JEditorPanec){super.install(c);mouseListener=newLinkController();c.addMouseListener(mouseListener);editorPane=c;//FIXME:needtosetuphyperlinklistenerobject} | 27,798 |
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException { if (doc instanceof HTMLDocument) { // FIXME: Not implemented. Use HTMLWriter. out.write(doc.getText(pos, len)); } else super.write(out, doc, pos, len); } | public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException { if (doc instanceof HTMLDocument) { // FIXME: Not implemented. Use HTMLWriter. HTMLWriter writer = new HTMLWriter(out, (HTMLDocument) doc, pos, len); writer.write(); } else if (doc instan... | 27,799 |
void fireHyperlinkUpdate(HyperlinkEvent e) { } | public void fireHyperlinkUpdate(HyperlinkEvent event) { } | 27,802 |
public HyperlinkEvent(Object source, EventType type, URL url, String description, Element element) { super(source); this.type = type; this.url = url; this.description = description; this.element = element; } | public HyperlinkEvent(Object source, EventType type, URL url, String description, Element element) { super(source); this.type = type; this.url = url; this.description = description; this.element = element; } | 27,804 |
public HyperlinkEvent(Object source, EventType type, URL url, String description, Element element) { super(source); this.type = type; this.url = url; this.description = description; this.element = element; } | public HyperlinkEvent(Object source, EventType type, URL url, String description, Element element) { super(source); this.type = type; this.url = url; this.description = description; this.element = element; } | 27,805 |
public HTMLDocument(StyleSheet styles) { this(new GapContent(BUFFER_SIZE_DEFAULT), styles); } | public HTMLDocument() { this(new GapContent(BUFFER_SIZE_DEFAULT), styles); } | 27,806 |
public HTMLDocument(StyleSheet styles) { this(new GapContent(BUFFER_SIZE_DEFAULT), styles); } | public HTMLDocument(StyleSheet styles) { this(null); } | 27,807 |
protected void createInputAttributes(Element element, MutableAttributeSet set) { AttributeSet atts = element.getAttributes(); set.removeAttributes(set); // FIXME: Filter out component, icon and element name attributes. set.addAttributes(atts); } | protected void createInputAttributes(Element element, MutableAttributeSet set) { AttributeSet atts = element.getAttributes(); set.removeAttributes(set); // FIXME: Filter out component, icon and element name attributes. set.addAttributes(atts); } | 27,808 |
protected void createInputAttributes(Element element, MutableAttributeSet set) { AttributeSet atts = element.getAttributes(); set.removeAttributes(set); // FIXME: Filter out component, icon and element name attributes. set.addAttributes(atts); } | protected void createInputAttributes(Element element, MutableAttributeSet set) { AttributeSet atts = element.getAttributes(); set.removeAttributes(set); // FIXME: Filter out component, icon and element name attributes. set.addAttributes(element.getAttributes()); } | 27,809 |
public Action[] getActions() { Action[] actions1 = super.getActions(); Action[] myActions = new Action[] { new BoldAction(), new ItalicAction(), new UnderlineAction() }; return TextAction.augmentList(actions1, myActions); } | public Action[] getActions() { Action[] actions1 = super.getActions(); Action[] myActions = new Action[] { new BoldAction(), new ItalicAction(), new UnderlineAction() }; return TextAction.augmentList(actions1, myActions); } | 27,810 |
public HTMLEditorKit.ParserCallback getReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag) { return new HTMLReader(pos, popDepth, pushDepth, insertTag); } | public HTMLEditorKit.ParserCallback getReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag) { return new HTMLReader(pos, popDepth, pushDepth, insertTag); } | 27,811 |
public HTMLEditorKit.ParserCallback getReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag) { return new HTMLReader(pos, popDepth, pushDepth, insertTag); } | public HTMLEditorKit.ParserCallback getReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag) { return new HTMLReader(pos); } | 27,812 |
public void read(Reader in, Document document, int offset) throws BadLocationException, IOException { BufferedReader reader = new BufferedReader(in); String line; StringBuffer content = new StringBuffer(); while ((line = reader.readLine()) != null) { content.append(line); content.append("\n"); ... | public void read(InputStream in, Document document, int offset) throws BadLocationException, IOException { BufferedReader reader = new BufferedReader(in); String line; StringBuffer content = new StringBuffer(); while ((line = reader.readLine()) != null) { content.append(line); content.append("\n"... | 27,813 |
public void read(Reader in, Document document, int offset) throws BadLocationException, IOException { BufferedReader reader = new BufferedReader(in); String line; StringBuffer content = new StringBuffer(); while ((line = reader.readLine()) != null) { content.append(line); content.append("\n"); ... | public void read(Reader in, Document document, int offset) throws BadLocationException, IOException { BufferedReader reader = new BufferedReader(in); String line; StringBuffer content = new StringBuffer(); while ((line = reader.readLine()) != null) { content.append(line); content.append("\n"); ... | 27,814 |
URL getPage() { return page_url; } | URL getPage() { return page_url; } | 27,815 |
public void write(Writer out, Document document, int offset, int len) throws BadLocationException, IOException { // Throw a BLE if offset is invalid if (offset < 0 || offset > document.getLength()) throw new BadLocationException("Tried to write to invalid location", ... | public void write(Writer out, Document document, int offset, int len) throws BadLocationException, IOException { // Throw a BLE if offset is invalid if (offset < 0 || offset > document.getLength()) throw new BadLocationException("Tried to write to invalid location", ... | 27,816 |
public void write(Writer out, Document document, int offset, int len) throws BadLocationException, IOException { // Throw a BLE if offset is invalid if (offset < 0 || offset > document.getLength()) throw new BadLocationException("Tried to write to invalid location", ... | public void write(Writer out, Document document, int offset, int len) throws BadLocationException, IOException { // Throw a BLE if offset is invalid if (offset < 0 || offset > document.getLength()) throw new BadLocationException("Tried to write to invalid location", ... | 27,817 |
public int getModifiers() { return vmMethod.getModifiers(); } | public int getModifiers() { return vmMethod.getModifiers(); } | 27,820 |
public static boolean isUpperCase(char ch) { return getType(ch) == UPPERCASE_LETTER; } | public static boolean isUpperCase(char ch) { return isUpperCase((int)ch); } | 27,821 |
public PropertyDescriptor( String name, Method readMethod, Method writeMethod) throws IntrospectionException { setName(name); getMethod = readMethod; setMethod = writeMethod; propertyType = checkMethods(getMethod, setMethod); } | public PropertyDescriptor( String name, Method readMethod, Method writeMethod) throws IntrospectionException { setName(name); getMethod = readMethod; setMethod = writeMethod; propertyType = checkMethods(getMethod, setMethod); } | 27,822 |
public PropertyDescriptor( String name, Method readMethod, Method writeMethod) throws IntrospectionException { setName(name); getMethod = readMethod; setMethod = writeMethod; propertyType = checkMethods(getMethod, setMethod); } | public PropertyDescriptor( String name, Method readMethod, Method writeMethod) throws IntrospectionException { setName(name); getMethod = readMethod; setMethod = writeMethod; propertyType = checkMethods(getMethod, setMethod); } | 27,823 |
public IndexedPropertyDescriptor(String name, Method getMethod, Method setMethod, Method getIndex, Method setIndex) throws IntrospectionException { super(name); if (getMethod != null && getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } if (getMethod != n... | public IndexedPropertyDescriptor(String name, Method getMethod, Method setMethod, Method getIndex, Method setIndex) throws IntrospectionException { super(name); if (getMethod != null && getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } if (getMethod != n... | 27,824 |
public IndexedPropertyDescriptor(String name, Method getMethod, Method setMethod, Method getIndex, Method setIndex) throws IntrospectionException { super(name); if (getMethod != null && getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } if (getMethod != n... | public IndexedPropertyDescriptor(String name, Method getMethod, Method setMethod, Method getIndex, Method setIndex) throws IntrospectionException { super(name); if (getMethod != null && getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } if (getMethod != n... | 27,825 |
public IndexedPropertyDescriptor(String name, Method getMethod, Method setMethod, Method getIndex, Method setIndex) throws IntrospectionException { super(name); if (getMethod != null && getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } if (getMethod != n... | public IndexedPropertyDescriptor(String name, Method getMethod, Method setMethod, Method getIndex, Method setIndex) throws IntrospectionException { super(name); if (getMethod != null && getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } if (getMethod != n... | 27,826 |
public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration e = properties.elements(); while (e.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor) e.nextElement(); if(defaultPrope... | public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration e = properties.elements(); while (e.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor) e.nextElement(); if(defaultPrope... | 27,827 |
public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration e = properties.elements(); while (e.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor) e.nextElement(); if(defaultPrope... | public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration e = properties.elements(); while (e.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor) e.nextElement(); if(defaultPrope... | 27,828 |
public SwingWindowPeer(SwingToolkit toolkit, Window window) { super(toolkit, window, new SwingWindow(window)); SwingToolkit.copyAwtProperties(window, jComponent); jComponent.getContentPane().setLayout(new SwingContainerLayout(this)); } | public SwingWindowPeer(SwingToolkit toolkit, Window window) { super(toolkit, window, new SwingWindow(window)); SwingToolkit.copyAwtProperties(window, jComponent); jComponent.getContentPane().setLayout(new SwingContainerLayout(window, this)); } | 27,829 |
public void setSelectedFrame(JInternalFrame frame) { // TODO } // setSelectedFrame() | public void setSelectedFrame(JInternalFrame frame) { // TODO } // setSelectedFrame() | 27,830 |
public final Graphics getGraphics() { return peerComponent.getGraphics(); } | public final Graphics getGraphics() { return super.getGraphics(); } | 27,831 |
public abstract void setIconImage(Image image); | public abstract void setIconImage(Image image); | 27,832 |
public abstract void setMenuBar(MenuBar mb); | public abstract void setMenuBar(MenuBar mb); | 27,833 |
public static TypeCode type() { recordTypeCode r = new recordTypeCode(TCKind.tk_value); return r; } | public static TypeCode type() { RecordTypeCode r = new RecordTypeCode(TCKind.tk_value); return r; } | 27,835 |
public IdFunction(Expr arg) { this.arg = arg; } | IdFunction(List args) { this.arg = arg; } | 27,836 |
public IdFunction(Expr arg) { this.arg = arg; } | public IdFunction(Expr arg) { this((Expr) args.get(0)); } | 27,837 |
public final Class getCategory() { return JobStateReasons.class; } | public Class getCategory() { return JobStateReasons.class; } | 27,838 |
public final String getName() { return "job-state-reasons"; } | public String getName() { return "job-state-reasons"; } | 27,839 |
private final void slowRepeat(int rep_start, int len, int dist) { while (len-- > 0) { window[window_end++] = window[rep_start++]; window_end &= WINDOW_MASK; rep_start &= WINDOW_MASK; } } | private void slowRepeat(int rep_start, int len, int dist) { while (len-- > 0) { window[window_end++] = window[rep_start++]; window_end &= WINDOW_MASK; rep_start &= WINDOW_MASK; } } | 27,840 |
public static Properties getInitProperties() { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); final Properties res = new Properties(); res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http... | publicstaticPropertiesgetInitProperties(){finalStringarch;finalVmvm=Vm.getVm();arch=vm.getArch().getName();finalPropertiesres=newProperties();res.put("java.version","1.1.0");res.put("java.vendor","JNode.org");res.put("java.vendor.url","http://jnode.org");res.put("java.home","/");res.put("java.vm.specification.version",... | 27,841 |
public static void setOut(PrintStream out) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("setIO")); VMSystem.setOut(out); } | public static void setOut(PrintStream out) { SecurityManager sm = SecurityManager.current; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("setIO")); VMSystem.setOut(out); } | 27,843 |
public static void setErr(PrintStream err) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("setIO")); VMSystem.setErr(err); } | public static void setErr(PrintStream err) { SecurityManager sm = SecurityManager.current; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("setIO")); VMSystem.setErr(err); } | 27,844 |
public final Class getCategory() { return JobPriority.class; } | public Class getCategory() { return JobPriority.class; } | 27,845 |
public final String getName() { return "job-priority"; } | public String getName() { return "job-priority"; } | 27,846 |
public static void setCurrentKeyboardFocusManager(KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new AWTPermission("replaceKeyboardFocusManager")); // XXX Need a way to divide this into contexts. current = m == null ? new DefaultKeyboar... | public static void setCurrentKeyboardFocusManager (KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new AWTPermission("replaceKeyboardFocusManager")); // XXX Need a way to divide this into contexts. current = m == null ? new DefaultKeyboa... | 27,847 |
public static void setCurrentKeyboardFocusManager(KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new AWTPermission("replaceKeyboardFocusManager")); // XXX Need a way to divide this into contexts. current = m == null ? new DefaultKeyboar... | public static void setCurrentKeyboardFocusManager(KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkPermission(new AWTPermission("replaceKeyboardFocusManager")); // XXX Need a way to divide this into contexts. current = m == null ? new DefaultKeyboa... | 27,848 |
public static void setCurrentKeyboardFocusManager(KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new AWTPermission("replaceKeyboardFocusManager")); // XXX Need a way to divide this into contexts. current = m == null ? new DefaultKeyboar... | public static void setCurrentKeyboardFocusManager(KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new AWTPermission("replaceKeyboardFocusManager")); // XXX Need a way to divide this into contexts. current = m == null ? new DefaultKeyboar... | 27,849 |
public void addNotify() { if (peer != null) peer = getToolkit().createPopupMenu(this); super.addNotify(); } | public void addNotify() { if (peer != null) peer = getToolkit().createPopupMenu(this); super.addNotify(); } | 27,850 |
public void setEventMask (long mask); | public void setEventMask (long mask); | 27,851 |
public int checkImage(Image img, int width, int height, ImageObserver ob); | int checkImage(Image img, int width, int height, ImageObserver ob); | 27,852 |
public Image createImage(ImageProducer prod); | public Image createImage(ImageProducer prod); | 27,853 |
public abstract Image createImage(ImageProducer producer); | public abstract Image createImage(ImageProducer producer); | 27,854 |
public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | public Image createImage(ImageProducer producer) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | 27,855 |
public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | 27,856 |
public void setEnabled(boolean enabled); | public void setEnabled(boolean enabled); | 27,857 |
public void handleEvent(AWTEvent e); | public void handleEvent(AWTEvent e); | 27,858 |
public FontMetrics getFontMetrics(Font f); | public FontMetrics getFontMetrics(Font f); | 27,859 |
public Graphics getGraphics(); | public Graphics getGraphics(); | 27,860 |
public Point getLocationOnScreen(); | public Point getLocationOnScreen(); | 27,861 |
public Toolkit getToolkit(); | public Toolkit getToolkit(); | 27,862 |
public void setVisible(boolean visible); | public void setVisible(boolean visible); | 27,863 |
public abstract boolean imageUpdate(Image image, int flags, int x, int y, int width, int height); | boolean imageUpdate(Image image, int flags, int x, int y, int width, int height); | 27,864 |
public boolean isFocusTraversable(); | public boolean isFocusTraversable(); | 27,865 |
public Dimension getMinimumSize(); | public Dimension getMinimumSize(); | 27,866 |
public void setBounds(int x, int y, int width, int height); | public void setBounds(int x, int y, int width, int height); | 27,867 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.