bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static float getSpaceAbove(AttributeSet a) { if (a.isDefined(SpaceAbove)) return ((Float)a.getAttribute(SpaceAbove)).floatValue(); else return 0.f; }
public static float getSpaceAbove(AttributeSet a) { if (a.isDefined(SpaceAbove)) return ((Float)a.getAttribute(SpaceAbove)).floatValue(); else return 0.f; }
18,752
public static float getSpaceBelow(AttributeSet a) { if (a.isDefined(SpaceBelow)) return ((Float)a.getAttribute(SpaceBelow)).floatValue(); else return 0.f; }
public static float getSpaceBelow(AttributeSet a) { if (a.isDefined(SpaceBelow)) return ((Float)a.getAttribute(SpaceBelow)).floatValue(); else return 0.f; }
18,753
public static float getSpaceBelow(AttributeSet a) { if (a.isDefined(SpaceBelow)) return ((Float)a.getAttribute(SpaceBelow)).floatValue(); else return 0.f; }
public static float getSpaceBelow(AttributeSet a) { if (a.isDefined(SpaceBelow)) return ((Float)a.getAttribute(SpaceBelow)).floatValue(); else return 0.0f; }
18,754
public static javax.swing.text.TabSet getTabSet(AttributeSet a) { if (a.isDefined(StyleConstants.TabSet)) return (javax.swing.text.TabSet) a.getAttribute(StyleConstants.TabSet); else return (javax.swing.text.TabSet) null; }
public static javax.swing.text.TabSet getTabSet(AttributeSet a) { return (javax.swing.text.TabSet) a.getAttribute(StyleConstants.TabSet); else return (javax.swing.text.TabSet) null; }
18,755
public static javax.swing.text.TabSet getTabSet(AttributeSet a) { if (a.isDefined(StyleConstants.TabSet)) return (javax.swing.text.TabSet) a.getAttribute(StyleConstants.TabSet); else return (javax.swing.text.TabSet) null; }
public static javax.swing.text.TabSet getTabSet(AttributeSet a) { if (a.isDefined(StyleConstants.TabSet)) return (javax.swing.text.TabSet) a.getAttribute(StyleConstants.TabSet); else return (javax.swing.text.TabSet) null; }
18,756
public static boolean isBold(AttributeSet a) { if (a.isDefined(Bold)) return ((Boolean) a.getAttribute(Bold)).booleanValue(); else return false; }
public static boolean isBold(AttributeSet a) { if (a.isDefined(Bold)) return ((Boolean) a.getAttribute(Bold)).booleanValue(); else return false; }
18,757
public static boolean isItalic(AttributeSet a) { if (a.isDefined(Italic)) return ((Boolean) a.getAttribute(Italic)).booleanValue(); else return false; }
public static boolean isItalic(AttributeSet a) { if (a.isDefined(Italic)) return ((Boolean) a.getAttribute(Italic)).booleanValue(); else return false; }
18,758
public static boolean isStrikeThrough(AttributeSet a) { if (a.isDefined(StrikeThrough)) return ((Boolean) a.getAttribute(StrikeThrough)).booleanValue(); else return false; }
public static boolean isStrikeThrough(AttributeSet a) { if (a.isDefined(StrikeThrough)) return ((Boolean) a.getAttribute(StrikeThrough)).booleanValue(); else return false; }
18,759
public static boolean isSubscript(AttributeSet a) { if (a.isDefined(Subscript)) return ((Boolean) a.getAttribute(Subscript)).booleanValue(); else return false; }
public static boolean isSubscript(AttributeSet a) { if (a.isDefined(Subscript)) return ((Boolean) a.getAttribute(Subscript)).booleanValue(); else return false; }
18,760
public static boolean isSuperscript(AttributeSet a) { if (a.isDefined(Superscript)) return ((Boolean) a.getAttribute(Superscript)).booleanValue(); else return false; }
public static boolean isSuperscript(AttributeSet a) { if (a.isDefined(Superscript)) return ((Boolean) a.getAttribute(Superscript)).booleanValue(); else return false; }
18,761
public static boolean isUnderline(AttributeSet a) { if (a.isDefined(Underline)) return ((Boolean) a.getAttribute(Underline)).booleanValue(); else return false; }
public static boolean isUnderline(AttributeSet a) { if (a.isDefined(Underline)) return ((Boolean) a.getAttribute(Underline)).booleanValue(); else return false; }
18,762
public static void setBackground(MutableAttributeSet a, Color fg) { a.addAttribute(Background, fg); }
public static void setBackground(MutableAttributeSet a, Color bg) { a.addAttribute(Background, fg); }
18,763
public static void setBackground(MutableAttributeSet a, Color fg) { a.addAttribute(Background, fg); }
public static void setBackground(MutableAttributeSet a, Color fg) { a.addAttribute(Background, bg); }
18,764
public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else...
public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) vsb = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else if (key == RO...
18,765
public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else...
public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) hsb = (JScrollBar) component; else if (key == ROW_...
18,766
public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else...
public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else...
18,767
public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else...
public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else...
18,768
public JViewport getColumnHeader() { return columnHeader; }
public JViewport getColumnHeader() { return columnHeader; }
18,769
public JScrollBar getHorizontalScrollBar() { return horizontalScrollBar; }
public JScrollBar getHorizontalScrollBar() { return horizontalScrollBar; }
18,770
public int getHorizontalScrollBarPolicy() { return horizontalScrollBarPolicy; }
public int getHorizontalScrollBarPolicy() { return horizontalScrollBarPolicy; }
18,771
public JViewport getRowHeader() { return rowHeader; }
public JViewport getRowHeader() { return rowHeader; }
18,772
public JScrollBar getVerticalScrollBar() { return verticalScrollBar; }
public JScrollBar getVerticalScrollBar() { return verticalScrollBar; }
18,773
public int getVerticalScrollBarPolicy() { return verticalScrollBarPolicy; }
public int getVerticalScrollBarPolicy() { return verticalScrollBarPolicy; }
18,774
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,775
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,776
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,777
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,778
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,779
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,780
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,781
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,782
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,783
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v...
18,784
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
18,785
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
18,786
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
18,787
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
18,788
public Dimension preferredLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension preferredLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
18,789
public Dimension preferredLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension preferredLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
18,790
public Dimension preferredLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension preferredLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
18,791
public Dimension preferredLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension preferredLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
18,792
public void removeLayoutComponent(Component component) { if (component == viewport) viewport = null; else if (component == verticalScrollBar) verticalScrollBar = null; else if (component == horizontalScrollBar) horizontalScrollBar = null; else if (component == rowHeader) rowHeader = nu...
public void removeLayoutComponent(Component component) { if (component == viewport) viewport = null; else if (component == verticalScrollBar) verticalScrollBar = null; else if (component == horizontalScrollBar) horizontalScrollBar = null; else if (component == rowHeader) rowHeader = nu...
18,793
public void setHorizontalScrollBarPolicy(int policy) { horizontalScrollBarPolicy = policy; }
public void setHorizontalScrollBarPolicy(int policy) { horizontalScrollBarPolicy = policy; }
18,794
public void setVerticalScrollBarPolicy(int policy) { verticalScrollBarPolicy = policy; }
public void setVerticalScrollBarPolicy(int policy) { verticalScrollBarPolicy = policy; }
18,795
DTD getDTD() { return dtd; }
DTD getDTD() { return super.dtd; }
18,796
public PublicKey decodePublicKey(byte[] input) { log.entering(this.getClass().getName(), "decodePublicKey()", input); if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI =...
public PublicKey decodePublicKey(byte[] input) { log.entering(this.getClass().getName(), "decodePublicKey()", input); if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI =...
18,797
public byte[] encodePublicKey(PublicKey key) { log.entering(this.getClass().getName(), "encodePublicKey()", key); if (! (key instanceof GnuRSAPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, RSA_ALG_OID); GnuRSAPublicKey rsaKey = (GnuRSAPu...
public byte[] encodePublicKey(PublicKey key) { log.entering(this.getClass().getName(), "encodePublicKey()", key); if (! (key instanceof GnuRSAPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, RSA_ALG_OID); GnuRSAPublicKey rsaKey = (GnuRSAPu...
18,799
public Operand simplify() { return null; }
public Operand simplify() { int n = sources.size(); for (int i=0; i<n; i+=1) { Variable src = (Variable) sources.get(i); Operand op = src.simplify(); if (op instanceof StackVariable || op instanceof LocalVariable) { sources.set(i, op); } else { src.getAssignQuad().setDeadCode(false); } } return this; }
18,801
public int getAddressingMode() { if (location instanceof StackLocation) { return Operand.MODE_STACK; } else if (location instanceof RegisterLocation) { return Operand.MODE_REGISTER; } else { throw new IllegalArgumentException("Undefined location"); } }
public int getAddressingMode() { if (location instanceof StackLocation) { return Operand.MODE_STACK; } else if (location instanceof RegisterLocation) { return Operand.MODE_REGISTER; } else { throw new IllegalArgumentException("Undefined location: " + toString()); } }
18,802
public UnrecoverableKeyException(String msg) { super(msg); }
public UnrecoverableKeyException() { super(msg); }
18,803
public UnrecoverableKeyException(String msg) { super(msg); }
public UnrecoverableKeyException(String msg) { }
18,804
public final CharBuffer decode (ByteBuffer in) throws CharacterCodingException { // XXX: Sun's Javadoc seems to contradict itself saying an // IllegalStateException is thrown "if a decoding operation is already // in progress" and also that "it resets this Decoder". // Should we check to see that the ...
public final CharBuffer decode (ByteBuffer in) throws CharacterCodingException { // XXX: Sun's Javadoc seems to contradict itself saying an // IllegalStateException is thrown "if a decoding operation is already // in progress" and also that "it resets this Decoder". // Should we check to see that the ...
18,805
public AbstractTest() { super(); ConfigManager.initLog4j(); }
public AbstractTest(Class configClazz) { super(); ConfigManager.initLog4j(); }
18,806
final protected TestConfig getTestConfig() { if(testConfig == null) { testConfig = ConfigManager.getInstance().getConfig(getClass(), getName()); } return testConfig; }
final protected TestConfig getTestConfig() { if(testConfig == null) { testConfig = ConfigManager.getInstance().getConfig(configClazz, getClass(), getName()); } return testConfig; }
18,808
public TestConfig getConfig(Class clazz, String testName) { TestKey key = new TestKey(clazz, testName); Iterator it = (Iterator) iterators.get(key); if(it == null) { it = configs.iterator(); iterators.put(key, it); } TestConfig cfg = (TestCo...
public TestConfig getConfig(Class configClazz, Class clazz, String testName) { TestKey key = new TestKey(clazz, testName); Iterator it = (Iterator) iterators.get(key); if(it == null) { it = configs.iterator(); iterators.put(key, it); } TestC...
18,810
public TestConfig getConfig(Class clazz, String testName) { TestKey key = new TestKey(clazz, testName); Iterator it = (Iterator) iterators.get(key); if(it == null) { it = configs.iterator(); iterators.put(key, it); } TestConfig cfg = (TestCo...
public TestConfig getConfig(Class clazz, String testName) { TestKey key = new TestKey(clazz, testName); Iterator it = (Iterator) iterators.get(key); if(it == null) { List cfgs = (List) configs.get(configClazz); it = cfgs.iterator(); iterators.put(key, it); ...
18,811
public Book() { }
public Book() { }
18,813
public void append(Printable printable, PageFormat page_format) { append(printable, page_format, 1); }
append(Printable printable, PageFormat page_format) { append(printable, page_format, 1); }
18,814
public int getNumberOfPages() { return (printables.size()); }
public int getNumberOfPages() { return (printables.size()); }
18,815
public PageFormat getPageFormat(int page_number) { return ((PageFormat) page_formats.elementAt(page_number)); }
public PageFormat getPageFormat(int page_number) { return ((PageFormat) page_formats.elementAt(page_number)); }
18,816
public Printable getPrintable(int page_number) { return ((Printable) printables.elementAt(page_number)); }
public Printable getPrintable(int page_number) { return ((Printable) printables.elementAt(page_number)); }
18,817
public void setPage(int page_num, Printable printable, PageFormat page_format) { printables.setElementAt(printable, page_num); page_formats.setElementAt(page_format, page_num); }
setPage(int page_num, Printable printable, PageFormat page_format) { printables.setElementAt(printable, page_num); page_formats.setElementAt(page_format, page_num); }
18,818
public void execute( ParsedArguments cmdLine, InputStream in, PrintStream out, PrintStream err) throws Exception { Class clazz = ARG_CLASS.getClass(cmdLine); TestRunner.run(clazz); }
public void execute( ParsedArguments cmdLine, InputStream in, PrintStream out, PrintStream err) throws Exception { Class clazz = ARG_CLASS.getClass(cmdLine); TestRunner.run(clazz); }
18,819
public final void writeArrayStoreWriteBarrier(X86CompilerContext context, Register refReg, Register indexReg, Register valueReg) { writePUSH(refReg); writePUSH(indexReg); writePUSH(valueReg); invokeJavaMethod(context.getArrayStoreWriteBarrier(), context); }
public final void writeArrayStoreWriteBarrier(X86CompilerContext context, Register refReg, Register indexReg, Register valueReg) { writePUSH(refReg); writePUSH(indexReg); writePUSH(valueReg); invokeJavaMethod(context.getArrayStoreWriteBarrier(), context); }
18,820
public final void writePutfieldWriteBarrier(X86CompilerContext context, VmInstanceField field, Register refReg, Register valueReg) { if (field.isObjectRef()) { writePUSH(refReg); writePUSH(field.getOffset()); writePUSH(valueReg); invokeJavaMethod(context...
public final void writePutfieldWriteBarrier(X86CompilerContext context, VmInstanceField field, Register refReg, Register valueReg, Register scratchReg) { if (field.isObjectRef()) { writePUSH(refReg); writePUSH(field.getOffset()); writePUSH(valueReg); inv...
18,821
public final void writePutfieldWriteBarrier(X86CompilerContext context, VmInstanceField field, Register refReg, Register valueReg) { if (field.isObjectRef()) { writePUSH(refReg); writePUSH(field.getOffset()); writePUSH(valueReg); invokeJavaMethod(context...
public final void writePutfieldWriteBarrier(X86CompilerContext context, VmInstanceField field, Register refReg, Register valueReg) { if (field.isObjectRef()) { writePUSH(refReg); writePUSH(field.getOffset()); writePUSH(valueReg); invokeJavaMethod(context...
18,822
public final void writePutstaticWriteBarrier(X86CompilerContext context, VmStaticField field, Register valueReg) { if (field.isObjectRef()) { writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBarrier(), context); ...
public final void writePutstaticWriteBarrier(X86CompilerContext context, VmStaticField field, Register valueReg, Register scratchReg) { if (field.isObjectRef()) { writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBar...
18,823
public final void writePutstaticWriteBarrier(X86CompilerContext context, VmStaticField field, Register valueReg) { if (field.isObjectRef()) { writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBarrier(), context); ...
public final void writePutstaticWriteBarrier(X86CompilerContext context, VmStaticField field, Register valueReg) { if (field.isObjectRef()) { writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBarrier(), context); ...
18,824
public JTextComponent() { Keymap defkeymap = getKeymap(DEFAULT_KEYMAP); boolean creatingKeymap = false; if (defkeymap == null) { defkeymap = addKeymap(DEFAULT_KEYMAP, null); defkeymap.setDefaultAction(new DefaultEditorKit.DefaultKeyTypedAction()); creatingKeymap = true; } c...
public JTextComponent() { Keymap defkeymap = getKeymap(DEFAULT_KEYMAP); boolean creatingKeymap = false; if (defkeymap == null) { defkeymap = addKeymap(DEFAULT_KEYMAP, null); defkeymap.setDefaultAction(new DefaultEditorKit.DefaultKeyTypedAction()); creatingKeymap = true; } ...
18,825
public void select(int start, int end) { int length = doc.getLength(); start = Math.max(start, 0); start = Math.min(start, length); end = Math.max(end, 0); end = Math.min(end, length); setCaretPosition(start); moveCaretPosition(end); }
public void select(int start, int end) { int length = doc.getLength(); start = Math.max(start, 0); start = Math.min(start, length); end = Math.max(end, start); end = Math.min(end, length); setCaretPosition(start); moveCaretPosition(end); }
18,826
public void setCaret(Caret newCaret) { if (caret != null) caret.deinstall(this); Caret oldCaret = caret; caret = newCaret; caretBlinkTimer.update(); if (caret != null) caret.install(this); firePropertyChange("caret", oldCaret, newCaret); }
public void setCaret(Caret newCaret) { if (caret != null) caret.deinstall(this); Caret oldCaret = caret; caret = newCaret; if (caret != null) caret.install(this); firePropertyChange("caret", oldCaret, newCaret); }
18,827
public void setEditable(boolean newValue) { if (editable == newValue) return; if (newValue == true) caretBlinkTimer.start(); else { caretBlinkTimer.stop(); caret.setVisible(false); } boolean oldValue = editable; editable = newValue; firePropertyChange("editable", o...
public void setEditable(boolean newValue) { if (editable == newValue) return; if (newValue == true) caretBlinkTimer.start(); else { caretBlinkTimer.stop(); caret.setVisible(false); } boolean oldValue = editable; editable = newValue; firePropertyChange("editable", o...
18,828
StringSelection(String data){ this.data = data;}
StringSelection(String data){ this.data = data;}
18,829
public abstract DataFlavor[] getTransferDataFlavors();
DataFlavor[] getTransferDataFlavors();
18,830
public final int get(int field) { // If the requested field is invalid, force all fields to be recomputed. if (!isSet[field]) areFieldsSet = false; complete(); return fields[field]; }
public int get(int field) { // If the requested field is invalid, force all fields to be recomputed. if (!isSet[field]) areFieldsSet = false; complete(); return fields[field]; }
18,831
public abstract int getActualMaximum(int field);
public int getActualMaximum(int field) { Calendar tmp = (Calendar)clone(); int max = tmp.getLeastMaximum(field); int end = tmp.getMaximum(field); tmp.set(field, max); for (; max < end; max++) { tmp.add(field, 1); if (tmp.get(field) != max + 1) break; } return max; }
18,832
public abstract int getActualMinimum(int field);
public int getActualMinimum(int field) { Calendar tmp = (Calendar)clone(); int min = tmp.getGreatestMinimum(field); int end = tmp.getMinimum(field); tmp.set(field, min); for (; min > end; min--) { tmp.add(field, -1); if (tmp.get(field) != min - 1) break; } return min; }
18,833
public static synchronized Locale[] getAvailableLocales() { ResourceBundle rb = ResourceBundle.getBundle(bundleName, new Locale("", "")); return (Locale[]) rb.getObject("availableLocales"); }
public static synchronized Locale[] getAvailableLocales() { ResourceBundle rb = ResourceBundle.getBundle(bundleName, new Locale("", "")); return (Locale[]) rb.getObject("availableLocales"); }
18,834
public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE...
public void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEEK_IN_M...
18,835
public void start() { // Create a Heap monitor heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(...
public void start() { // Create a Heap monitor heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(...
18,836
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ...
private static synchronized final long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ...
18,837
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ...
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ...
18,838
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ...
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ...
18,839
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable Insets i = getInsets(); int arrowSize = comboBox.getHeight() - (i.top + i.bottom); int editorWidth = comboBox.getBounds().width - arrowSize; if (edit...
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable Insets i = getInsets(); int arrowSize = comboBox.getHeight() - (i.top + i.bottom); int editorWidth = comboBox.getBounds().width - arrowSize; if (edit...
18,840
protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ...
protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ...
18,842
protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ...
protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ...
18,843
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
18,844
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
18,845
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
18,847
public Dimension getMaximumSize(JComponent c) { Dimension size = getPreferredSize(c); size.width = 32767; return size; }
public Dimension getMaximumSize(JComponent c) { Dimension size = getPreferredSize(c); size.width = 32767; return size; }
18,848
public Dimension getMinimumSize(JComponent c) { if (isMinimumSizeDirty) { Insets i = getInsets(); Dimension d = getDisplaySize(); d.height += i.top + i.bottom; int arrowButtonWidth = d.height - (i.top + i.bottom); cachedMinimumSize = new Dimension(d.width + arrowButtonWidth + i...
public Dimension getMinimumSize(JComponent c) { if (isMinimumSizeDirty) { Insets i = getInsets(); Dimension d = getDisplaySize(); d.height += i.top + i.bottom; int arrowButtonWidth = d.height - (i.top + i.bottom); cachedMinimumSize = new Dimension(d.width + arrowButtonWidth + i...
18,849
public Dimension getPreferredSize(JComponent c) { Dimension size = getMinimumSize(c); size.width += 4; return size; }
public Dimension getPreferredSize(JComponent c) { Dimension size = getMinimumSize(c); size.width += 4; return size; }
18,850
protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = SwingUtilities.getLocalBounds(comboBox); Rectangle abBounds = arrowButton.getBounds(); Rectangle rectForCurrentValue = new Rectangle(cbBounds.x, cbBounds.y, cbBounds.width - abBounds.width, cbBounds.height); return rectForCurre...
protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = SwingUtilities.getLocalBounds(comboBox); Rectangle abBounds = arrowButton.getBounds(); Rectangle rectForCurrentValue = new Rectangle(cbBounds.x, cbBounds.y, cbBounds.width - abBounds.width, cbBounds.height); return rectForCurre...
18,851
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ...
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ...
18,852
public String[] split (CharSequence input, int limit) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; ...
public String[] split (CharSequence input) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; end = match...
18,854
public String[] split (CharSequence input, int limit) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; ...
public String[] split (CharSequence input, int limit) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; ...
18,855
protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list...
protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list...
18,856
protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list...
protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list...
18,857
public boolean isSelected () { return (index != -1); }
public boolean isSelected () { return index != -1; }
18,858
public abstract String getText();
String getText();
18,859