bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
compare(String s1, String s2){ CollationElementIterator cei1 = getCollationElementIterator(s1); CollationElementIterator cei2 = getCollationElementIterator(s2); for(;;) { int ord1 = cei1.next(); int ord2 = cei2.next(); // Check for end of string if (ord1 == CollationElementIterator.NULLORDER...
compare(String s1, String s2){ CollationElementIterator cei1 = getCollationElementIterator(s1); CollationElementIterator cei2 = getCollationElementIterator(s2); for(;;) { int ord1 = cei1.next(); int ord2 = cei2.next(); // Check for end of string if (ord1 == CollationElementIterator.NULLORDER...
9,805
compare(String s1, String s2){ CollationElementIterator cei1 = getCollationElementIterator(s1); CollationElementIterator cei2 = getCollationElementIterator(s2); for(;;) { int ord1 = cei1.next(); int ord2 = cei2.next(); // Check for end of string if (ord1 == CollationElementIterator.NULLORDER...
compare(String s1, String s2){ CollationElementIterator cei1 = getCollationElementIterator(s1); CollationElementIterator cei2 = getCollationElementIterator(s2); for(;;) { int ord1 = cei1.next(); int ord2 = cei2.next(); // Check for end of string if (ord1 == CollationElementIterator.NULLORDER...
9,806
equals(Object obj){ if (obj == this) return(true); else return(false);}
equals(Object obj){ if (obj == this) return(true); else return(false);}
9,807
getCollationElementIterator(String str){ return(new CollationElementIterator(this, str));}
getCollationElementIterator(String str){ return(new CollationElementIterator(this, str));}
9,808
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
9,809
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
9,810
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
9,811
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
9,812
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
getCollationKey(String str){ CollationElementIterator cei = getCollationElementIterator(str); Vector vect = new Vector(25); int ord = cei.next(); while (ord != CollationElementIterator.NULLORDER) { switch (getStrength()) { case PRIMARY: ord = CollationElementIterator.primaryOrder...
9,813
getRules(){ return(rules);}
getRules(){ return(rules);}
9,814
hashCode(){ return(System.identityHashCode(this));}
hashCode(){ return(System.identityHashCode(this));}
9,815
CollationElementIterator(RuleBasedCollator rbc, String str){ this.rbc = rbc; this.str = str;}
CollationElementIterator(RuleBasedCollator rbc, String str){ this.rbc = rbc; this.str = str;}
9,816
next(){ ++pos; if (pos >= str.length()) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));}
next(){ ++pos; if (pos >= str.length()) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));}
9,817
next(){ ++pos; if (pos >= str.length()) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));}
next(){ ++pos; if (pos >= str.length()) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));}
9,818
reset(){ pos = 0;}
reset(){ pos = 0;}
9,819
CollationKey(Collator collator, String str, byte[] key){ this.collator = collator; this.str = str; this.key = key;}
CollationKey(Collator collator, String str, byte[] key){ this.collator = collator; this.str = str; this.key = key;}
9,820
CollationKey(Collator collator, String str, byte[] key){ this.collator = collator; this.str = str; this.key = key;}
CollationKey(Collator collator, String str, byte[] key){ this.collator = collator; this.originalText = originalText; this.key = key;}
9,821
ActionMap createActionMap() { Action[] actions = textComponent.getActions(); ActionMap am = new ActionMapUIResource(); for (int i = 0; i < actions.length; ++i) { String name = (String) actions[i].getValue(Action.NAME); if (name != null) am.put(name, actions[i]); } return ...
private ActionMap createActionMap() { Action[] actions = textComponent.getActions(); ActionMap am = new ActionMapUIResource(); for (int i = 0; i < actions.length; ++i) { String name = (String) actions[i].getValue(Action.NAME); if (name != null) am.put(name, actions[i]); } ...
9,822
ActionMap createActionMap() { Action[] actions = textComponent.getActions(); ActionMap am = new ActionMapUIResource(); for (int i = 0; i < actions.length; ++i) { String name = (String) actions[i].getValue(Action.NAME); if (name != null) am.put(name, actions[i]); } return ...
ActionMap createActionMap() { Action[] actions = textComponent.getActions(); ActionMap am = new ActionMapUIResource(); for (int i = 0; i < actions.length; ++i) { String name = (String) actions[i].getValue(Action.NAME); if (name != null) am.put(name, actions[i]); } return ...
9,823
ActionMap createActionMap() { Action[] actions = textComponent.getActions(); ActionMap am = new ActionMapUIResource(); for (int i = 0; i < actions.length; ++i) { String name = (String) actions[i].getValue(Action.NAME); if (name != null) am.put(name, actions[i]); } return ...
ActionMap createActionMap() { Action[] actions = textComponent.getActions(); ActionMap am = new ActionMapUIResource(); for (int i = 0; i < actions.length; ++i) { String name = (String) actions[i].getValue(Action.NAME); if (name != null) am.put(name, actions[i]); } return ...
9,824
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) UIManager.get(prefix + ".windowInputMap"); case JComponent.WHEN_ANC...
private InputMap getInputMap() { String prefix = getPropertyPrefix(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) UIManager.get(prefix + ".windowInputMap"); case JComponent.WHEN_ANCESTOR...
9,826
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) UIManager.get(prefix + ".windowInputMap"); case JComponent.WHEN_ANC...
InputMap getInputMap(int condition) { String prefix = getPropertyPrefix(); switch (condition) { case JComponent.WHEN_IN_FOCUSED_WINDOW: // FIXME: is this the right string? nobody seems to use it. return (InputMap) UIManager.get(prefix + ".windowInputMap"); case JComponent.WHEN_ANC...
9,827
protected void installKeyboardActions() { // This is only there for backwards compatibility. textComponent.setKeymap(createKeymap()); // load any bindings for the newer InputMap / ActionMap interface SwingUtilities.replaceUIInputMap(textComponent, JComponent.WHEN_FOCUSED, ...
protected void installKeyboardActions() { // This is only there for backwards compatibility. textComponent.setKeymap(createKeymap()); // load any bindings for the newer InputMap / ActionMap interface SwingUtilities.replaceUIInputMap(textComponent, JComponent.WHEN_FOCUSED, ...
9,828
public void repaint(Rectangle r) { repaint((long) 0, (int) r.getX(), (int) r.getY(), (int) r.getWidth(), (int) r.getHeight()); }
public void repaint(long tm, int x, int y, int width, int height) { repaint((long) 0, (int) r.getX(), (int) r.getY(), (int) r.getWidth(), (int) r.getHeight()); }
9,829
public void repaint(Rectangle r) { repaint((long) 0, (int) r.getX(), (int) r.getY(), (int) r.getWidth(), (int) r.getHeight()); }
public void repaint(Rectangle r) { repaint((long) 0, (int) r.getX(), (int) r.getY(), (int) r.getWidth(), (int) r.getHeight()); }
9,830
public void execute( CommandLine cmdLine, InputStream in, PrintStream out, PrintStream err) throws Exception { final Runtime rt = Runtime.getRuntime(); out.println("Memory size: " + rt.totalMemory()); out.println("Free memory: " + rt.freeMemory()); out.println("Starting gc..."); long start = System.curr...
public void execute( CommandLine cmdLine, InputStream in, PrintStream out, PrintStream err) throws Exception { final Runtime rt = Runtime.getRuntime(); out.println("Memory size: " + rt.totalMemory()); out.println("Free memory: " + rt.freeMemory()); out.println("Starting gc..."); long start = System.curr...
9,831
protected AccessibleAbstractButton(AbstractButton component) { super(component); // TODO } // AccessibleAbstractButton()
protected AccessibleAbstractButton(AbstractButton component) { super(component); // TODO } // AccessibleAbstractButton()
9,832
protected void configurePropertiesFromAction(Action a) { //Factory method which sets the ActionEvent source's properties according to values from the Action instance. }
protected void configurePropertiesFromAction(Action a) { //Factory method which sets the ActionEvent source's properties according to values from the Action instance. }
9,833
protected PropertyChangeListener createActionPropertyChangeListener(Action a) { //Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance. return null; }
protected PropertyChangeListener createActionPropertyChangeListener(Action a) { //Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance. return null; }
9,834
public abstract Component getComponent();
Component getComponent();
9,835
public abstract MenuElement[] getSubElements();
MenuElement[] getSubElements();
9,836
public abstract void menuSelectionChanged(boolean included);
void menuSelectionChanged(boolean included);
9,837
public abstract void processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager);
void processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager);
9,838
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager);
void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager);
9,839
public GetDelegateInstanceException(String msg, Throwable next) { super(msg, next); }
public GetDelegateInstanceException(String msg) { super(msg, next); }
9,840
public GetDelegateInstanceException(String msg, Throwable next) { super(msg, next); }
public GetDelegateInstanceException(String msg, Throwable next) { super(msg); }
9,841
public Text createTextNode(char[] buf, int off, int len) { if (checkingCharacters) { checkChar(buf, off, len, "1.1".equals(version)); } return new DomText(this, buf, off, len); }
public Text createTextNode(String value) { if (checkingCharacters) { checkChar(buf, off, len, "1.1".equals(version)); } return new DomText(this, buf, off, len); }
9,842
public Text createTextNode(char[] buf, int off, int len) { if (checkingCharacters) { checkChar(buf, off, len, "1.1".equals(version)); } return new DomText(this, buf, off, len); }
public Text createTextNode(char[] buf, int off, int len) { if (checkingCharacters) { checkChar(value, "1.1".equals(version)); } return new DomText(this, buf, off, len); }
9,843
public Text createTextNode(char[] buf, int off, int len) { if (checkingCharacters) { checkChar(buf, off, len, "1.1".equals(version)); } return new DomText(this, buf, off, len); }
public Text createTextNode(char[] buf, int off, int len) { if (checkingCharacters) { checkChar(buf, off, len, "1.1".equals(version)); } return new DomText(this, value); }
9,844
public Object evaluate(Node context, int pos, int len) { Object val = (arg == null) ? null : arg.evaluate(context, pos, len); return _name(context, (Collection) val); }
public Object evaluate(Node context, int pos, int len) { Object val = (arg == null) ? Collections.singleton(context) : arg.evaluate(context, pos, len); return _name(context, (Collection) val); }
9,845
public boolean isSelected();
boolean isSelected();
9,846
public void setSelectedIndex(int index);
void setSelectedIndex(int index);
9,847
Name add(int posn, String comp) throws InvalidNameException;
Name add(String comp) throws InvalidNameException;
9,848
Name addAll(int posn, Name n) throws InvalidNameException;
Name addAll(Name suffix) throws InvalidNameException;
9,849
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)...
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)...
9,850
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ...
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ...
9,852
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ...
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ...
9,853
void dispatchEventImpl(AWTEvent e) { // Give lightweight dispatcher a chance to handle it. if (eventTypeEnabled (e.id) && dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && ...
void dispatchEventImpl(AWTEvent e) { // Give lightweight dispatcher a chance to handle it. if (eventTypeEnabled (e.id) && dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && ...
9,855
public float getAlignmentX() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentX(this); } else return super.getAlignmentX(); }
public float getAlignmentX() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentX(this); } else return super.getAlignmentX(); }
9,856
public float getAlignmentY() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentY(this); } else return super.getAlignmentY(); }
public float getAlignmentY() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentY(this); } else return super.getAlignmentY(); }
9,857
public Dimension getMaximumSize() { if (layoutMgr != null && layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.maximumLayoutSize(this); } else return super.getMaximumSize(); }
public Dimension getMaximumSize() { if (valid && maxSize != null) return new Dimension(maxSize); LayoutManager layout = getLayout(); if (layout != null && layout instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.maximumLayoutSize(this); } else ...
9,858
public Dimension getMaximumSize() { if (layoutMgr != null && layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.maximumLayoutSize(this); } else return super.getMaximumSize(); }
public Dimension getMaximumSize() { if (layoutMgr != null && layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.maximumLayoutSize(this); } else return super.getMaximumSize(); }
9,859
public Dimension minimumSize() { if (layoutMgr != null) return layoutMgr.minimumLayoutSize (this); else return super.minimumSize (); }
public Dimension minimumSize() { if (layoutMgr != null) return layoutMgr.minimumLayoutSize (this); else return super.minimumSize (); }
9,862
public void paint(Graphics g) { if (!isShowing()) return; // Paint self first. super.paint(g); // Visit heavyweights as well, in case they were // erased when we cleared the background for this container. visitChildren(g, GfxPaintVisitor.INSTANCE, false); }
public void paint(Graphics g) { if (!isShowing()) return; // Paint self first. // Visit heavyweights as well, in case they were // erased when we cleared the background for this container. visitChildren(g, GfxPaintVisitor.INSTANCE, false); }
9,863
public Dimension preferredSize() { if (layoutMgr != null) return layoutMgr.preferredLayoutSize (this); else return super.preferredSize (); }
public Dimension preferredSize() { if (layoutMgr != null) return layoutMgr.preferredLayoutSize (this); else return super.preferredSize (); }
9,864
public void setFocusTraversalKeys(int id, Set keystrokes) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new...
public void setFocusTraversalKeys(int id, Set keystrokes) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new...
9,867
public void update(Graphics g) { super.update(g); }
public void update(Graphics g) { ComponentPeer p = peer; if (p != null && !(p instanceof LightweightPeer)) g.clearRect(0, 0, getWidth(), getHeight()); paint(g); }
9,869
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock ()) { for (int i = ncomponents - 1; i >= 0; --i) { Component comp = component[i]; // If we're visiting heavyweights as well, ...
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock ()) { for (int i = ncomponents - 1; i >= 0; --i) { Component comp = component[i]; // If we're visiting heavyweights as well, ...
9,870
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
Component acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
9,871
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
9,872
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
9,873
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
9,874
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
9,875
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
9,876
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
9,877
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
9,878
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
9,879
boolean handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null && mouseEventTarget.isShowing() && e.getID()...
boolean handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; Component mouseEventTarget = acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null && mouseEventTarget.isShow...
9,881
boolean handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null && mouseEventTarget.isShowing() && e.getID()...
boolean handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null && mouseEventTarget.isShowing() && e.getID()...
9,882
static Policy getCurrentPolicy() { // FIXME: The class name of the Policy provider should really be sourced // from the "java.security" configuration file. For now, just hard-code // a stub implementation. if (currentPolicy == null) { String pp = System.getProperty ("policy.provider"); ...
static Policy getCurrentPolicy() { // FIXME: The class name of the Policy provider should really be sourced // from the "java.security" configuration file. For now, just hard-code // a stub implementation. if (currentPolicy == null) { String pp = System.getProperty ("policy.provider"); ...
9,884
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
9,885
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
9,886
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
9,887
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
9,888
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne...
9,889
public void createImage() throws IOException, DriverException, FileSystemException { final FileDevice newFd = new FileDevice(destFile, "rw"); try { newFd.setLength(getDeviceLength()); formatDevice(newFd); final Device sysDev = getSystemDevice(newFd); ...
public void createImage() throws IOException, DriverException, FileSystemException { final FileDevice newFd = new FileDevice(destFile, "rw"); try { newFd.setLength(getDeviceLength()); formatDevice(newFd); final Device sysDev = getSystemDevice(newFd); ...
9,890
protected void formatDevice(Device dev) throws IOException { GrubFatFormatter ff = createFormatter(); try { ff.format((BlockDeviceAPI) dev.getAPI(BlockDeviceAPI.class)); } catch (ApiNotFoundException ex) { throw new IOException("Cannot find BlockDeviceAPI", ex); } ...
protected void formatDevice(Device dev) throws IOException { GrubFatFormatter ff = createFormatter(); try { ff.format((BlockDeviceAPI) dev.getAPI(BlockDeviceAPI.class)); } catch (ApiNotFoundException ex) { final IOException ioe = new IOException("BlockDeviceAPI not found o...
9,891
public static String dumpString(byte[] data, String m) { return (data == null) ? "null\n" : dumpString(data, 0, data.length, m); }
public static String dumpString(byte[] data, int offset, int length, String m) { return (data == null) ? "null\n" : dumpString(data, 0, data.length, m); }
9,892
public static String dumpString(byte[] data, String m) { return (data == null) ? "null\n" : dumpString(data, 0, data.length, m); }
public static String dumpString(byte[] data, String m) { if (data == null) return m + "null\n"; StringBuffer sb = new StringBuffer(length * 3); if (length > 32) sb.append(m).append("Hexadecimal dump of ") .append(length).append(" bytes...\n"); int end = offset + length; String s; int l = Integer.toString(length)...
9,893
public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s...
public static final byte[] fromBase64(String str) int len = str.length(); if (len == 0) throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) try a[i] = (byte) BASE64_CHARS.indexOf(str.c...
9,894
public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s...
public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(st...
9,895
public static int fromDigit(char c) { if (c >= '0' && c <= '9') { return c - '0'; } else if (c >= 'A' && c <= 'F') { return c - 'A' + 10; } else if (c >= 'a' && c <= 'f') { return c - 'a' + 10; } else throw new IllegalArgumentException("Invalid hexa...
public static int fromDigit(char c) if (c >= '0' && c <= '9') return c - '0'; } else if (c >= 'A' && c <= 'F') return c - 'A' + 10; } else if (c >= 'a' && c <= 'f') return c - 'a' + 10; } else throw new IllegalArgumentException("Invalid hexadeci...
9,896
public static int fromDigit(char c) { if (c >= '0' && c <= '9') { return c - '0'; } else if (c >= 'A' && c <= 'F') { return c - 'A' + 10; } else if (c >= 'a' && c <= 'f') { return c - 'a' + 10; } else throw new IllegalArgumentException("Invalid hexa...
public static int fromDigit(char c) { if (c >= '0' && c <= '9') { return c - '0'; else if (c >= 'A' && c <= 'F') { return c - 'A' + 10; else if (c >= 'a' && c <= 'f') { return c - 'a' + 10; else throw new IllegalArgumentException("Invalid hexadec...
9,897
public static final String toBase64(byte[] buffer) { int len = buffer.length, pos = len % 3; byte b0 = 0, b1 = 0, b2 = 0; switch (pos) { case 1: b2 = buffer[0]; break; case 2: b1 = buffer[0]; b2 = buffer[1]; break; } StringBuffer sb = new StringBuffe...
public static final String toBase64(byte[] buffer) int len = buffer.length, pos = len % 3; byte b0 = 0, b1 = 0, b2 = 0; switch (pos) case 1: b2 = buffer[0]; break; case 2: b1 = buffer[0]; b2 = buffer[1]; break; } StringBuffer sb = new StringBuffer(...
9,898
public static final String toBase64(byte[] buffer) { int len = buffer.length, pos = len % 3; byte b0 = 0, b1 = 0, b2 = 0; switch (pos) { case 1: b2 = buffer[0]; break; case 2: b1 = buffer[0]; b2 = buffer[1]; break; } StringBuffer sb = new StringBuffe...
public static final String toBase64(byte[] buffer) { int len = buffer.length, pos = len % 3; byte b0 = 0, b1 = 0, b2 = 0; switch (pos) { case 1: b2 = buffer[0]; break; case 2: b1 = buffer[0]; b2 = buffer[1]; break; StringBuffer sb = new StringBuffer...
9,899
public static byte[] toBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0, j = 0; if ((limit % 2) == 1) { result[j++] = (byte) fromDigit(s.charAt(i++)); } while (i < limit) { result[j] = (byte) (fromDigit(s.charAt(i++...
public static byte[] toBytesFromString(String s) int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0, j = 0; if ((limit % 2) == 1) result[j++] = (byte) fromDigit(s.charAt(i++)); } while (i < limit) result[j] = (byte) (fromDigit(s.charAt(i++)) ...
9,900
public static byte[] toBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0, j = 0; if ((limit % 2) == 1) { result[j++] = (byte) fromDigit(s.charAt(i++)); } while (i < limit) { result[j] = (byte) (fromDigit(s.charAt(i++...
public static byte[] toBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0, j = 0; if ((limit % 2) == 1) { result[j++] = (byte) fromDigit(s.charAt(i++)); while (i < limit) { result[j] = (byte) (fromDigit(s.charAt(i++)...
9,901
public static byte[] toReversedBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0; if ((limit % 2) == 1) { result[i++] = (byte) fromDigit(s.charAt(--limit)); } while (limit > 0) { result[i] = (byte) fromDigit(s.charAt...
public static byte[] toReversedBytesFromString(String s) int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0; if ((limit % 2) == 1) result[i++] = (byte) fromDigit(s.charAt(--limit)); } while (limit > 0) result[i] = (byte) fromDigit(s.charAt(--...
9,902
public static byte[] toReversedBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0; if ((limit % 2) == 1) { result[i++] = (byte) fromDigit(s.charAt(--limit)); } while (limit > 0) { result[i] = (byte) fromDigit(s.charAt...
public static byte[] toReversedBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0; if ((limit % 2) == 1) { result[i++] = (byte) fromDigit(s.charAt(--limit)); while (limit > 0) { result[i] = (byte) fromDigit(s.charAt(...
9,903
public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result...
public static final byte[] trim(BigInteger n) byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result, 0...
9,904
public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result...
public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; byte[] result = new byte[len - i]; System.arraycopy(in, i, result, ...
9,905
public NumberFormatException(String s) { super(s); }
public NumberFormatException(String s) { super(s); }
9,906
public int hashCode() { throw new Error("not implemented"); }
public int hashCode() { int hash = Float.floatToIntBits(width); hash ^= cap; hash ^= join; hash ^= Float.floatToIntBits(limit); for (int i = 0; i < dash.length; i++) hash ^= Float.floatToIntBits(dash[i]); hash ^= Float.floatToIntBits(phase); return hash; }
9,907
void setRangeProperties(int value, int extent, int min, int max, boolean adjusting);
void setRangeProperties(int value, int extent, int min, int max, boolean adjusting);
9,908
dispatchEventImpl(AWTEvent e){ if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);}
dispatchEventImpl(AWTEvent e){ if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);}
9,909
public void update(byte[] buf, int off, int len) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; }
public void update (int bval) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; }
9,912
public void update(byte[] buf, int off, int len) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; }
public void update(byte[] buf, int off, int len) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; }
9,913
public AnySeqHolder(Any [] a_value) { value = a_value; }
public AnySeqHolder() { value = a_value; }
9,916
public AnySeqHolder(Any [] a_value) { value = a_value; }
public AnySeqHolder(Any [] a_value) { }
9,917
StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + "....
StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + "....
9,918