bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected String toExternalForm(URL url) { String protocol; String file; String ref; String authority; protocol = url.getProtocol(); authority = url.getAuthority(); if (authority == null) authority = ""; file = url.getFile(); ref = url.getRef(); // Guess a reasonable size for the str... | protected String toExternalForm(URL url) { String protocol; String file; String ref; String authority; protocol = url.getProtocol(); authority = url.getAuthority(); if (authority == null) authority = ""; file = url.getFile(); ref = url.getRef(); // Guess a reasonable size for the str... | 9,056 |
final static void checkArraySize(int arraylength, int offset, int length) { if ((offset < 0) || (length < 0) || (arraylength < length + offset)) throw new IndexOutOfBoundsException (); } | static final void checkArraySize(int arraylength, int offset, int length) { if ((offset < 0) || (length < 0) || (arraylength < length + offset)) throw new IndexOutOfBoundsException (); } | 9,057 |
public static boolean equals(byte[] a1, byte[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each element if ... | public static boolean equals(boolean[] a1, boolean[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each element ... | 9,058 |
public void update (byte[] buffer) { update(buffer, 0, buffer.length); } | public void update (int bval) { update(buffer, 0, buffer.length); } | 9,059 |
public void update (byte[] buffer) { update(buffer, 0, buffer.length); } | public void update (byte[] buffer) { int s1 = checksum & 0xffff; int s2 = checksum >>> 16; s1 = (s1 + (bval & 0xFF)) % BASE; s2 = (s1 + s2) % BASE; checksum = (s2 << 16) + s1; } | 9,060 |
boolean add(E o); | void add(int index, E o); | 9,061 |
public static QName valueOf(String qNameAsString) { String namespaceUri = "", prefix = null; int start = qNameAsString.indexOf('{'); int end = qNameAsString.indexOf('}'); if (start != -1) { if (end < start) { throw new IllegalArgumentException(qNameAsString); } ... | public static QName valueOf(String qNameAsString) String namespaceUri = "", prefix = null; int start = qNameAsString.indexOf(''); int end = qNameAsString.indexOf('}'); if (start != -1) if (end < start) throw new IllegalArgumentException(qNameAsString); } ... | 9,062 |
public static QName valueOf(String qNameAsString) { String namespaceUri = "", prefix = null; int start = qNameAsString.indexOf('{'); int end = qNameAsString.indexOf('}'); if (start != -1) { if (end < start) { throw new IllegalArgumentException(qNameAsString); } ... | public static QName valueOf(String qNameAsString) { String namespaceUri = "", prefix = null; int start = qNameAsString.indexOf('{'); int end = qNameAsString.indexOf(''); if (start != -1) { if (end < start) { throw new IllegalArgumentException(qNameAsString); ... | 9,063 |
protected ColorModel(int pixel_bits, int[] bits, ColorSpace cspace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) { int bits_sum = 0; for (int i = 0; i < bits.length; i++) { if (bits [i] < 0) throw new IllegalArgumentException (); ... | protected ColorModel(int pixel_bits, int[] bits, ColorSpace cspace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) { int bits_sum = 0; for (int i = 0; i < bits.length; i++) { if (bits [i] < 0) throw new IllegalArgumentException (); ... | 9,064 |
protected ColorModel(int pixel_bits, int[] bits, ColorSpace cspace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) { int bits_sum = 0; for (int i = 0; i < bits.length; i++) { if (bits [i] < 0) throw new IllegalArgumentException (); ... | protected ColorModel(int pixel_bits, int[] bits, ColorSpace cspace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) { int bits_sum = 0; for (int i = 0; i < bits.length; i++) { if (bits [i] < 0) throw new IllegalArgumentException (); ... | 9,065 |
public static WritableRaster createWritableRaster(SampleModel sm, DataBuffer db, Point location) { return new WritableRaster(sm, db, location); } | public static WritableRaster createWritableRaster(SampleModel sm, Point location) { return new WritableRaster(sm, db, location); } | 9,066 |
public static WritableRaster createWritableRaster(SampleModel sm, DataBuffer db, Point location) { return new WritableRaster(sm, db, location); } | public static WritableRaster createWritableRaster(SampleModel sm, DataBuffer db, Point location) { return new WritableRaster(sm, location); } | 9,067 |
public Object yyparse (yyInput yyLex) throws java.io.IOException, yyException { if (yyMax <= 0) yyMax = 256; // initial size int yyState = 0, yyStates[] = new int[yyMax]; // state stack Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack int yyToken = -1; // current input int yyE... | public Object yyparse (yyInput yyLex, Object yydebug) throws java.io.IOException, yyException { if (yyMax <= 0) yyMax = 256; // initial size int yyState = 0, yyStates[] = new int[yyMax]; // state stack Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack int yyToken = -1; // current ... | 9,068 |
public Object yyparse (yyInput yyLex) throws java.io.IOException, yyException { if (yyMax <= 0) yyMax = 256; // initial size int yyState = 0, yyStates[] = new int[yyMax]; // state stack Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack int yyToken = -1; // current input int yyE... | public Object yyparse (yyInput yyLex) throws java.io.IOException, yyException { if (yyMax <= 0) yyMax = 256; // initial size int yyState = 0, yyStates[] = new int[yyMax]; // state stack Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack int yyToken = -1; // current input int yyE... | 9,069 |
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; } ElementAvailableFunction f = new ElementAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len... | public Expr clone(Object context) NamespaceContext n = nsctx; if (context instanceof NamespaceContext) n = (NamespaceContext) context; } ElementAvailableFunction f = new ElementAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; ... | 9,070 |
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; } ElementAvailableFunction f = new ElementAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len... | public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; ElementAvailableFunction f = new ElementAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len;... | 9,071 |
public boolean references(QName var) { for (Iterator i = args.iterator(); i.hasNext(); ) { if (((Expr) i.next()).references(var)) { return true; } } return false; } | public boolean references(QName var) for (Iterator i = args.iterator(); i.hasNext(); ) if (((Expr) i.next()).references(var)) return true; } } return false; } | 9,072 |
public boolean references(QName var) { for (Iterator i = args.iterator(); i.hasNext(); ) { if (((Expr) i.next()).references(var)) { return true; } } return false; } | public boolean references(QName var) { for (Iterator i = args.iterator(); i.hasNext(); ) { if (((Expr) i.next()).references(var)) { return true; return false; | 9,073 |
Oid(int[] components) { this.components = components; relative = false; } | public Oid(String strOid) throws GSSException { this.components = components; relative = false; } | 9,074 |
Oid(int[] components) { this.components = components; relative = false; } | Oid(int[] components) { if (strOid == null) throw new NullPointerException(); this.strOid = strOid; try { StringTokenizer tok = new StringTokenizer(strOid, "."); components = new int[tok.countTokens()]; int i = 0; while (tok.hasMoreTokens() && i < components.length) { components[i++] = Integer.parseInt(tok.nextTo... | 9,075 |
public void read(InputStream in, Document doc, int pos) throws BadLocationException, IOException { } | public void read(InputStream in, Document document, int offset) throws BadLocationException, IOException { } | 9,076 |
public void write(OutputStream out, Document doc, int pos, int len) throws BadLocationException, IOException { } | public void write(OutputStream out, Document document, int offset, int len) throws BadLocationException, IOException { } | 9,078 |
public InputStreamReader(InputStream in) { if (in == null) throw new NullPointerException(); this.in = in; try { encoding = System.getProperty("file.encoding"); // Don't use NIO if avoidable if(EncodingHelper.isISOLatin1(encoding)) { encoding = "ISO8859_1"; maxBytesPerChar = 1f;... | public InputStreamReader(InputStream in) { if (in == null) throw new NullPointerException(); this.in = in; try { encoding = SystemProperties.getProperty("file.encoding"); // Don't use NIO if avoidable if(EncodingHelper.isISOLatin1(encoding)) { encoding = "ISO8859_1"; maxBytesPer... | 9,080 |
public OutputStreamWriter (OutputStream out) { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); } catch(RuntimeExcepti... | public OutputStreamWriter (OutputStream out, String encoding_scheme) throws UnsupportedEncodingException { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper... | 9,081 |
public OutputStreamWriter (OutputStream out) { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); } catch(RuntimeExcepti... | public OutputStreamWriter (OutputStream out) { this.out = out; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); } catch(RuntimeException e) { encode... | 9,082 |
public OutputStreamWriter (OutputStream out) { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); } catch(RuntimeExcepti... | public OutputStreamWriter (OutputStream out) { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); } catch(RuntimeExcepti... | 9,083 |
public OutputStreamWriter (OutputStream out) { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); } catch(RuntimeExcepti... | public OutputStreamWriter (OutputStream out) { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); encoder.onMalformedInput(Coding... | 9,084 |
public OutputStreamWriter (OutputStream out) { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); } catch(RuntimeExcepti... | public OutputStreamWriter (OutputStream out) { this.out = out; outputBuffer = null; try { String encoding = System.getProperty("file.encoding"); Charset cs = Charset.forName(encoding); encoder = cs.newEncoder(); encodingName = EncodingHelper.getOldCanonical(cs.name()); } catch(RuntimeExcepti... | 9,085 |
String define(String uri, String prefix) { while (namespaces.containsValue(prefix)) { // Fabricate new prefix prefix = prefix + "_"; } namespaces.put(uri, prefix); return prefix; } | String define(String uri, String prefix) { if (namespaces.isEmpty()) return prefix; HashMap ctx = (HashMap) namespaces.getFirst(); while (ctx.containsValue(prefix)) { // Fabricate new prefix prefix = prefix + "_"; } namespaces.put(uri, prefix); return prefix; } | 9,086 |
String define(String uri, String prefix) { while (namespaces.containsValue(prefix)) { // Fabricate new prefix prefix = prefix + "_"; } namespaces.put(uri, prefix); return prefix; } | String define(String uri, String prefix) { while (namespaces.containsValue(prefix)) { // Fabricate new prefix prefix = prefix + "_"; } ctx.put(uri, prefix); return prefix; } | 9,087 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException if (out == null) throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean de... | 9,088 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); htmlEncoded = false; String value, prefix; Node children; String uri = node.getNamespac... | 9,089 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); shor... | 9,090 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean d... | 9,091 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,092 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,093 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,094 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,095 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,096 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,097 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,098 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,099 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,100 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,101 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,102 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,103 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,104 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,105 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,106 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,107 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,108 |
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean ... | 9,110 |
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substri... | String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0... | 9,111 |
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substri... | String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substri... | 9,112 |
final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); ... | final byte[] encodeText(String text) throws IOException { encoder.reset(); boolean htmlNeedingEncoding = (mode == Stylesheet.OUTPUT_HTML && !htmlEncoded); if (!encoder.canEncode(text) || htmlNeedingEncoding) { // Check each character StringBuffer buf = new StringBuffer(); int len =... | 9,113 |
final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); ... | final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); ... | 9,114 |
boolean isDefined(String uri) { return XMLConstants.XML_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || namespaces.containsKey(uri); } | boolean isDefined(String uri, String prefix) { return XMLConstants.XML_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || namespaces.containsKey(uri); } | 9,116 |
boolean isDefined(String uri) { return XMLConstants.XML_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || namespaces.containsKey(uri); } | boolean isDefined(String uri) { return XMLConstants.XML_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || namespaces.containsKey(uri); } | 9,117 |
public void setHorizontalScrollBar(JScrollBar h) { if (horizontalScrollBar == h) return; JScrollBar old = horizontalScrollBar; removeNonNull(old); horizontalScrollBar = h; addNonNull(h, JScrollPane.HORIZONTAL_SCROLLBAR); firePropertyChange("horizontalScrollBar", old, h); sync(); if (old ... | public void setHorizontalScrollBar(JScrollBar h) { if (horizontalScrollBar == h) return; JScrollBar old = horizontalScrollBar; removeNonNull(old); horizontalScrollBar = h; addNonNull(h, JScrollPane.HORIZONTAL_SCROLLBAR); firePropertyChange("horizontalScrollBar", old, h); sync(); if (old ... | 9,118 |
public void setVerticalScrollBar(JScrollBar v) { if (verticalScrollBar == v) return; JScrollBar old = verticalScrollBar; removeNonNull(old); verticalScrollBar = v; addNonNull(v, JScrollPane.VERTICAL_SCROLLBAR); firePropertyChange("verticalScrollBar", old, v); sync(); if (old != null)... | public void setVerticalScrollBar(JScrollBar v) { if (verticalScrollBar == v) return; JScrollBar old = verticalScrollBar; removeNonNull(old); verticalScrollBar = v; addNonNull(v, JScrollPane.VERTICAL_SCROLLBAR); firePropertyChange("verticalScrollBar", old, v); sync(); if (old != null)... | 9,120 |
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v, JScrollPane.VIEWPORT); ... | public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v, JScrollPane.VIEWPORT); ... | 9,122 |
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v, JScrollPane.VIEWPORT); ... | public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v, JScrollPane.VIEWPORT); ... | 9,123 |
public Insets getBorderInsets(Component c); | Insets getBorderInsets(Component c); | 9,124 |
public void addAttribute(Object name, Object value); | void addAttribute(Object name, Object value); | 9,125 |
public void addAttributes(AttributeSet attributes); | void addAttributes(AttributeSet attributes); | 9,126 |
public void removeAttribute(Object name); | void removeAttribute(Object name); | 9,127 |
public void removeAttributes(AttributeSet attributes); | void removeAttributes(Enumeration names); | 9,128 |
public void setResolveParent(AttributeSet parent); | void setResolveParent(AttributeSet parent); | 9,129 |
BadLocationException() { } | BadLocationException() { } | 9,130 |
public EventListener[] getListeners(Class c) { int count, f; EventListener[] result; count = getListenerCount(c); result = (EventListener[]) Array.newInstance(c, count); f = 0; for (int i = 0; i < listenerList.length; i += 2) if (listenerList[i] == c) result[f++] = (EventListener) liste... | public EventListener[] getListeners(Class c) { int count, f; EventListener[] result; count = getListenerCount(c); result = (EventListener[]) Array.newInstance(c, count); f = 0; for (int i = listenerList.length - 2; i >= 0; i -= 2) if (listenerList[i] == c) result[f++] = (EventListener) ... | 9,131 |
public InetAddress(byte[] ipaddr, String hostname) { this(ipaddr, hostname, null); } | public InetAddress(byte[] ipaddr, String hostname) { this(ipaddr, hostname, null); } | 9,132 |
public static InetAddress getByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) return getLocalHost(); // First, check to see if it is an IP address. If so, then don't // do a DNS lookup. StringTokenizer s... | public static InetAddress getByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) return getLocalHost(); // First, check to see if it is an IP address. If so, then don't // do a DNS lookup. StringTokenizer s... | 9,133 |
public UnknownHostException(String message) { super(message); } | public UnknownHostException() { super(message); } | 9,134 |
public UnknownHostException(String message) { super(message); } | public UnknownHostException(String message) { } | 9,135 |
Inet6Address(byte[] addr, String host) { super(addr, host, null); this.ipaddress = addr; } | Inet6Address(byte[] addr, String host) { super(addr, host); this.ipaddress = addr; } | 9,136 |
public void layoutContainer(Container parent) { if (isHorizontalIn(parent)) layoutAlgorithm(parent, HORIZONTAL, VERTICAL); else layoutAlgorithm(parent, VERTICAL, HORIZONTAL); } | public void layoutContainer(Container parent) { if (isHorizontalIn(parent)) layoutAlgorithm(parent, HORIZONTAL, VERTICAL); else layoutAlgorithm(parent, VERTICAL, HORIZONTAL); } | 9,137 |
public void layoutContainer(Container parent) { if (isHorizontalIn(parent)) layoutAlgorithm(parent, HORIZONTAL, VERTICAL); else layoutAlgorithm(parent, VERTICAL, HORIZONTAL); } | public void layoutContainer(Container parent) { if (isHorizontalIn(parent)) layoutAlgorithm(parent, HORIZONTAL, VERTICAL); else { SizeRequirements.calculateTiledPositions(height, null, vSizeReqs, vOffsets, vSpans); SizeRequirements.calculateAlignedPositions(width, null, hSizeReqs, hOffsets, hSpans); ... | 9,138 |
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | 9,139 |
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | 9,140 |
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | 9,141 |
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | 9,142 |
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | 9,143 |
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | 9,144 |
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | 9,145 |
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | 9,146 |
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isH... | 9,147 |
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = i... | public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = i... | 9,148 |
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = i... | public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = i... | 9,149 |
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = i... | public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = i... | 9,150 |
public _IDLTypeStub(Delegate delegate) { _set_delegate(delegate); } | public _IDLTypeStub() { _set_delegate(delegate); } | 9,151 |
public _IDLTypeStub(Delegate delegate) { _set_delegate(delegate); } | public _IDLTypeStub(Delegate delegate) { } | 9,152 |
public void setSystemId(String systemID); | public void setSystemId(String systemId); | 9,153 |
public TransformerException(String msg) { super(msg); } | public TransformerException(String msg) { super(msg); } | 9,154 |
public TransformAttribute (AffineTransform transform) { if (transform != null) { this.affineTransform = new AffineTransform (transform); } } | public TransformAttribute (AffineTransform transform) { if (transform == null) { this.affineTransform = new AffineTransform (transform); } } | 9,155 |
public TransformAttribute (AffineTransform transform) { if (transform != null) { this.affineTransform = new AffineTransform (transform); } } | public TransformAttribute (AffineTransform transform) { if (transform != null) { throw new IllegalArgumentException("Null 'transform' not permitted."); } } | 9,156 |
public AffineTransform getTransform () { return affineTransform; } | public AffineTransform getTransform () { return (AffineTransform) affineTransform.clone(); } | 9,158 |
public int getIconHeight() { return 16; } | public int getIconHeight() { return 16 + getAdditionalHeight(); } | 9,159 |
public static Icon getCheckBoxIcon() { return new MetalCheckBoxIcon(); } | public static Icon getCheckBoxIcon() { if (checkBoxIcon == null) checkBoxIcon = new MetalCheckBoxIcon(); return checkBoxIcon; } | 9,160 |
public static Icon getCheckBoxMenuItemIcon() { return new CheckBoxMenuItemIcon(); } | public static Icon getCheckBoxMenuItemIcon() { if (checkBoxMenuItemIcon == null) checkBoxMenuItemIcon = new CheckBoxMenuItemIcon(); return checkBoxMenuItemIcon; } | 9,161 |
public static Icon getFileChooserDetailViewIcon() { return new FileChooserDetailViewIcon(); } | public static Icon getFileChooserDetailViewIcon() { if (fileChooserDetailViewIcon == null) fileChooserDetailViewIcon = new FileChooserDetailViewIcon(); return fileChooserDetailViewIcon; } | 9,162 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.