bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void repaint(long tm, int x, int y, int width, int height); | void repaint(long tm, int x, int y, int width, int height); | 17,515 |
public void requestFocus(); | void requestFocus(); | 17,516 |
public Window getFocusedWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusedWindow(); } catch (SecurityException e) { return null; } } | public Window getFocusedWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusedWindow(); } catch (SecurityException e) { return null; } } | 17,517 |
public Window getFocusedWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusedWindow(); } catch (SecurityException e) { return null; } } | public Window getFocusedWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusedWindow(); } catch (SecurityException e) { return null; } } | 17,518 |
public void setBackground(Color color); | void setBackground(Color color); | 17,519 |
public void setCursor(Cursor cursor); | void setCursor(Cursor cursor); | 17,520 |
public void setFont(Font font); | void setFont(Font font); | 17,521 |
public void setForeground(Color color); | void setForeground(Color color); | 17,522 |
public String getString(int where, int len) throws BadLocationException { return buf.toString(); } | public String getString(int where, int len) throws BadLocationException { return buf.substring(where, where+len); } | 17,523 |
private static final VmType decodeClass( byte[] data, int offset, int class_image_length, boolean rejectNatives, AbstractVmClassLoader clc, SelectorMap selectorMap, VmStatics statics) throws ClassFormatError { if (data == null) { throw new ClassFormatError("ClassDecoder.decodeClass: data==null"); } final ... | private static final VmType decodeClass( byte[] data, int offset, int class_image_length, boolean rejectNatives, VmClassLoader clc, SelectorMap selectorMap, VmStatics statics) throws ClassFormatError { if (data == null) { throw new ClassFormatError("ClassDecoder.decodeClass: data==null"); } final int[] po... | 17,524 |
public ClassFormatError(String s) { super(s); } | public ClassFormatError() { super(s); } | 17,525 |
public ClassFormatError(String s) { super(s); } | public ClassFormatError(String s) { } | 17,526 |
public VmInterfaceClass( String name, String superClassName, AbstractVmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags); if (!superClassName.equals("java.lang.Object")) { throw new RuntimeException("Not a valid interface class, super class must be java.lang.Object"); } ... | public VmInterfaceClass( String name, String superClassName, VmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags); if (!superClassName.equals("java.lang.Object")) { throw new RuntimeException("Not a valid interface class, super class must be java.lang.Object"); } if (isAr... | 17,527 |
public VmNormalClass( String name, String superClassName, AbstractVmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags); testClassType(); } | public VmNormalClass( String name, String superClassName, AbstractVmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags); testClassType(); } | 17,528 |
protected void setObjectSize(int objectSize) { if (this.objectSize == 0) { this.objectSize = objectSize; } else { throw new IllegalArgumentException("Cannot overwrite object size"); } } | protected final void setObjectSize(int objectSize) { if (this.objectSize == 0) { this.objectSize = objectSize; } else { throw new IllegalArgumentException("Cannot overwrite object size"); } } | 17,529 |
public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return count > 0; } | public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return count > 0; } | 17,530 |
public int getModifiers() { return vmField.getModifiers(); } | public int getModifiers() { return vmField.getModifiers(); } | 17,531 |
public GLightweightPeer(Component comp) { this.comp = comp; } | public GLightweightPeer() { this.comp = comp; } | 17,532 |
public GLightweightPeer(Component comp) { this.comp = comp; } | public GLightweightPeer(Component comp) { } | 17,533 |
public int checkImage(Image img, int width, int height, ImageObserver o) { return comp.getToolkit().checkImage(img, width, height, o); } | public int checkImage(Image img, int width, int height, ImageObserver o) { return -1; } | 17,534 |
public Image createImage(ImageProducer prod) { return comp.getToolkit().createImage(prod); } | public Image createImage(ImageProducer prod) { return null; } | 17,535 |
public ColorModel getColorModel () { return comp.getColorModel (); } | public ColorModel getColorModel () { return null; } | 17,536 |
public FontMetrics getFontMetrics(Font f) { return comp.getToolkit().getFontMetrics(f); } | public FontMetrics getFontMetrics(Font f) { return null; } | 17,537 |
public Insets getInsets() { if (containerInsets == null) containerInsets = new Insets (0,0,0,0); return containerInsets; } | public Insets getInsets() { if (containerInsets == null) containerInsets = new Insets (0,0,0,0); return containerInsets; } | 17,538 |
public Point getLocationOnScreen() { Point parentLocation = comp.getParent().getLocationOnScreen(); return new Point (parentLocation.x + comp.getX(), parentLocation.y + comp.getY()); } | public Point getLocationOnScreen() { Point parentLocation = comp.getParent().getLocationOnScreen(); return new Point (parentLocation.x + comp.getX(), parentLocation.y + comp.getY()); } | 17,539 |
public Dimension getMinimumSize() { return new Dimension(comp.getWidth(), comp.getHeight()); } | public Dimension getMinimumSize() { return minimumSize(); } | 17,540 |
public Dimension getPreferredSize() { return new Dimension(comp.getWidth(), comp.getHeight()); } | public Dimension getPreferredSize() { return preferredSize(); } | 17,541 |
public Insets insets() { return getInsets (); } | public Insets insets() { return null; } | 17,542 |
public boolean isReparentSupported() { return false; } | public boolean isReparentSupported() { return true; } | 17,543 |
public Dimension minimumSize() { return getMinimumSize(); } | public Dimension minimumSize() { return new Dimension(0, 0); } | 17,544 |
public Dimension preferredSize() { return getPreferredSize(); } | public Dimension preferredSize() { return new Dimension(0, 0); } | 17,545 |
public boolean prepareImage(Image img, int width, int height, ImageObserver o) { return comp.getToolkit().prepareImage(img, width, height, o); } | public boolean prepareImage(Image img, int width, int height, ImageObserver o) { return false; } | 17,546 |
public void repaint(long tm, int x, int y, int width, int height) { Component p = comp.getParent(); if (p != null) p.repaint(tm, x + comp.getX(), y + comp.getY(), width, height); } | public void repaint(long tm, int x, int y, int width, int height) { Component p = comp.getParent(); if (p != null) p.repaint(tm, x + comp.getX(), y + comp.getY(), width, height); } | 17,547 |
public void setCursor(Cursor cursor) { Component p = comp.getParent(); while (p != null && p.isLightweight()) p = p.getParent(); if (p != null) { // Don't actually change the cursor of the component // otherwise other childs inherit this cursor. ComponentPeer peer = p.getPeer(); if (peer != null) ... | public void setCursor(Cursor cursor) { Component p = comp.getParent(); while (p != null && p.isLightweight()) p = p.getParent(); if (p != null) { // Don't actually change the cursor of the component // otherwise other childs inherit this cursor. ComponentPeer peer = p.getPeer(); if (peer != null) ... | 17,548 |
public void disable(); | void disable(); | 17,549 |
public void enable(); | void enable(); | 17,550 |
public ColorModel getColorModel(); | ColorModel getColorModel(); | 17,551 |
public void hide(); | void hide(); | 17,552 |
public Dimension minimumSize(); | Dimension minimumSize(); | 17,553 |
public Dimension preferredSize(); | Dimension preferredSize(); | 17,554 |
public void print(Graphics graphics); | void print(Graphics graphics); | 17,555 |
public void reshape(int x, int y, int width, int height); | void reshape(int x, int y, int width, int height); | 17,556 |
public void show(); | void show(); | 17,557 |
public Box(int axis) { setLayout(new BoxLayout(this, axis)); } | public Box(int axis) { super.setLayout(new BoxLayout(this, axis)); } | 17,558 |
public static Box createHorizontalBox() { return null; } | public static Box createHorizontalBox() { return new Box(BoxLayout.X_AXIS); } | 17,559 |
public static Component createRigidArea(Dimension d) { return null; } | public static Component createRigidArea(Dimension d) { return new Filler(d, d, d); } | 17,560 |
public static Box createVerticalBox() { return null; } | public static Box createVerticalBox() { return new Box(BoxLayout.Y_AXIS); } | 17,561 |
public GeneralNames(final byte[] encoded) throws IOException { names = new LinkedList(); DERReader der = new DERReader(encoded); DERValue nameList = der.read(); if (!nameList.isConstructed()) throw new IOException("malformed GeneralNames"); int len = 0; int i = 0; while (len < nameList.getL... | public GeneralNames(final byte[] encoded) throws IOException { names = new LinkedList(); DERReader der = new DERReader(encoded); DERValue nameList = der.read(); if (!nameList.isConstructed()) throw new IOException("malformed GeneralNames"); int len = 0; int i = 0; while (len < nameList.getL... | 17,562 |
public void dumpData(PrintStream out) { initBlock.dumpData(out); rxRing.dumpData(out); txRing.dumpData(out); } | public void dumpData(Logger out) { initBlock.dumpData(out); rxRing.dumpData(out); txRing.dumpData(out); } | 17,564 |
public byte[] lastUpdate(byte[] in, int offset, int length) throws TransformerException { byte[] result = update(in, offset, length); byte[] rest = lastUpdate(); if (rest.length > 0) { byte[] newResult = new byte[result.length + rest.length]; System.arraycopy(result, 0, newResult, 0,... | public byte[] lastUpdate(byte[] in, int offset, int length) throws TransformerException { byte[] result = update(in, offset, length); byte[] rest = lastUpdate(); if (rest.length > 0) { byte[] newResult = new byte[result.length + rest.length]; System.arraycopy(result, 0, newResult, 0,... | 17,566 |
public byte[] lastUpdate(byte[] in, int offset, int length) throws TransformerException { byte[] result = update(in, offset, length); byte[] rest = lastUpdate(); if (rest.length > 0) { byte[] newResult = new byte[result.length + rest.length]; System.arraycopy(result, 0, newResult, 0,... | public byte[] lastUpdate(byte[] in, int offset, int length) throws TransformerException { byte[] result = update(in, offset, length); byte[] rest = lastUpdate(); if (rest.length > 0) { byte[] newResult = new byte[result.length + rest.length]; System.arraycopy(result, 0, newResult, 0,... | 17,567 |
public byte[] update(byte[] in, int offset, int length) throws TransformerException { if (wired == null) { throw new IllegalStateException(); } byte[] result = (wired == Direction.FORWARD ? forwardUpdate(in, offset, length) ... | public byte[] update(byte[] in, int offset, int length) throws TransformerException { if (wired == null) { throw new IllegalStateException(); } byte[] result = (wired == Direction.FORWARD ? forwardUpdate(in, offset, length) ... | 17,568 |
public byte[] update(byte[] in, int offset, int length) throws TransformerException { if (wired == null) { throw new IllegalStateException(); } byte[] result = (wired == Direction.FORWARD ? forwardUpdate(in, offset, length) ... | public byte[] update(byte[] in, int offset, int length) throws TransformerException { if (wired == null) { throw new IllegalStateException(); } byte[] result = (wired == Direction.FORWARD ? forwardUpdate(in, offset, length) ... | 17,569 |
public BigDecimal (BigInteger num) { this (num, 0); } | public BigDecimal (int val) { this (num, 0); } | 17,570 |
public BigDecimal (BigInteger num) { this (num, 0); } | public BigDecimal (BigInteger num) { this.intVal = BigInteger.valueOf(val); this.scale = 0; } | 17,571 |
public BigDecimal add (BigDecimal val) { // For addition, need to line up decimals. Note that the movePointRight // method cannot be used for this as it might return a BigDecimal with // scale == 0 instead of the scale we need. BigInteger op1 = intVal; BigInteger op2 = val.intVal; if (scale < val... | public BigDecimal add (BigDecimal val) { // For addition, need to line up decimals. Note that the movePointRight // method cannot be used for this as it might return a BigDecimal with // scale == 0 instead of the scale we need. BigInteger op1 = intVal; BigInteger op2 = val.intVal; if (scale < val... | 17,572 |
public BigDecimal add (BigDecimal val) { // For addition, need to line up decimals. Note that the movePointRight // method cannot be used for this as it might return a BigDecimal with // scale == 0 instead of the scale we need. BigInteger op1 = intVal; BigInteger op2 = val.intVal; if (scale < val... | public BigDecimal add (BigDecimal val) { // For addition, need to line up decimals. Note that the movePointRight // method cannot be used for this as it might return a BigDecimal with // scale == 0 instead of the scale we need. BigInteger op1 = intVal; BigInteger op2 = val.intVal; if (scale < val... | 17,573 |
public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | public int compareTo (Object obj) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | 17,574 |
public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | 17,575 |
public BigDecimal movePointRight (int n) { if (n < 0) return movePointLeft (-n); if (scale >= n) return new BigDecimal (intVal, scale - n); return new BigDecimal (intVal.multiply (BigInteger.valueOf (10).pow (n - scale)), 0); } | public BigDecimal movePointRight (int n) { if (n < 0) return movePointLeft (-n); if (scale >= n) return new BigDecimal (intVal, scale - n); return new BigDecimal (intVal.multiply (BigInteger.TEN.pow (n - scale)), 0); } | 17,576 |
public BigInteger toBigInteger () { return scale == 0 ? intVal : intVal.divide (BigInteger.valueOf (10).pow (scale)); } | public BigInteger toBigInteger () { return scale == 0 ? intVal : intVal.divide (BigInteger.valueOf (10).pow (scale)); } | 17,577 |
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... | 17,578 |
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... | 17,579 |
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... | 17,580 |
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... | 17,581 |
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... | 17,582 |
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... | 17,583 |
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... | 17,584 |
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; } | 17,585 |
public static Double valueOf(String s) { return new Double(parseDouble(s)); } | public static Double valueOf(double val) { return new Double(parseDouble(s)); } | 17,586 |
public static Double valueOf(String s) { return new Double(parseDouble(s)); } | public static Double valueOf(String s) { return new Double(val); } | 17,587 |
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... | 17,588 |
public static synchronized Calendar getInstance(TimeZone zone) { return getInstance(zone, Locale.getDefault()); } | public static synchronized Calendar getInstance() { return getInstance(zone, Locale.getDefault()); } | 17,589 |
public static synchronized Calendar getInstance(TimeZone zone) { return getInstance(zone, Locale.getDefault()); } | public static synchronized Calendar getInstance(TimeZone zone) { return getInstance(TimeZone.getDefault(), Locale.getDefault()); } | 17,590 |
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 } | 17,592 |
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 } | 17,593 |
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 } | 17,596 |
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 } | 17,597 |
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 } | 17,598 |
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; ... | 17,599 |
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; ... | 17,600 |
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; ... | 17,601 |
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... | 17,602 |
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... | 17,603 |
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; } | 17,604 |
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; } | 17,605 |
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(); } | 17,606 |
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(); } | 17,607 |
public void setTimeInMillis(long time) { this.time = time; isTimeSet = true; computeFields(); } | public void setTimeInMillis(long time) { this.time = time; isTimeSet = true; } | 17,608 |
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... | 17,609 |
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... | 17,610 |
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... | 17,614 |
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... | 17,615 |
public abstract void setDirectory(String dir); | void setDirectory (String dir); | 17,616 |
public abstract void setFile(String file); | void setFile (String file); | 17,617 |
public abstract void setFilenameFilter(FilenameFilter ff); | void setFilenameFilter (FilenameFilter ff); | 17,618 |
public final Class getCategory() { return MultipleDocumentHandling.class; } | public Class getCategory() { return MultipleDocumentHandling.class; } | 17,619 |
public final String getName() { return "multiple-document-handling"; } | public String getName() { return "multiple-document-handling"; } | 17,620 |
public abstract BeanInfo[] getAdditionalBeanInfo(); | BeanInfo[] getAdditionalBeanInfo(); | 17,621 |
public abstract BeanDescriptor getBeanDescriptor(); | BeanDescriptor getBeanDescriptor(); | 17,622 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.