bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void update(byte b) { if (md == null) { throw new IllegalStateException(); } md.update(b); } | public void update(byte b) if (md == null) throw new IllegalStateException(); } md.update(b); } | 17,402 |
public void update(byte b) { if (md == null) { throw new IllegalStateException(); } md.update(b); } | public void update(byte b) { if (md == null) { throw new IllegalStateException(); md.update(b); | 17,403 |
public boolean verify(Object sig) { if (md == null || publicKey == null) { throw new IllegalStateException(); } return verifySignature(sig); } | public boolean verify(Object sig) if (md == null || publicKey == null) throw new IllegalStateException(); } return verifySignature(sig); } | 17,404 |
public boolean verify(Object sig) { if (md == null || publicKey == null) { throw new IllegalStateException(); } return verifySignature(sig); } | public boolean verify(Object sig) { if (md == null || publicKey == null) { throw new IllegalStateException(); return verifySignature(sig); | 17,405 |
public ActivationID(Activator activator) { this.activator = activator;} | public ActivationID(Activator activator) { this.activator = activator;} | 17,406 |
public boolean equals(Object obj) { if (obj instanceof ActivationID) { ActivationID that = (ActivationID)obj; if (this.activator.equals(that.activator)) { return (true); } } return (false);} | public boolean equals(Object obj) { if (obj instanceof ActivationID) { ActivationID that = (ActivationID)obj; if (this.activator.equals(that.activator)) { return (true); } } return (false);} | 17,407 |
public int hashCode() { return (activator.hashCode());} | public int hashCode() { return (activator.hashCode());} | 17,408 |
public Object get() throws java.io.IOException, java.lang.ClassNotFoundException{ if(objBytes == null) return null; RMIMarshalledObjectInputStream stream = new RMIMarshalledObjectInputStream(objBytes, locBytes); return stream.readObject();} | public Object get() throws java.io.IOException, java.lang.ClassNotFoundException{ if(objBytes == null) return null; RMIMarshalledObjectInputStream stream = new RMIMarshalledObjectInputStream(objBytes, locBytes); return stream.readObject();} | 17,409 |
public int hashCode() { return (int) (unique ^ time ^ machineId); } | public int hashCode() { return (int) (unique ^ time ^ count); } | 17,410 |
public String toString() { return ("[UID: " + unique + "," + time + "," + count + "]"); } | public String toString() { int max = Character.MAX_RADIX; long lc = (count + Short.MIN_VALUE) & 0xFFFF; return Long.toString(time, max) + ":" + Long.toString(unique, max) + ":" + Long.toString(lc, max); } | 17,411 |
public DefaultFormatter() { commitsOnValidEdit = true; overwriteMode = true; allowsInvalid = true; } | public DefaultFormatter() { commitsOnValidEdit = false; overwriteMode = true; allowsInvalid = true; } | 17,412 |
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | public PrivateKey decodePrivateKey(byte[] k) // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) throw new IllegalArgumen... | 17,413 |
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 17,414 |
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | public PublicKey decodePublicKey(byte[] k) // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) throw new IllegalArgumentExcep... | 17,415 |
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 17,416 |
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 17,417 |
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA... | 17,418 |
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... | 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... | 17,419 |
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... | 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_PUBL... | 17,420 |
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 ... | 17,421 |
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) ... | 17,422 |
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) ... | 17,423 |
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) ... | 17,424 |
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) ... | 17,425 |
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) ... | 17,426 |
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) ... | 17,427 |
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) ... | 17,428 |
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) ... | 17,429 |
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) ... | 17,430 |
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) ... | 17,431 |
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) ... | 17,432 |
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, (... | 17,433 |
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, (... | 17,434 |
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) ... | 17,435 |
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... | 17,437 |
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; } | 17,442 |
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; } | 17,443 |
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; } | 17,445 |
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; } | 17,446 |
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,... | 17,447 |
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 } | 17,448 |
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 insta... | 17,449 |
void fireHyperlinkUpdate(HyperlinkEvent e) { } | public void fireHyperlinkUpdate(HyperlinkEvent event) { } | 17,452 |
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; } | 17,454 |
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; } | 17,455 |
public HTMLDocument(StyleSheet styles) { this(new GapContent(BUFFER_SIZE_DEFAULT), styles); } | public HTMLDocument() { this(new GapContent(BUFFER_SIZE_DEFAULT), styles); } | 17,456 |
public HTMLDocument(StyleSheet styles) { this(new GapContent(BUFFER_SIZE_DEFAULT), styles); } | public HTMLDocument(StyleSheet styles) { this(null); } | 17,457 |
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); } | 17,458 |
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()); } | 17,459 |
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); } | 17,460 |
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"... | 17,461 |
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"); ... | 17,462 |
URL getPage() { return page_url; } | URL getPage() { return page_url; } | 17,463 |
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", ... | 17,464 |
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", ... | 17,465 |
public int getModifiers() { return vmMethod.getModifiers(); } | public int getModifiers() { return vmMethod.getModifiers(); } | 17,468 |
public static boolean isUpperCase(char ch) { return getType(ch) == UPPERCASE_LETTER; } | public static boolean isUpperCase(char ch) { return isUpperCase((int)ch); } | 17,469 |
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); } | 17,470 |
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); } | 17,471 |
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, Class beanClass) throws IntrospectionException { super(name); if (getMethod != null && getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } if (getMethod != null && setMethod.getParameterTypes().length != 1) { ... | 17,472 |
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... | 17,473 |
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... | 17,474 |
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... | 17,475 |
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... | 17,476 |
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)); } | 17,477 |
public void setSelectedFrame(JInternalFrame frame) { // TODO } // setSelectedFrame() | public void setSelectedFrame(JInternalFrame frame) { // TODO } // setSelectedFrame() | 17,478 |
public final Graphics getGraphics() { return peerComponent.getGraphics(); } | public final Graphics getGraphics() { return super.getGraphics(); } | 17,479 |
public abstract void setIconImage(Image image); | void setIconImage(Image image); | 17,480 |
public abstract void setMenuBar(MenuBar mb); | void setMenuBar(MenuBar mb); | 17,481 |
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; } | 17,483 |
public IdFunction(Expr arg) { this.arg = arg; } | IdFunction(List args) { this.arg = arg; } | 17,484 |
public IdFunction(Expr arg) { this.arg = arg; } | public IdFunction(Expr arg) { this((Expr) args.get(0)); } | 17,485 |
public final Class getCategory() { return JobStateReasons.class; } | public Class getCategory() { return JobStateReasons.class; } | 17,486 |
public final String getName() { return "job-state-reasons"; } | public String getName() { return "job-state-reasons"; } | 17,487 |
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; } } | 17,488 |
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); } | 17,490 |
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); } | 17,491 |
public final Class getCategory() { return JobPriority.class; } | public Class getCategory() { return JobPriority.class; } | 17,492 |
public final String getName() { return "job-priority"; } | public String getName() { return "job-priority"; } | 17,493 |
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... | 17,494 |
public void addNotify() { if (peer != null) peer = getToolkit().createPopupMenu(this); super.addNotify(); } | public void addNotify() { if (peer != null) peer = getToolkit().createPopupMenu(this); super.addNotify(); } | 17,495 |
public void setEventMask (long mask); | void setEventMask (long mask); | 17,496 |
public int checkImage(Image img, int width, int height, ImageObserver ob); | int checkImage(Image img, int width, int height, ImageObserver ob); | 17,497 |
public Image createImage(ImageProducer prod); | Image createImage(ImageProducer prod); | 17,498 |
public abstract Image createImage(ImageProducer producer); | public abstract Image createImage(String filename); | 17,499 |
public void setEnabled(boolean enabled); | void setEnabled(boolean enabled); | 17,500 |
public void handleEvent(AWTEvent e); | void handleEvent(AWTEvent e); | 17,501 |
public FontMetrics getFontMetrics(Font f); | FontMetrics getFontMetrics(Font f); | 17,502 |
public Graphics getGraphics(); | Graphics getGraphics(); | 17,503 |
public Point getLocationOnScreen(); | Point getLocationOnScreen(); | 17,504 |
public Toolkit getToolkit(); | Toolkit getToolkit(); | 17,505 |
public void setVisible(boolean visible); | void setVisible(boolean visible); | 17,506 |
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); | 17,507 |
public boolean isFocusTraversable(); | boolean isFocusTraversable(); | 17,508 |
public Dimension getMinimumSize(); | Dimension getMinimumSize(); | 17,509 |
public void setBounds(int x, int y, int width, int height); | void setBounds(int x, int y, int width, int height); | 17,510 |
public void paint(Graphics graphics); | void paint(Graphics graphics); | 17,511 |
public Dimension getPreferredSize(); | Dimension getPreferredSize(); | 17,512 |
public boolean prepareImage(Image img, int width, int height, ImageObserver ob); | boolean prepareImage(Image img, int width, int height, ImageObserver ob); | 17,513 |
public void dispose(); | void dispose(); | 17,514 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.