bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public abstract boolean checkPermission(Principal user, Permission perm); | boolean checkPermission(Principal user, Permission perm); | 13,397 |
public abstract Enumeration entries(); | Enumeration entries(); | 13,398 |
public abstract String getName(); | String getName(); | 13,399 |
public abstract Enumeration getPermissions(Principal user); | Enumeration getPermissions(Principal user); | 13,400 |
public abstract boolean removeEntry(Principal caller, AclEntry entry) throws NotOwnerException; | boolean removeEntry(Principal caller, AclEntry entry) throws NotOwnerException; | 13,401 |
public abstract void setName(Principal caller, String name) throws NotOwnerException; | void setName(Principal caller, String name) throws NotOwnerException; | 13,402 |
public abstract String toString(); | String toString(); | 13,403 |
public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); try { q.invokeAndWait (new Runnable () { public void run ... | public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); try { q.invokeAndWait (new Runnable () { public void run () { } }); } catch (InterruptedException e) { System.err.pri... | 13,404 |
public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); try { q.invokeAndWait (new Runnable () { public void run ... | public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); try { EventQueue.invokeAndWait (new Runnable () { public ... | 13,405 |
q.invokeAndWait (new Runnable () { public void run () { } }); | EventQueue.invokeAndWait (new Runnable () { public void run () { } }); | 13,406 |
int[] getRGBPixels (Rectangle r); | int[] getRGBPixels (Rectangle screen); | 13,407 |
void keyPress (int x); | void keyPress (int keycode); | 13,408 |
void keyRelease (int x); | void keyRelease (int keycode); | 13,409 |
void mousePress (int x); | void mousePress (int buttons); | 13,410 |
void mouseRelease (int x); | void mouseRelease (int buttons); | 13,411 |
void mouseWheel (int x); | void mouseWheel (int wheelAmt); | 13,412 |
public InetAddress[] getHostByName(String hostname) throws UnknownHostException; | public byte[][] getHostByName(String hostname) throws UnknownHostException; | 13,413 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(dark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.drawLine(x + w... | 13,414 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra... | 13,415 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra... | 13,416 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color darkShadow = MetalLookAndFeel.getPrimaryControlDarkShadow(); Color light = MetalLookAndFeel.getPrimaryControlHighlight(); // draw dark outer border g.setColor(darkShadow); g.dr... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color darkShadow = MetalLookAndFeel.getPrimaryControlDarkShadow(); Color light = MetalLookAndFeel.getPrimaryControlHighlight(); // draw dark outer border g.setColor(darkShadow); g.dr... | 13,417 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JToolBar tb = (JToolBar) c; if (tb.getOrientation() == JToolBar.HORIZONTAL) { MetalUtils.fillMetalPattern(g, x + 2, y + 2, x + 11, y + h - 5, MetalLookAndFeel.getControlHigh... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JToolBar tb = (JToolBar) c; if (tb.getOrientation() == JToolBar.HORIZONTAL) { MetalUtils.fillMetalPattern(tb, g, x + 2, y + 2, x + 11, y + h - 5, MetalLookAndFeel.getControl... | 13,418 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JToolBar tb = (JToolBar) c; if (tb.getOrientation() == JToolBar.HORIZONTAL) { MetalUtils.fillMetalPattern(g, x + 2, y + 2, x + 11, y + h - 5, MetalLookAndFeel.getControlHigh... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JToolBar tb = (JToolBar) c; if (tb.getOrientation() == JToolBar.HORIZONTAL) { MetalUtils.fillMetalPattern(g, x + 2, y + 2, x + 11, y + h - 5, MetalLookAndFeel.getControlHigh... | 13,419 |
public StreamResult(OutputStream stream) { this.outputStream = stream; } | public StreamResult(OutputStream stream) { this.outputStream = stream; } | 13,420 |
public void propertyChange(PropertyChangeEvent e) { String propName = e.getPropertyName(); if (propName.equals("JInternalFrame.isPalette")) { if (e.getNewValue().equals(Boolean.TRUE)) setPalette(true); else setPalette(false); } else supe... | public void propertyChange(PropertyChangeEvent e) { String propName = e.getPropertyName(); if (e.getPropertyName().equals(JInternalFrame.FRAME_ICON_PROPERTY)) { title.setIcon(frame.getFrameIcon()); } else if (propName.equals("JInternalFrame.isPalette")) { if (e.getNewValue().equals(Bool... | 13,421 |
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);} | AttributedString(String str){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);} | 13,422 |
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);} | AttributedString(AttributedCharacterIterator aci){ sci = new StringCharacterIterator(str); attribs = new AttributeRange[0];} | 13,423 |
addAttribute(AttributedCharacterIterator.Attribute attrib, Object value){ addAttribute(attrib, value, 0, sci.getEndIndex() - 1);} | addAttribute(AttributedCharacterIterator.Attribute attrib, Object value){ addAttribute(attrib, value, 0, sci.getEndIndex());} | 13,424 |
getIterator(){ return(new AttributedStringIterator(sci, attribs, 0, sci.getEndIndex() - 1, null));} | getIterator(){ return(new AttributedStringIterator(sci, attribs, 0, sci.getEndIndex() - 1, null));} | 13,425 |
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | 13,426 |
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | 13,427 |
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | 13,428 |
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | 13,429 |
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | 13,430 |
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat... | 13,431 |
public ImageGraphicAttribute (Image image, int alignment) { super (alignment); this.image = image; } | public ImageGraphicAttribute (Image image, int alignment) { super (alignment); this.image = image; } | 13,432 |
public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); } | public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); } | 13,433 |
public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); } | public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { g.drawImage(image, (int) (x - originX), (int) (y - originY), null); } | 13,434 |
public float getAdvance () throws NotImplementedException { throw new Error ("not implemented"); } | public float getAdvance () throws NotImplementedException { return Math.max(0, image.getWidth(null) - originX); } | 13,435 |
public float getAscent () throws NotImplementedException { throw new Error ("not implemented"); } | public float getAscent () throws NotImplementedException { return Math.max(0, originY); } | 13,436 |
public Rectangle2D getBounds () throws NotImplementedException { throw new Error ("not implemented"); } | public Rectangle2D getBounds () throws NotImplementedException { return new Rectangle2D.Float(- originX, - originY, image.getWidth(null), image.getHeight(null)); } | 13,437 |
public float getDescent () throws NotImplementedException { throw new Error ("not implemented"); } | public float getDescent () throws NotImplementedException { return Math.max(0, image.getHeight(null) - originY); } | 13,438 |
public int hashCode () throws NotImplementedException { throw new Error ("not implemented"); } | public int hashCode () throws NotImplementedException { throw new Error ("not implemented"); } | 13,439 |
public int hashCode () throws NotImplementedException { throw new Error ("not implemented"); } | public int hashCode () throws NotImplementedException { return image.hashCode(); } | 13,440 |
public Variable(int type, int index) { this(type, index, 1000*index); } | public Variable(int type, int index) { this(type, index, 1000*index); } | 13,441 |
private SetOverrideType(int a_value) { _value = a_value; } | protected SetOverrideType(int a_value) { _value = a_value; } | 13,442 |
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo... | public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo... | 13,444 |
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo... | public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo... | 13,445 |
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Border border = defaults.getBorder("InternalFrame.border"); frame.setBorder(border); frame.setFrameIcon(defaults.getIcon("InternalFrame.icon")); // InternalFrames are invisible by default. fra... | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Border border = defaults.getBorder("InternalFrame.border"); frame.setBorder(border); frame.setFrameIcon(defaults.getIcon("InternalFrame.icon")); // InternalFrames are invisible by default. fra... | 13,446 |
public DataBufferShort(int size, int numBanks) { super(TYPE_SHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } | public DataBufferShort(int size) { super(TYPE_SHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } | 13,447 |
public DataBufferShort(int size, int numBanks) { super(TYPE_SHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } | public DataBufferShort(int size, int numBanks) { super(TYPE_SHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } | 13,448 |
public DataBufferUShort(int size, int numBanks) { super(TYPE_USHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } | public DataBufferUShort(int size) { super(TYPE_USHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } | 13,449 |
public DataBufferUShort(int size, int numBanks) { super(TYPE_USHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } | public DataBufferUShort(int size, int numBanks) { super(TYPE_USHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } | 13,450 |
public DataBufferFloat(int size, int numBanks) { super(TYPE_FLOAT, size, numBanks); bankData = new float[numBanks][size]; data = bankData[0]; } | public DataBufferFloat(int size) { super(TYPE_FLOAT, size, numBanks); bankData = new float[numBanks][size]; data = bankData[0]; } | 13,451 |
public DataBufferFloat(int size, int numBanks) { super(TYPE_FLOAT, size, numBanks); bankData = new float[numBanks][size]; data = bankData[0]; } | public DataBufferFloat(int size, int numBanks) { super(TYPE_FLOAT, size, numBanks); bankData = new float[numBanks][size]; data = bankData[0]; } | 13,452 |
TemplateNode clone(Stylesheet stylesheet) { return new ChooseNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet)); } | TemplateNode clone(Stylesheet stylesheet) { return new ChooseNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet)); } | 13,453 |
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ... | public static void main(String[] args) throws Exception { boolean xIncludeAware = false; int pos = 0; while (pos < args.length && args[pos].startsWith("-")) { if ("-x".equals(args[pos])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), ... | 13,456 |
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ... | public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ... | 13,457 |
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ... | public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ... | 13,458 |
public int getIndex(String qName) { int len = reader.getAttributeCount(); for (int i = 0; i < len; i++) { QName q = reader.getAttributeQName(i); String localName = q.getLocalPart(); String prefix = q.getPrefix(); String qn = ("".equals(prefix)) ? localName : prefix + ":" + loca... | public int getIndex(String qName) { int len = reader.getAttributeCount(); for (int i = 0; i < len; i++) { QName q = reader.getAttributeName(i); String localName = q.getLocalPart(); String prefix = q.getPrefix(); String qn = ("".equals(prefix)) ? localName : prefix + ":" + local... | 13,460 |
public String getLocalName(int index) { return reader.getAttributeName(index); } | public String getLocalName(int index) { return reader.getAttributeLocalName(index); } | 13,461 |
public String getPublicId() { return null; } | public String getPublicId() { Location l = reader.getLocation(); return l.getPublicId(); } | 13,462 |
public String getQName(int index) { QName q = reader.getAttributeQName(index); String localName = q.getLocalPart(); String prefix = q.getPrefix(); return ("".equals(prefix)) ? localName : prefix + ":" + localName; } | public String getQName(int index) { QName q = reader.getAttributeName(index); String localName = q.getLocalPart(); String prefix = q.getPrefix(); return ("".equals(prefix)) ? localName : prefix + ":" + localName; } | 13,463 |
public String getSystemId() { Location l = reader.getLocation(); return l.getLocationURI(); } | public String getSystemId() { Location l = reader.getLocation(); return l.getSystemId(); } | 13,464 |
private boolean isIgnorableWhitespace(XMLParser reader, char[] b, boolean testCharacters) throws XMLStreamException { XMLParser.Doctype doctype = reader.doctype; if (doctype == null) return false; String currentElement = reader.getCurrentElement(); // check ... | private boolean isIgnorableWhitespace(XMLParser reader, char[] b, boolean testCharacters) throws XMLStreamException { XMLParser.Doctype doctype = reader.doctype; if (doctype == null) return false; String currentElement = reader.getCurrentElement(); // check ... | 13,465 |
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, ... | 13,466 |
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, ... | 13,467 |
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, ... | 13,468 |
public BindingTypeHolder(BindingType initialValue) { value = initialValue; } | public BindingTypeHolder() { value = initialValue; } | 13,470 |
public BindingTypeHolder(BindingType initialValue) { value = initialValue; } | public BindingTypeHolder(BindingType initialValue) { } | 13,471 |
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ... | public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ... | 13,472 |
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ... | public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ... | 13,473 |
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ... | public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ... | 13,474 |
private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ... | 13,475 |
private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((d... | 13,476 |
private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (int)(gregorian ? ((d... | 13,477 |
private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | 13,478 |
private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | 13,479 |
private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | 13,480 |
private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - ... | 13,481 |
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; int day = (int) (localTime / (24 * 60 * 60 * 1000L)); int millisInDay = (int) (localTime % (24 * 6... | protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 60 ... | 13,482 |
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; int day = (int) (localTime / (24 * 60 * 60 * 1000L)); int millisInDay = (int) (localTime % (24 * 6... | protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; int day = (int) (localTime / (24 * 60 * 60 * 1000L)); int millisInDay = (int) (localTime % (24 * 6... | 13,483 |
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; int day = (int) (localTime / (24 * 60 * 60 * 1000L)); int millisInDay = (int) (localTime % (24 * 6... | protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; int day = (int) (localTime / (24 * 60 * 60 * 1000L)); int millisInDay = (int) (localTime % (24 * 6... | 13,484 |
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (era == BC) year = 1 - year; int[] daysOfYear = getDayOfYear(year); int hour = 0; if (isSet[HOUR_OF_DAY]) hour = fields[HOUR_OF_DAY]; else if (isSet[HOUR]) { hour ... | protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (era == BC) year = 1 - year; int[] daysOfYear = getDayOfYear(year); int hour = 0; if (isSet[HOUR_OF_DAY]) hour = fields[HOUR_OF_DAY]; else if (isSet[HOUR]) { hour ... | 13,485 |
private int getLinearDay(int year, int dayOfYear, boolean gregorian) { // The 13 is the number of days, that were omitted in the Gregorian // Calender until the epoch. // We shift right by 2 instead of dividing by 4, to get correct // results for negative years (and this is even more efficient). int julianDay... | private long getLinearDay(int year, int dayOfYear, boolean gregorian) { // The 13 is the number of days, that were omitted in the Gregorian // Calender until the epoch. // We shift right by 2 instead of dividing by 4, to get correct // results for negative years (and this is even more efficient). int julianDa... | 13,486 |
private int getLinearDay(int year, int dayOfYear, boolean gregorian) { // The 13 is the number of days, that were omitted in the Gregorian // Calender until the epoch. // We shift right by 2 instead of dividing by 4, to get correct // results for negative years (and this is even more efficient). int julianDay... | private int getLinearDay(int year, int dayOfYear, boolean gregorian) { // The 13 is the number of days, that were omitted in the Gregorian // Calender until the epoch. // We shift right by 2 instead of dividing by 4, to get correct // results for negative years (and this is even more efficient). long julianDa... | 13,487 |
public Rectangle getCellBounds(int index0, int index1) { return ((ListUI) ui).getCellBounds(this, index0, index1); } | public Rectangle getCellBounds(int index0, int index1) { return getUI().getCellBounds(this, index0, index1); } | 13,488 |
public Point indexToLocation(int index){ return getCellBounds(index, index).getLocation(); } | public Point indexToLocation(int index){ return getCellBounds(index, index).getLocation(); } | 13,489 |
public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | 13,490 |
public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | 13,491 |
public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | 13,492 |
public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | 13,493 |
public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager ma... | 13,494 |
public void setSelectionPath(TreePath value0) { // TODO } | public void setSelectionPath(TreePath path) { // TODO } | 13,496 |
public SwingFrame(Frame awtFrame) { this.awtComponent = awtFrame; } | public SwingFrame(Frame awtFrame) { super(awtFrame); } | 13,498 |
public void setVisible(final boolean b) { SwingToolkit.invokeNowOrLater(new Runnable() { public void run() { if (b) { jComponent.invalidate(); VMContainer.invalidateTree(component); VMContainer.invalidateTree(jComponent); ... | public void setVisible(final boolean b) { SwingToolkit.invokeNowOrLater(new Runnable() { public void run() { if (b) { jComponent.invalidate(); VMContainer.invalidateTree(component); VMContainer.invalidateTree(jComponent); ... | 13,499 |
public void run() { if (b) { jComponent.invalidate(); VMContainer.invalidateTree(component); VMContainer.invalidateTree(jComponent); jComponent.validate(); } jComponent.setVisible(b); ... | public void run() { if (b) { jComponent.invalidate(); VMContainer.invalidateTree(component); VMContainer.invalidateTree(jComponent); jComponent.validate(); } jComponent.setVisible(b); ... | 13,500 |
private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.... | protected void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashe... | 13,501 |
private Class findStubSkelClass(Class startCls) { Class cls = startCls; while (true) { try { String stubClassname = cls.getName() + "_Stub"; ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(stubClassname) : cl.loadClass(stubClassname); return cls; //... | protected Class findStubSkelClass(Class startCls) { Class cls = startCls; while (true) { try { String stubClassname = cls.getName() + "_Stub"; ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(stubClassname) : cl.loadClass(stubClassname); return cls; ... | 13,502 |
private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try ... | protected Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try ... | 13,503 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.