bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | 27,986 |
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | 27,987 |
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | 27,988 |
public StringBuilder insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; return this; } | public StringBuilder insert(int offset, char[] str, int str_offset, int len) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; retu... | 27,989 |
public StringBuilder insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; return this; } | public StringBuilder insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; return this; } | 27,990 |
public BigInteger abs() { return abs(this); } | private static BigInteger abs(BigInteger x) { return abs(this); } | 27,991 |
public BigInteger abs() { return abs(this); } | public BigInteger abs() { return x.isNegative() ? neg(x) : x; } | 27,992 |
public BigInteger add(BigInteger val) { return add(this, val, 1); } | private static BigInteger add(int x, int y) { return add(this, val, 1); } | 27,993 |
public BigInteger add(BigInteger val) { return add(this, val, 1); } | public BigInteger add(BigInteger val) { return valueOf((long) x + (long) y); } | 27,994 |
public int compareTo(BigInteger val) { return compareTo(this, val); } | private static int compareTo(BigInteger x, BigInteger y) { return compareTo(this, val); } | 27,995 |
public int compareTo(BigInteger val) { return compareTo(this, val); } | public int compareTo(BigInteger val) { if (x.words == null && y.words == null) return x.ival < y.ival ? -1 : x.ival > y.ival ? 1 : 0; boolean x_negative = x.isNegative(); boolean y_negative = y.isNegative(); if (x_negative != y_negative) return x_negative ? -1 : 1; int x_len = x.words == null ? 1 : x.ival; int y_... | 27,996 |
public BigInteger negate() { return neg(this); } | private static boolean negate(int[] dest, int[] src, int len) { return neg(this); } | 27,997 |
public BigInteger negate() { return neg(this); } | public BigInteger negate() { long carry = 1; boolean negative = src[len-1] < 0; for (int i = 0; i < len; i++) { carry += ((long) (~src[i]) & 0xffffffffL); dest[i] = (int) carry; carry >>= 32; } return (negative && dest[len-1] < 0); } | 27,998 |
public static Double valueOf(String s) { return new Double(parseDouble(s)); } | public static Double valueOf(double val) { return new Double(parseDouble(s)); } | 27,999 |
public static Double valueOf(String s) { return new Double(parseDouble(s)); } | public static Double valueOf(String s) { return new Double(val); } | 28,000 |
public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | private static void divide(long x, long y, BigInteger quotient, BigInteger remainder, int rounding_mode) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | 28,001 |
public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | 28,002 |
public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | 28,003 |
public final PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); i... | public final PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); i... | 28,004 |
public void setID(String id) { this.ID = id; } | public void setID(String id) { this.ID = id; } | 28,005 |
public String getID() { return ID; } | public String getID() { return ID; } | 28,006 |
public int getDSTSavings() { return useDaylightTime() ? 3600000 : 0; } | public int getDSTSavings() { return useDaylightTime() ? 3600000 : 0; } | 28,007 |
public abstract int getOffset( int era, int year, int month, int day, int dayOfWeek, int milliseconds); | public abstract int getOffset( int era, int year, int month, int day, int dayOfWeek, int milliseconds); | 28,008 |
public boolean hasSameRules(TimeZone other) { return other.getRawOffset() == getRawOffset(); } | public boolean hasSameRules(TimeZone other) { return other.getRawOffset() == getRawOffset(); } | 28,009 |
public static synchronized Calendar getInstance(TimeZone zone) { return getInstance(zone, Locale.getDefault()); } | public static synchronized Calendar getInstance() { return getInstance(zone, Locale.getDefault()); } | 28,010 |
public static synchronized Calendar getInstance(TimeZone zone) { return getInstance(zone, Locale.getDefault()); } | public static synchronized Calendar getInstance(TimeZone zone) { return getInstance(zone, Locale.getDefault()); } | 28,011 |
public OverlayLayout(Container target) { // TODO } | this.target = target; this.target = target; publicthis.target = target; OverlayLayout(Containerthis.target = target; target)this.target = target; this.target = target; {this.target = target; this.target = target; this.target = target; this.target = target; //this.target = target; TODOthis.target = target; this.target =... | 28,012 |
public void addLayoutComponent(String string, Component component) { // TODO } | public void addLayoutComponent(String string, Component component) { // TODO } | 28,013 |
public float getLayoutAlignmentX(Container target) { return (float) 0.0; // TODO } | public float getLayoutAlignmentX(Container target) { if (target != this.target) throw new AWTError("OverlayLayout can't be shared"); checkTotalRequirements(); return xTotal.alignment; // TODO } | 28,014 |
public float getLayoutAlignmentY(Container target) { return (float) 0.0; // TODO } | public float getLayoutAlignmentY(Container target) { if (target != this.target) throw new AWTError("OverlayLayout can't be shared"); checkTotalRequirements(); return yTotal.alignment; // TODO } | 28,015 |
public void invalidateLayout(Container target) { // TODO } | xChildren = null; yChildren = null; xTotal = null; yTotal = null; offsetsX = null; offsetsY = null; spansX = null; spansY = null; xChildren = null; yChildren = null; xTotal = null; yTotal = null; offsetsX = null; offsetsY = null; spansX = null; spansY = null; publicxChildren = null; yChildren = null; xTotal = null; yTo... | 28,016 |
public void layoutContainer(Container target) { // TODO } | if (target != this.target) throw new AWTError("OverlayLayout can't be shared"); checkLayout(); Component[] children = target.getComponents(); for (int i = 0; i < children.length; i++) children[i].setBounds(offsetsX[i], offsetsY[i], spansX[i], spansY[i]); if (target != this.target) throw new AWTError("OverlayLayout can... | 28,017 |
public Dimension maximumLayoutSize(Container target) { return null; // TODO } | public Dimension maximumLayoutSize(Container target) { if (target != this.target) throw new AWTError("OverlayLayout can't be shared"); checkTotalRequirements(); return new Dimension(xTotal.maximum, yTotal.maximum); // TODO } | 28,018 |
public Dimension minimumLayoutSize(Container target) { return null; // TODO } | public Dimension minimumLayoutSize(Container target) { if (target != this.target) throw new AWTError("OverlayLayout can't be shared"); checkTotalRequirements(); return new Dimension(xTotal.minimum, yTotal.minimum); // TODO } | 28,019 |
public Dimension preferredLayoutSize(Container target) { return null; // TODO } | public Dimension preferredLayoutSize(Container target) { if (target != this.target) throw new AWTError("OverlayLayout can't be shared"); checkTotalRequirements(); return new Dimension(xTotal.preferred, yTotal.preferred); // TODO } | 28,020 |
public void removeLayoutComponent(Component component) { // TODO } | public void removeLayoutComponent(Component component) { // TODO } | 28,021 |
getAlignedSizeRequirements(SizeRequirements[] children) { float minLeft = 0; float minRight = 0; float prefLeft = 0; float prefRight = 0; float maxLeft = 0; float maxRight = 0; for (int i = 0; i < children.length; i++) { float myMinLeft = children[i].minimum * children[i].alignment; ... | getAlignedSizeRequirements(SizeRequirements[] children) { float minLeft = 0; float minRight = 0; float prefLeft = 0; float prefRight = 0; float maxLeft = 0; float maxRight = 0; for (int i = 0; i < children.length; i++) { float myMinLeft = children[i].minimum * children[i].alignment; ... | 28,022 |
getAlignedSizeRequirements(SizeRequirements[] children) { float minLeft = 0; float minRight = 0; float prefLeft = 0; float prefRight = 0; float maxLeft = 0; float maxRight = 0; for (int i = 0; i < children.length; i++) { float myMinLeft = children[i].minimum * children[i].alignment; ... | getAlignedSizeRequirements(SizeRequirements[] children) { float minLeft = 0; float minRight = 0; float prefLeft = 0; float prefRight = 0; float maxLeft = 0; float maxRight = 0; for (int i = 0; i < children.length; i++) { float myMinLeft = children[i].minimum * children[i].alignment; ... | 28,023 |
getAlignedSizeRequirements(SizeRequirements[] children) { float minLeft = 0; float minRight = 0; float prefLeft = 0; float prefRight = 0; float maxLeft = 0; float maxRight = 0; for (int i = 0; i < children.length; i++) { float myMinLeft = children[i].minimum * children[i].alignment; ... | getAlignedSizeRequirements(SizeRequirements[] children) { float minLeft = 0; float minRight = 0; float prefLeft = 0; float prefRight = 0; float maxLeft = 0; float maxRight = 0; for (int i = 0; i < children.length; i++) { float myMinLeft = children[i].minimum * children[i].alignment; ... | 28,024 |
public Deflater(int lvl, boolean nowrap) { if (lvl == DEFAULT_COMPRESSION) lvl = 6; else if (lvl < NO_COMPRESSION || lvl > BEST_COMPRESSION) throw new IllegalArgumentException(); pending = new DeflaterPending(); engine = new DeflaterEngine(pending); this.noHeader = nowrap; setStrategy(DEF... | public Deflater() { if (lvl == DEFAULT_COMPRESSION) lvl = 6; else if (lvl < NO_COMPRESSION || lvl > BEST_COMPRESSION) throw new IllegalArgumentException(); pending = new DeflaterPending(); engine = new DeflaterEngine(pending); this.noHeader = nowrap; setStrategy(DEFAULT_STRATEGY); setL... | 28,025 |
public Deflater(int lvl, boolean nowrap) { if (lvl == DEFAULT_COMPRESSION) lvl = 6; else if (lvl < NO_COMPRESSION || lvl > BEST_COMPRESSION) throw new IllegalArgumentException(); pending = new DeflaterPending(); engine = new DeflaterEngine(pending); this.noHeader = nowrap; setStrategy(DEF... | public Deflater(int lvl, boolean nowrap) { if (lvl == DEFAULT_COMPRESSION) lvl = 6; else if (lvl < NO_COMPRESSION || lvl > BEST_COMPRESSION) throw new IllegalArgumentException(); pending = new DeflaterPending(); engine = new DeflaterEngine(pending); this.noHeader = nowrap; setStrategy(DEF... | 28,026 |
public DeflaterOutputStream(OutputStream out, Deflater defl, int bufsize) { super(out); if (bufsize <= 0) throw new IllegalArgumentException("bufsize <= 0"); buf = new byte[bufsize]; def = defl; } | public DeflaterOutputStream(OutputStream out) { super(out); if (bufsize <= 0) throw new IllegalArgumentException("bufsize <= 0"); buf = new byte[bufsize]; def = defl; } | 28,027 |
public DeflaterOutputStream(OutputStream out, Deflater defl, int bufsize) { super(out); if (bufsize <= 0) throw new IllegalArgumentException("bufsize <= 0"); buf = new byte[bufsize]; def = defl; } | public DeflaterOutputStream(OutputStream out, Deflater defl, int bufsize) { super(out); if (bufsize <= 0) throw new IllegalArgumentException("bufsize <= 0"); buf = new byte[bufsize]; def = defl; } | 28,028 |
public void write(byte[] buf, int off, int len) throws IOException { def.setInput(buf, off, len); deflate(); } | public void write(int bval) throws IOException { def.setInput(buf, off, len); deflate(); } | 28,029 |
public void write(byte[] buf, int off, int len) throws IOException { def.setInput(buf, off, len); deflate(); } | public void write(byte[] buf, int off, int len) throws IOException { def.setInput(buf, off, len); deflate(); } | 28,030 |
public void setTimeInMillis(long time) { this.time = time; isTimeSet = true; computeFields(); } | public void setTimeInMillis(long time) { this.time = time; isTimeSet = true; computeFields(); } | 28,031 |
protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; ResourceBundle rb = getBundle(locale); firstDayOfWeek = ((Integer) rb.getObject("firstDayOfWeek")).intValue(); minimalDaysInFirstWeek = ((Integer) rb.getObject("minimalDaysInFirstWeek")).intValue(); } | protected Calendar() { this.zone = zone; lenient = true; ResourceBundle rb = getBundle(locale); firstDayOfWeek = ((Integer) rb.getObject("firstDayOfWeek")).intValue(); minimalDaysInFirstWeek = ((Integer) rb.getObject("minimalDaysInFirstWeek")).intValue(); } | 28,032 |
protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; ResourceBundle rb = getBundle(locale); firstDayOfWeek = ((Integer) rb.getObject("firstDayOfWeek")).intValue(); minimalDaysInFirstWeek = ((Integer) rb.getObject("minimalDaysInFirstWeek")).intValue(); } | protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; ResourceBundle rb = getBundle(locale); firstDayOfWeek = ((Integer) rb.getObject("firstDayOfWeek")).intValue(); minimalDaysInFirstWeek = ((Integer) rb.getObject("minimalDaysInFirstWeek")).intValue(); } | 28,033 |
public final void set(int year, int month, int date) { isTimeSet = false; fields[YEAR] = year; fields[MONTH] = month; fields[DATE] = date; isSet[YEAR] = isSet[MONTH] = isSet[DATE] = true; isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSe... | public void set(int field, int value) { isTimeSet = false; fields[YEAR] = year; fields[MONTH] = month; fields[DATE] = date; isSet[YEAR] = isSet[MONTH] = isSet[DATE] = true; isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEEK_I... | 28,034 |
public final void set(int year, int month, int date) { isTimeSet = false; fields[YEAR] = year; fields[MONTH] = month; fields[DATE] = date; isSet[YEAR] = isSet[MONTH] = isSet[DATE] = true; isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSe... | public final void set(int year, int month, int date) { isTimeSet = false; fields[YEAR] = year; fields[MONTH] = month; fields[DATE] = date; isSet[YEAR] = isSet[MONTH] = isSet[DATE] = true; isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSe... | 28,035 |
public IndexListParser(JarFile jarfile, URL baseJarURL, URL baseURL) { try { // Parse INDEX.LIST if it exists if (jarfile.getEntry(JAR_INDEX_FILE) != null) { BufferedReader br = new BufferedReader(new InputStreamReader(new URL(baseJarURL, ... | else { clearAll(); } else { clearAll(); } publicelse { clearAll(); } IndexListParser(JarFileelse { clearAll(); } jarfile,else { clearAll(); } URLelse { clearAll(); } baseJarURL,else { clearAll(); } URLelse { clearAll(); } baseURL)else { clearAll(); } else { clearAll(); } {else { clearAll(); } else { clearAl... | 28,037 |
public String getValue(Name name) { return (String) get(name); } | public String getValue(String name) { return (String) get(name); } | 28,038 |
public String getValue(Name name) { return (String) get(name); } | public String getValue(Name name) { return (String) get(new Name(name)); } | 28,039 |
public boolean hasMoreElements() { return hasMoreTokens(); } | public boolean hasMoreElements() { return hasMoreTokens(); } | 28,040 |
public Dimension maximumLayoutSize(Container parent) { synchronized (container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); return new Dimension(xTotal.maximum, yTotal.maximum); } } | public Dimension maximumLayoutSize(Container parent) { synchronized (container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); Insets i = container.getInsets(); return new Dimension(xTotal.maximum + i.left + i.right, yTotal.ma... | 28,042 |
public Dimension minimumLayoutSize(Container parent) { synchronized (container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); return new Dimension(xTotal.minimum, yTotal.minimum); } } | public Dimension minimumLayoutSize(Container parent) { synchronized (container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); Insets i = container.getInsets(); return new Dimension(xTotal.minimum + i.left + i.right, yTotal.mi... | 28,043 |
public abstract void setDirectory(String dir); | public abstract void setDirectory(String dir); | 28,044 |
public abstract void setFile(String file); | public abstract void setFile(String file); | 28,045 |
public abstract void setFilenameFilter(FilenameFilter ff); | public abstract void setFilenameFilter(FilenameFilter ff); | 28,046 |
public final Class getCategory() { return MultipleDocumentHandling.class; } | public Class getCategory() { return MultipleDocumentHandling.class; } | 28,047 |
public final String getName() { return "multiple-document-handling"; } | public String getName() { return "multiple-document-handling"; } | 28,048 |
public abstract BeanInfo[] getAdditionalBeanInfo(); | public abstract BeanInfo[] getAdditionalBeanInfo(); | 28,049 |
public abstract BeanDescriptor getBeanDescriptor(); | public abstract BeanDescriptor getBeanDescriptor(); | 28,050 |
public abstract int getDefaultEventIndex(); | public abstract int getDefaultEventIndex(); | 28,051 |
public abstract int getDefaultPropertyIndex(); | public abstract int getDefaultPropertyIndex(); | 28,052 |
public abstract EventSetDescriptor[] getEventSetDescriptors(); | public abstract EventSetDescriptor[] getEventSetDescriptors(); | 28,053 |
public abstract java.awt.Image getIcon(int iconType); | public abstract java.awt.Image getIcon(int iconType); | 28,054 |
public abstract MethodDescriptor[] getMethodDescriptors(); | public abstract MethodDescriptor[] getMethodDescriptors(); | 28,055 |
public abstract PropertyDescriptor[] getPropertyDescriptors(); | public abstract PropertyDescriptor[] getPropertyDescriptors(); | 28,056 |
public int getResizeWeight(int axis) { return axis = axis == X_AXIS ? 1 : 0; } | public int getResizeWeight(int axis) { return axis == X_AXIS ? 1 : 0; } | 28,057 |
public VariableReference(XPathVariableResolver resolver, String name) { this.resolver = resolver; this.name = name; } | public VariableReference(XPathVariableResolver resolver, QName name) { this.resolver = resolver; this.name = name; } | 28,058 |
public Object evaluate(Node context, int pos, int len) { if (resolver != null) { if (resolver instanceof Bindings) { // Needs context to operate properly return ((Bindings) resolver).get(name, context, pos, len); } QName qname = QName.valueOf(name); ... | public Object evaluate(Node context, int pos, int len) { if (resolver != null) { if (resolver instanceof Bindings) { // Needs context to operate properly return ((Bindings) resolver).get(name, context, pos, len); } QName qname = QName.valueOf(name); ... | 28,059 |
public String toString() { return "$" + name; } | public String toString() { StringBuffer buf = new StringBuffer("$"); String prefix = name.getPrefix(); if (prefix != null && !"".equals(prefix)) { buf.append(prefix); buf.append(':'); } buf.append(name.getLocalPart()); return buf.toString(); } | 28,060 |
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work wíth the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ... | public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work wíth the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ... | 28,061 |
public static <T> int binarySearch(List<? extends T> l, T key, Comparator<? super T> c) { int pos = 0; int low = 0; int hi = l.size() - 1; // We use a linear search with log(n) comparisons using an iterator // if the list is sequential-access. if (isSequential(l)) { ListIterator<T> itr... | public static <T> int binarySearch(List<? extends T> l, T key, Comparator<? super T> c) { int pos = 0; int low = 0; int hi = l.size() - 1; // We use a linear search with log(n) comparisons using an iterator // if the list is sequential-access. if (isSequential(l)) { ListIterator<T> itr... | 28,062 |
public static <T> int binarySearch(List<? extends T> l, T key, Comparator<? super T> c) { int pos = 0; int low = 0; int hi = l.size() - 1; // We use a linear search with log(n) comparisons using an iterator // if the list is sequential-access. if (isSequential(l)) { ListIterator<T> itr... | public static <T> int binarySearch(List<? extends T> l, T key, Comparator<? super T> c) { int pos = 0; int low = 0; int hi = l.size() - 1; // We use a linear search with log(n) comparisons using an iterator // if the list is sequential-access. if (isSequential(l)) { ListIterator<T> itr... | 28,063 |
public void paintImmediately(Rectangle r) { Component root = this.getRootPane(); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(g); g.d... | public void paintImmediately(Rectangle r) { Component root = this.getRootPane(); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(g); g.d... | 28,064 |
public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.TCP_NODELAY, new Boolean(on)); } | public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.TCP_NODELAY, new Boolean(on)); } | 28,065 |
public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.TCP_NODELAY, new Boolean(on)); } | public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.TCP_NODELAY, new Boolean(on)); } | 28,066 |
public InetAddress getInetAddress() { if (impl != null) return impl.getInetAddress(); return null; } | public InetAddress getInetAddress() { if (impl != null) return impl.getInetAddress(); return null; } | 28,067 |
public Collection<V> values() { if (values == null) { // We don't bother overriding many of the optional methods, as doing so // wouldn't provide any significant performance advantage. Collection<V> r = new AbstractCollection<V>() { public int size() { ... | public Collection<V> values() { if (values == null) { // We don't bother overriding many of the optional methods, as doing so // wouldn't provide any significant performance advantage. Collection<V> r = new AbstractCollection<V>() { public int size() { ... | 28,068 |
protected void doResolveMember(AbstractVmClassLoader clc) { final VmType vmClass = getConstClass().getResolvedVmClass(); if (vmClass.isInterface()) { throw new IncompatibleClassChangeError(getClassName() + " must be a class"); } final VmMethod vmMethod = vmClass.getMethod(getName(), getSignature()); if (vmMeth... | protected void doResolveMember(AbstractVmClassLoader clc) { final VmType vmClass = getConstClass().getResolvedVmClass(); if (vmClass.isInterface()) { throw new IncompatibleClassChangeError(getClassName() + " must be a class"); } final VmMethod vmMethod = vmClass.getMethod(getName(), getSignature()); if (vmMeth... | 28,069 |
protected abstract void doResolveMember(AbstractVmClassLoader clc); | protected abstract void doResolveMember(AbstractVmClassLoader clc); | 28,070 |
public NoSuchMethodError(String s) { super(s); } | public NoSuchMethodError(String s) { super(s); } | 28,071 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6... | 28,073 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 28,074 |
protected void startPlugin() throws PluginException { AccessController.doPrivileged(new SetPropertyAction("awt.toolkit", TOOLKIT)); VMImageUtils.setAPI(new VMImageAPIImpl(), this); GraphicsEnvironment.setLocalGraphicsEnvironment(new JNodeGraphicsEnvironment()); } | protected void startPlugin() throws PluginException { AccessController.doPrivileged(new SetPropertyAction("awt.toolkit", TOOLKIT)); VMImageUtils.setAPI(new VMImageAPIImpl(), this); GraphicsEnvironment.setLocalGraphicsEnvironment(new JNodeGraphicsEnvironment()); } | 28,075 |
protected Logger(String name, String resourceBundleName) throws MissingResourceException { this.name = name; this.resourceBundleName = resourceBundleName; if (resourceBundleName == null) resourceBundle = null; else resourceBundle = ResourceBundle.getBundle(resourceBundleName); level = nul... | protected Logger(String name, String resourceBundleName) throws MissingResourceException { this.name = name; this.resourceBundleName = resourceBundleName; if (resourceBundleName == null) resourceBundle = null; else resourceBundle = ResourceBundle.getBundle(resourceBundleName); level = nul... | 28,076 |
public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent")... | public synchronized void setParent(Logger parent) { /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent"); /* An appli... | 28,077 |
public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent")... | public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent")... | 28,078 |
public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent")... | public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "the root logger can only have a null parent")... | 28,079 |
public abstract int read(ByteBuffer dst) throws IOException; | public abstract int read(ByteBuffer dst) throws IOException; | 28,080 |
public abstract int write(ByteBuffer src) throws IOException; | public abstract int write(ByteBuffer src) throws IOException; | 28,081 |
public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration enum = properties.elements(); while(enum.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor)enum.nextElement(); if(defau... | public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration enum = properties.elements(); while(enum.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor)enum.nextElement(); if(defau... | 28,082 |
public String getName() { return name; } | public String getName() { return name; } | 28,084 |
public ExplicitBeanInfo(BeanDescriptor beanDescriptor, BeanInfo[] additionalBeanInfo, PropertyDescriptor[] propertyDescriptors, int defaultPropertyIndex, EventSetDescriptor[] eventSetDescriptors, int defaultEventIndex, ... | public ExplicitBeanInfo(BeanDescriptor beanDescriptor, BeanInfo[] additionalBeanInfo, PropertyDescriptor[] propertyDescriptors, int defaultPropertyIndex, EventSetDescriptor[] eventSetDescriptors, int defaultEventIndex, ... | 28,085 |
public String getPresentationName() { return ""; } // getPresentationName() | public String getPresentationName() { return ""; } // getPresentationName() | 28,086 |
public void redo() throws CannotRedoException { if (canRedo() == false) { throw new CannotRedoException(); } hasBeenDone = true; } // redo() | public void redo() throws CannotRedoException { if (canRedo() == false) { throw new CannotRedoException(); } hasBeenDone = true; } // redo() | 28,087 |
public void undo() throws CannotUndoException { if (canUndo() == false) { throw new CannotUndoException(); } hasBeenDone = false; } // undo() | public void undo() throws CannotUndoException { if (canUndo() == false) { throw new CannotUndoException(); } hasBeenDone = false; } // undo() | 28,088 |
public abstract void setLineIncrement(int inc); | public abstract void setLineIncrement(int inc); | 28,089 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.