rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public abstract Enumeration getPermissions(Principal user); | Enumeration getPermissions(Principal user); | public abstract Enumeration getPermissions(Principal user); |
public abstract boolean removeEntry(Principal caller, AclEntry entry) | boolean removeEntry(Principal caller, AclEntry entry) | public abstract boolean removeEntry(Principal caller, AclEntry entry) throws NotOwnerException; |
public abstract void setName(Principal caller, String name) | void setName(Principal caller, String name) | public abstract void setName(Principal caller, String name) throws NotOwnerException; |
public abstract String toString(); | String toString(); | public abstract String toString(); |
EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); | 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 ... | |
q.invokeAndWait (new Runnable () { public void run () { } }); | EventQueue.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 { q.invokeAndWait (new Runnable () { public void run ... |
q.invokeAndWait (new Runnable () { public void run () { } }); | EventQueue.invokeAndWait (new Runnable () { public void run () { } }); | q.invokeAndWait (new Runnable () { public void run () { } }); |
int[] getRGBPixels (Rectangle r); | int[] getRGBPixels (Rectangle screen); | int[] getRGBPixels (Rectangle r); |
void keyPress (int x); | void keyPress (int keycode); | void keyPress (int x); |
void keyRelease (int x); | void keyRelease (int keycode); | void keyRelease (int x); |
void mousePress (int x); | void mousePress (int buttons); | void mousePress (int x); |
void mouseRelease (int x); | void mouseRelease (int buttons); | void mouseRelease (int x); |
void mouseWheel (int x); | void mouseWheel (int wheelAmt); | void mouseWheel (int x); |
public InetAddress[] getHostByName(String hostname) | public byte[][] getHostByName(String hostname) | public InetAddress[] getHostByName(String hostname) throws UnknownHostException; |
g.setColor(borderColorDark); | g.setColor(dark); | 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... |
g.setColor(borderColorLight); | g.setColor(light); | 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... |
{ g.setColor(borderColorDark); g.drawLine(x, y, x + w, y); g.setColor(borderColorLight); g.drawLine(x, y + h - 1, x + w, y + h - 1); } | { g.setColor(dark); g.drawLine(x, y, x + w, y); g.setColor(light); g.drawLine(x, y + h - 1, x + w, y + h - 1); } else { g.setColor(light); g.drawLine(x, y, x, y + h); } | 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... |
g.drawLine(x + 1, y + 1, x + 1, y + h - 2); | 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... | |
MetalUtils.fillMetalPattern(g, x + 2, y + 2, x + 11, y + h - 5, | MetalUtils.fillMetalPattern(tb, g, x + 2, y + 2, x + 11, y + h - 5, | 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... |
MetalUtils.fillMetalPattern(g, x + 2, y + 2, x + w - 5, y + 11, | MetalUtils.fillMetalPattern(tb, g, x + 2, y + 2, x + w - 5, y + 11, | 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 StreamResult(OutputStream stream) { this.outputStream = stream; | public StreamResult() { | public StreamResult(OutputStream stream) { this.outputStream = stream; } |
if (propName.equals("JInternalFrame.isPalette")) | if (e.getPropertyName().equals(JInternalFrame.FRAME_ICON_PROPERTY)) { title.setIcon(frame.getFrameIcon()); } else if (propName.equals("JInternalFrame.isPalette")) | 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... |
AttributedString(AttributedCharacterIterator aci) | AttributedString(String str) | AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);} |
this(aci, aci.getBeginIndex(), aci.getEndIndex(), null); | sci = new StringCharacterIterator(str); attribs = new AttributeRange[0]; | AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);} |
addAttribute(attrib, value, 0, sci.getEndIndex() - 1); | addAttribute(attrib, value, 0, sci.getEndIndex()); | addAttribute(AttributedCharacterIterator.Attribute attrib, Object value){ addAttribute(attrib, value, 0, sci.getEndIndex() - 1);} |
return(new AttributedStringIterator(sci, attribs, 0, sci.getEndIndex() - 1, null)); | return(new AttributedStringIterator(sci, attribs, 0, sci.getEndIndex(), null)); | getIterator(){ return(new AttributedStringIterator(sci, attribs, 0, sci.getEndIndex() - 1, null));} |
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.getCategory(); | System.out.println("####### dup2_x2"); | 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... |
os.writePOP(helper.AAX); os.writePOP(helper.ABX); os.writePOP(helper.ACX); os.writePOP(helper.ADX); os.writePUSH(helper.ABX); os.writePUSH(helper.AAX); os.writePUSH(helper.ADX); os.writePUSH(helper.ACX); os.writePUSH(helper.ABX); os.writePUSH(helper.AAX); | final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); | 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... |
if (c1 == 2) { | os.writePOP(helper.AAX); os.writePOP(helper.ABX); os.writePOP(helper.ACX); os.writePOP(helper.ADX); os.writePUSH(helper.ABX); os.writePUSH(helper.AAX); os.writePUSH(helper.ADX); os.writePUSH(helper.ACX); os.writePUSH(helper.ABX); os.writePUSH(helper.AAX); | 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... |
vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v2); vstack.push1(v1); | assertCondition(c1 == 2, "category mismatch"); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v2); vstack.push1(v1); | 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... |
final Item v3 = vstack.pop1(); int c3 = v3.getCategory(); assertCondition(c3 == 1, "category mismatch"); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v3); vstack.push1(v2); vstack.push1(v1); | final Item v3 = vstack.pop1(); int c3 = v3.getCategory(); if (c1 == 2) { assertCondition(c3 == 1, "category mismatch"); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v3); vstack.push1(v2); vstack.push1(v1); } else if (c3 == 2) { vstack.push1(ifac.createStack(v2.getType())); vstack.push1(ifac.createStack(... | 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... |
} else { assertCondition(c2 == 1, "category mismatch"); final Item v3 = vstack.pop1(); int c3 = v3.getCategory(); if (c3 == 2) { vstack.push1(ifac.createStack(v2.getType())); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v3); vstack.push1(v2); vstack.push1(v1); } else { final Item v4 = vstack.pop1(); vst... | 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... | |
super (alignment); this.image = image; | this(image, alignment, 0, 0); | public ImageGraphicAttribute (Image image, int alignment) { super (alignment); this.image = image; } |
public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException | public void draw(Graphics2D g, float x, float y) | public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); } |
throw new Error ("not implemented"); | g.drawImage(image, (int) (x - originX), (int) (y - originY), null); | public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); } |
throw new Error ("not implemented"); | return Math.max(0, image.getWidth(null) - originX); | public float getAdvance () throws NotImplementedException { throw new Error ("not implemented"); } |
throw new Error ("not implemented"); | return Math.max(0, originY); | public float getAscent () throws NotImplementedException { throw new Error ("not implemented"); } |
throw new Error ("not implemented"); | return new Rectangle2D.Float(- originX, - originY, image.getWidth(null), image.getHeight(null)); | public Rectangle2D getBounds () throws NotImplementedException { throw new Error ("not implemented"); } |
throw new Error ("not implemented"); | return Math.max(0, image.getHeight(null) - originY); | public float getDescent () throws NotImplementedException { throw new Error ("not implemented"); } |
public int hashCode () throws NotImplementedException | public int hashCode() | public int hashCode () throws NotImplementedException { throw new Error ("not implemented"); } |
throw new Error ("not implemented"); | return image.hashCode(); | public int hashCode () throws NotImplementedException { throw new Error ("not implemented"); } |
public Variable(int type, int index) { this(type, index, 1000*index); | public Variable(int type, int index, int ssaValue) { super(type); this.index = index; this.ssaValue = ssaValue; | public Variable(int type, int index) { this(type, index, 1000*index); } |
private SetOverrideType(int a_value) | protected SetOverrideType(int a_value) | private SetOverrideType(int a_value) { _value = a_value; } |
if (currentComponent == null) currentComponent = (Component) event.getSource(); | public void mousePressed(MouseEvent event) { currentPoint = event.getPoint(); if (enterTimer.isRunning()) enterTimer.restart(); else if (insideTimer.isRunning()) { insideTimer.stop(); hideTip(); } currentComponent.invalidate(); currentComponent.validate(); currentComponent.repaint();... | |
if (list != null) { | if (list == null) { | 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... |
list.add(addrs[j].toInetAddress()); | final ProtocolAddress pa = addrs[j]; if (pa != null) { list.add(pa.toInetAddress()); } | 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... |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Border border = defaults.getBorder("InternalFrame.border"); frame.setBorder(border); frame.setFrameIcon(defaults.getIcon("InternalFrame.icon")); | LookAndFeel.installBorder(frame, "InternalFrame.border"); frame.setFrameIcon(UIManager.getIcon("InternalFrame.icon")); | 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... |
public DataBufferShort(int size, int numBanks) | public DataBufferShort(int size) | public DataBufferShort(int size, int numBanks) { super(TYPE_SHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } |
super(TYPE_SHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; | super(TYPE_SHORT, size, 1, 0); bankData = new short[1][]; data = new short[size]; bankData[0] = data; | public DataBufferShort(int size, int numBanks) { super(TYPE_SHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } |
public DataBufferUShort(int size, int numBanks) | public DataBufferUShort(int size) | public DataBufferUShort(int size, int numBanks) { super(TYPE_USHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } |
super(TYPE_USHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; | super(TYPE_USHORT, size, 1, 0); bankData = new short[1][]; data = new short[size]; bankData[0] = data; | public DataBufferUShort(int size, int numBanks) { super(TYPE_USHORT, size, numBanks); bankData = new short[numBanks][size]; data = bankData[0]; } |
public DataBufferFloat(int size, int numBanks) | public DataBufferFloat(int size) | public DataBufferFloat(int size, int numBanks) { super(TYPE_FLOAT, size, numBanks); bankData = new float[numBanks][size]; data = bankData[0]; } |
super(TYPE_FLOAT, size, numBanks); bankData = new float[numBanks][size]; data = bankData[0]; | super(TYPE_FLOAT, size, 1, 0); bankData = new float[1][]; data = new float[size]; bankData[0] = data; | public DataBufferFloat(int size, int numBanks) { super(TYPE_FLOAT, size, numBanks); bankData = new float[numBanks][size]; data = bankData[0]; } |
return new ChooseNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet)); | TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); | TemplateNode clone(Stylesheet stylesheet) { return new ChooseNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet)); } |
if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) { return new ChooseNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet)); } | |
String debug = System.getProperty("gnu.xml.debug.input"); if (debug != null) { try { File file = File.createTempFile(debug, ".xml"); in = new TeeInputStream(in, new FileOutputStream(file)); } catch (IOException e) { RuntimeException e2 = new RuntimeException(); e2.initCause(e); throw e2; } } | public XMLParser(InputStream in, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean ba... | |
if (args.length > 1 && "-x".equals(args[1])) | int pos = 0; while (pos < args.length && args[pos].startsWith("-")) { if ("-x".equals(args[pos])) | 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]), ... |
XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), true, true, | else if ("-v".equals(args[pos])) validating = true; else if ("-n".equals(args[pos])) namespaceAware = true; pos++; } if (pos >= args.length) { System.out.println("Syntax: XMLParser [-n] [-v] [-x] <file> [<file2> [...]]"); System.out.println("\t-n: use namespace aware mode"); System.out.println("\t-v: use validating par... | 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]), ... |
reader = new XIncludeFilter(p, args[0], true, true, true); | reader = new XIncludeFilter(p, args[pos], true, true, true); | 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]), ... |
pos++; } | 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]), ... | |
QName q = reader.getAttributeQName(i); | QName q = reader.getAttributeName(i); | 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... |
return reader.getAttributeName(index); | return reader.getAttributeLocalName(index); | public String getLocalName(int index) { return reader.getAttributeName(index); } |
return null; | Location l = reader.getLocation(); return l.getPublicId(); | public String getPublicId() { return null; } |
QName q = reader.getAttributeQName(index); | QName q = reader.getAttributeName(index); | public String getQName(int index) { QName q = reader.getAttributeQName(index); String localName = q.getLocalPart(); String prefix = q.getPrefix(); return ("".equals(prefix)) ? localName : prefix + ":" + localName; } |
return l.getLocationURI(); | return l.getSystemId(); | public String getSystemId() { Location l = reader.getLocation(); return l.getLocationURI(); } |
QName aname = reader.getAttributeQName(i); | QName aname = reader.getAttributeName(i); | 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 ... |
case XMLStreamConstants.START_ENTITY: | case XMLParser.START_ENTITY: | 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, ... |
case XMLStreamConstants.END_ENTITY: | case XMLParser.END_ENTITY: | 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, ... |
if (!startDocumentDone && contentHandler != null) contentHandler.startDocument(); | 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, ... | |
if (e instanceof SAXException) throw (SAXException) e; | 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 BindingTypeHolder(BindingType initialValue) | public BindingTypeHolder() | public BindingTypeHolder(BindingType initialValue) { value = initialValue; } |
value = initialValue; | public BindingTypeHolder(BindingType initialValue) { value = initialValue; } | |
complete(); fields[ZONE_OFFSET] += amount; time -= amount; break; | 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) ... | |
complete(); fields[DST_OFFSET] += amount; isTimeSet = false; break; | 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) ... | |
throw new IllegalArgumentException ("Unknown Calendar field: " + field); | throw new IllegalArgumentException("Invalid or unknown field"); | 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) ... |
private void calculateDay(int day, boolean gregorian) | private void calculateDay(int[] fields, long day, boolean gregorian) | 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 - ... |
int weekday = (day + THURSDAY) % 7; | int weekday = (int)(day + THURSDAY) % 7; | 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 - ... |
int year = 1970 + (gregorian | int year = 1970 + (int)(gregorian | 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 - ... |
int firstDayOfYear = getLinearDay(year, 1, gregorian); | long firstDayOfYear = getLinearDay(year, 1, gregorian); | 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 - ... |
fields[DAY_OF_YEAR] = day; | fields[DAY_OF_YEAR] = (int)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 - ... |
fields[MONTH] = day / 32; fields[DAY_OF_MONTH] = day - 31 * fields[MONTH]; | fields[MONTH] = (int)day / 32; fields[DAY_OF_MONTH] = (int)day - 31 * fields[MONTH]; | 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 - ... |
int scaledDay = (day - leapday) * 5 + 8; | int scaledDay = ((int)day - leapday) * 5 + 8; | 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 - ... |
int day = (int) (localTime / (24 * 60 * 60 * 1000L)); | long day = localTime / (24 * 60 * 60 * 1000L); | 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... |
calculateDay(day, gregorian); | calculateDay(fields, day, gregorian); | 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... |
calculateDay(++day, gregorian); | calculateDay(fields, ++day, gregorian); | 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... |
int dayOfYear = daysOfYear[0] + daysOfYear[1]; int month = isSet[MONTH] ? fields[MONTH] : (dayOfYear * 5 + 3) / (31 + 30 + 31 + 30 + 31); int day = isSet[DAY_OF_MONTH] ? fields[DAY_OF_MONTH] : (6 + (dayOfYear * 5 + 3) % (31 + 30 + 31 + 30 + 31)) / 5; int weekday = ((int) (time / (24 * 60 * 60 * 1000L)) + THURSDAY)... | int day = (int) (time / (24 * 60 * 60 * 1000L)); millisInDay = (int) (time % (24 * 60 * 60 * 1000L)); if (millisInDay < 0) { millisInDay += (24 * 60 * 60 * 1000); day--; } int[] f = new int[FIELD_COUNT]; calculateDay(f, day, time - rawOffset >= gregorianCutover); year = f[YEAR]; int month = f[MONTH]; day = f[DAY_OF_MO... | 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 ... |
private int getLinearDay(int year, int dayOfYear, boolean gregorian) | private long getLinearDay(int year, int dayOfYear, boolean gregorian) | 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... |
int julianDay = ((year * (365 * 4 + 1)) >> 2) + dayOfYear - | long julianDay = ((year * (365L * 4 + 1)) >> 2) + dayOfYear - | 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... |
return ((ListUI) ui).getCellBounds(this, index0, index1); | return getUI().getCellBounds(this, index0, index1); | public Rectangle getCellBounds(int index0, int index1) { return ((ListUI) ui).getCellBounds(this, index0, index1); } |
public Point indexToLocation(int index){ return getCellBounds(index, index).getLocation(); | public Point indexToLocation(int index) { return getUI().indexToLocation(this, index); | public Point indexToLocation(int index){ return getCellBounds(index, index).getLocation(); } |
public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException { if (ssf == null) { ssf = defaultSocketFactory; | public static synchronized UnicastConnectionManager getInstance(String host, int port, RMIClientSocketFactory csf) { if (csf == null) { csf = defaultSocketFactory; | 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... |
TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager man = (UnicastConnectionManager)servers.get(key); | try{ host = InetAddress.getByName(host).getHostAddress(); }catch(Exception _){} TripleKey key = new TripleKey(host, port, csf); UnicastConnectionManager man = (UnicastConnectionManager)clients.get(key); | 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... |
man = new UnicastConnectionManager(port, ssf); | man = new UnicastConnectionManager(host, port, csf); | 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... |
nsmanager++; System.out.println("\n\n ****** " + nsmanager + " server managers.\n\n"); | ncmanager++; System.out.println("\n\n ====== " + ncmanager + " client managers.\n\n"); | 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... |
key.port = man.serverPort; servers.put(key, man); | clients.put(key, man); UnicastConnectionManager svrman = (UnicastConnectionManager)servers.get(key); if(svrman != null){ man.serverobj = svrman.serverobj; } | 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... |
listenerList = new EventListenerList(); | public DefaultTreeSelectionModel() { setSelectionMode(DISCONTIGUOUS_TREE_SELECTION); } | |
public void setSelectionPath(TreePath value0) | public void setSelectionPath(TreePath path) | public void setSelectionPath(TreePath value0) { // TODO } |
selection = new TreePath[] { path }; | public void setSelectionPath(TreePath value0) { // TODO } | |
this.awtComponent = awtFrame; | super(awtFrame); | public SwingFrame(Frame awtFrame) { this.awtComponent = awtFrame; } |
VMContainer.invalidateTree(component); VMContainer.invalidateTree(jComponent); | VMAwtAPI.invalidateTree(component); VMAwtAPI.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); ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.