rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
replace(index, removed.length, newChildren); | } int numRemoved = removed != null ? removed.length : 0; replace(index, numRemoved, newChildren); | protected boolean updateChildren(DocumentEvent.ElementChange ec, DocumentEvent ev, ViewFactory vf) { Element[] added = ec.getChildrenAdded(); Element[] removed = ec.getChildrenRemoved(); int index = ec.getIndex(); View[] newChildren = ne... |
} | protected void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape) { if (ec != null && shape != null) preferenceChanged(null, true, true); Container c = getContainer(); if (c != null) c.repaint(); } | |
this.autoResizeMode = AUTO_RESIZE_ALL_COLUMNS; | this.autoResizeMode = AUTO_RESIZE_SUBSEQUENT_COLUMNS; | protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.def... |
return (int) ( ( p * ( 0.299 * ( (0xff0000 & rgb) >> 16) + 0.587 * ( (0xff00 & rgb) >> 8 ) + 0.114 * (0xff & rgb ) ) )); | return (int) (p * (0.299 * ((0xff0000 & rgb) >> 16) + 0.587 * ((0xff00 & rgb) >> 8) + 0.114 * (0xff & rgb))); | public int filterRGB(int x, int y, int rgb) { return (int) ( ( p * ( 0.299 * ( (0xff0000 & rgb) >> 16) + 0.587 * ( (0xff00 & rgb) >> 8 ) + 0.114 * (0xff & rgb ) ) )); } |
map = new TreeMap(cmpNameComponent.singleton); | map = new TreeMap(NameComponentComparator.singleton); | public NamingMap() { map = new TreeMap(cmpNameComponent.singleton); } |
JMenuBar getJMenuBar() | public JMenuBar getJMenuBar() | JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); } |
void setJMenuBar(JMenuBar menubar) | public void setJMenuBar(JMenuBar menubar) | void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); } |
if (isSelected && hasFocus) { setBackground(table.getBackground()); setForeground(table.getSelectionForeground()); } else if (table.isRowSelected(row)) | if (isSelected) | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... |
if (hasFocus) { setBackground(table.getBackground()); setBorder(UIManager.getBorder("Table.focusCellHighlightBorder")); } else setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | |
if (record.getLevel().intValue() <= level.intValue()) | if (record.getLevel().intValue() < level.intValue()) | public boolean isLoggable(LogRecord record) { if (record.getLevel().intValue() <= level.intValue()) return false; if (filter != null) return filter.isLoggable(record); else return true; } |
s.append("KEY_PRESSED,keyCode="); | s.append("KEY_PRESSED"); | public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ... |
s.append("KEY_RELEASED,keyCode="); | s.append("KEY_RELEASED"); | public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ... |
s.append("KEY_TYPED,keyCode="); | s.append("KEY_TYPED"); | public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ... |
s.append("unknown type,keyCode="); | s.append("unknown type"); | public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ... |
s.append(keyCode); switch (keyCode) | s.append(",keyCode=").append(keyCode); s.append(",keyText=").append(getKeyText(keyCode)); s.append(",keyChar="); if (isActionKey() || keyCode == VK_SHIFT || keyCode == VK_CONTROL || keyCode == VK_ALT) s.append("Undefined keyChar"); else | public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ... |
default: if (! isActionKey()) { s.append(",keyChar='").append(keyChar).append('\''); break; } case VK_BACK_SPACE: case VK_TAB: case VK_ENTER: case VK_ESCAPE: case VK_NUMPAD0: case VK_NUMPAD1: case VK_NUMPAD2: case VK_NUMPAD3: case VK_NUMPAD4: case VK_NUMPAD5: case VK_NUMPAD6: case VK_NUMPAD7: case VK_NUMPAD8: case VK_... | if (keyChar == VK_BACK_SPACE || keyChar == VK_TAB || keyChar == VK_ENTER || keyChar == VK_ESCAPE || keyChar == VK_DELETE) s.append(getKeyText(keyChar)); else s.append("'").append(keyChar).append("'"); | public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ... |
DnDEventMulticaster.add (dragSourceListener, l); | public void addDragSourceListener(DragSourceListener l) { } | |
DnDEventMulticaster.add (dragSourceMotionListener, l); | public void addDragSourceMotionListener(DragSourceMotionListener l) { } | |
return null; | return createDragGestureRecognizer (MouseDragGestureRecognizer.class, c, actions, dgl); | createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl) { return null; } |
return null; | return Toolkit.getDefaultToolkit () .createDragGestureRecognizer (recognizer, this, c, actions, dgl); | createDragGestureRecognizer(Class recognizer, Component c, int actions, DragGestureListener dgl) { return null; } |
return null; | return (DragSourceListener[]) getListeners (DragSourceListener.class); | public DragSourceListener[] getDragSourceListeners() { return null; } |
return null; | return (DragSourceMotionListener[]) getListeners (DragSourceMotionListener.class); | public DragSourceMotionListener[] getDragSourceMotionListeners() { return null; } |
return null; | return flavorMap; | public FlavorMap getFlavorMap() { return null; } |
public EventListener[] getListeners(Class type) | public EventListener[] getListeners (Class listenerType) | public EventListener[] getListeners(Class type) { return null; } |
return null; | if (listenerType == DragSourceListener.class) return DnDEventMulticaster.getListeners (dragSourceListener, listenerType); if (listenerType == DragSourceMotionListener.class) return DnDEventMulticaster.getListeners (dragSourceMotionListener, listenerType); return new EventListener [0]; | public EventListener[] getListeners(Class type) { return null; } |
DnDEventMulticaster.remove (dragSourceListener, l); | public void removeDragSourceListener(DragSourceListener l) { } | |
DnDEventMulticaster.remove (dragSourceMotionListener, l); | public void removeDragSourceMotionListener(DragSourceMotionListener l) { } | |
int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) | String stdName = null; String dstName; int stdOffs; int dstOffs; try | static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt... |
char c = sysTimeZoneId.charAt(i); if (Character.isDigit(c)) startGMToffset = i; else if ((c == '+' || c == '-') && i + 1 < sysTimeZoneIdLength && Character.isDigit(sysTimeZoneId.charAt(i + 1))) startGMToffset = i; } String tzBasename; if (startGMToffset == 0) tzBasename = sysTimeZoneId; | int idLength = sysTimeZoneId.length(); int index = 0; int prevIndex; char c; do c = sysTimeZoneId.charAt(index++); while (c != '+' && c != '-' && c != ',' && c != ':' && ! Character.isDigit(c) && c != '\0' && index < idLength); if (index >= idLength) return (TimeZone)timezones().get(sysTimeZoneId); stdName = sysTi... | static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt... |
tzBasename = sysTimeZoneId.substring (0, startGMToffset); | stdOffs = parseTime(offset); | static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt... |
int startDaylightZoneName = 0; for (int i = sysTimeZoneIdLength - 1; i >= 0 && !Character.isDigit(sysTimeZoneId.charAt(i)); --i) startDaylightZoneName = i; boolean useDaylightTime = startDaylightZoneName > 0; if (sysTimeZoneId.charAt(startGMToffset) == '+') startGMToffset++; int gmtOffset = 0; if (startGMToffset > ... | if (offset.charAt(0) == '-') stdOffs = -stdOffs; stdOffs = -stdOffs; } if (index >= idLength) | static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt... |
gmtOffset = Integer.parseInt (startDaylightZoneName == 0 ? sysTimeZoneId.substring(startGMToffset) : sysTimeZoneId.substring(startGMToffset, startDaylightZoneName)); if (Math.abs(gmtOffset) < 24) gmtOffset *= 60 * 60; gmtOffset *= -1000; } TimeZone tz = (TimeZone) timezones().get(tzBasename); if (tz != null && ... | TimeZone tz = (TimeZone) timezones().get(stdName); if (tz != null) if (tz.getRawOffset() == stdOffs) return tz; | static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt... |
if (useDaylightTime) { String daylightZoneName; daylightZoneName = sysTimeZoneId.substring(startDaylightZoneName); if (!daylightZoneName.equals(tzBasename)) | return new SimpleTimeZone(stdOffs, stdName); } do c = sysTimeZoneId.charAt(index++); while (c != '+' && c != '-' && c != ',' && c != ':' && ! Character.isDigit(c) && c != '\0' && index < idLength); if (index >= idLength) | static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt... |
tz = (TimeZone) timezones().get(tzBasename); if (tz != null && tz.getRawOffset() == gmtOffset && tz.useDaylightTime()) return tz; } | TimeZone tz = (TimeZone) timezones().get(stdName); if (tz != null) if (tz.getRawOffset() == stdOffs && tz.useDaylightTime()) return tz; return new SimpleTimeZone(stdOffs, stdName); | static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt... |
if (startGMToffset > 0) | dstName = sysTimeZoneId.substring(prevIndex, --index); prevIndex = index; do c = sysTimeZoneId.charAt(index++); while ((c == '-' || c == '+' || c == ':' || Character.isDigit(c)) && index < idLength); if (index < idLength) index--; { String offset = sysTimeZoneId.substring(prevIndex, index); prevIndex = index; if (off... | static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt... |
String[] ids = getAvailableIDs(gmtOffset); for (int i = 0; i < ids.length; i++) { tz = (TimeZone) timezones().get(ids[i]); if (tz.useDaylightTime() == useDaylightTime) return tz; } | } catch (NumberFormatException _) { | static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt... |
} | public float getLayoutAlignmentX(Container parent) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); return xTotal.alignment; } | |
} | public float getLayoutAlignmentY(Container parent) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); return yTotal.alignment; } | |
} | public void invalidateLayout(Container parent) { xChildren = null; yChildren = null; xTotal = null; yTotal = null; offsetsX = null; offsetsY = null; spansX = null; spansY = null; } | |
} | public Dimension maximumLayoutSize(Container parent) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); return new Dimension(xTotal.maximum, yTotal.maximum); } | |
} | public Dimension minimumLayoutSize(Container parent) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); return new Dimension(xTotal.minimum, yTotal.minimum); } | |
} | public Dimension preferredLayoutSize(Container parent) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); Insets i = container.getInsets(); return new Dimension(xTotal.preferred + i.left + i.right, yTotal.preferred + i.top + ... | |
return ((DatagramChannelImpl) ch).getNativeFD(); | NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD(); | public int getNativeFD() { return ((DatagramChannelImpl) ch).getNativeFD(); } |
public String getInputMethodDisplayName(Locale inputLocale, | String getInputMethodDisplayName(Locale inputLocale, | public String getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage); |
public Image getInputMethodIcon(Locale inputLocale); | Image getInputMethodIcon(Locale inputLocale); | public Image getInputMethodIcon(Locale inputLocale); |
debug("start CertificateList len == " + val.getLength()); | if (Configuration.DEBUG) log.fine("start CertificateList len == " + val.getLength()); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("start tbsCertList len == " + val.getLength()); | if (Configuration.DEBUG) log.fine("start tbsCertList len == " + val.getLength()); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("read version == " + version); | if (Configuration.DEBUG) log.fine("read version == " + version); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("start AlgorithmIdentifier len == " + val.getLength()); | if (Configuration.DEBUG) log.fine("start AlgorithmIdentifier len == " + val.getLength()); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("read object identifier == " + algId); | if (Configuration.DEBUG) log.fine("read object identifier == " + algId); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("read parameters len == " + val.getEncodedLength()); | if (Configuration.DEBUG) log.fine("read parameters len == " + val.getEncodedLength()); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("read issuer == " + issuerDN); | if (Configuration.DEBUG) log.fine("read issuer == " + issuerDN); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("read thisUpdate == " + thisUpdate); | if (Configuration.DEBUG) log.fine("read thisUpdate == " + thisUpdate); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("read nextUpdate == " + nextUpdate); | if (Configuration.DEBUG) log.fine("read nextUpdate == " + nextUpdate); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("start Extensions len == " + exts.getLength()); | if (Configuration.DEBUG) log.fine("start Extensions len == " + exts.getLength()); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("current count == " + len); | if (Configuration.DEBUG) log.fine("current count == " + len); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("read tag == " + val.getTag()); | if (Configuration.DEBUG) log.fine("read tag == " + val.getTag()); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("read tag == " + sigAlgVal.getTag()); | if (Configuration.DEBUG) log.fine("read tag == " + sigAlgVal.getTag()); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("signature id == " + sigAlg); debug("sigAlgVal length == " + sigAlgVal.getEncodedLength()); | if (Configuration.DEBUG) { log.fine("signature id == " + sigAlg); log.fine("sigAlgVal length == " + sigAlgVal.getEncodedLength()); } | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("sig params tag = " + val.getTag() + " len == " + val.getEncodedLength()); | if (Configuration.DEBUG) log.fine("sig params tag = " + val.getTag() + " len == " + val.getEncodedLength()); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
debug("read tag = " + val.getTag()); | if (Configuration.DEBUG) log.fine("read tag = " + val.getTag()); | private void parse(InputStream in) throws Exception { // CertificateList ::= SEQUENCE { DERReader der = new DERReader(in); DERValue val = der.read(); debug("start CertificateList len == " + val.getLength()); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded ... |
} | } catch (DriverException ex) { throw new DeviceException(ex); } | public synchronized Surface open(FrameBufferConfiguration config) throws UnknownConfigurationException, AlreadyOpenException, DeviceException { if (currentConfig != null) { throw new AlreadyOpenException(); } else if (config.equals(CONFIGS[0])) { try { vga = new VGASurface(this); currentConfig = config; ... |
revalidate(); repaint(); | public void updateUI() { setUI((ToolTipUI) UIManager.getUI(this)); revalidate(); repaint(); } | |
name = new X500DistinguishedName(buf); | parseDer (new ByteArrayInputStream (buf)); | private void readObject(ObjectInputStream in) throws IOException, NotActiveException, ClassNotFoundException { byte[] buf = (byte[]) in.readObject(); name = new X500DistinguishedName(buf); } |
out.writeObject(name.getEncoded()); | if (encoded != null) encodeDer(); out.writeObject (encoded); | private void writeObject(ObjectOutputStream out) throws IOException { out.writeObject(name.getEncoded()); } |
c.repaint(b.x, b.y, b.width, b.height); | public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ... | |
c.repaint(b.x, b.y, b.width, b.height); } | protected void removeIconFor(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); if (c != null && icon != null) c.remove(icon); } | |
public boolean shouldScroll(int direction) | boolean shouldScroll(int direction) | public boolean shouldScroll(int direction) { int value; if (scrollbar.getOrientation() == HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (thumbRect.contains(currentMouseX, currentMouseY)) return false; if (direction ==... |
width += (scrollbar.getMaximum() - scrollbar.getMinimum()); | width += 16; | void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ... |
height += (scrollbar.getMaximum() - scrollbar.getMinimum()); | height += 16; | void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ... |
int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SOUTH); decrButton = createDecreaseButton(NORTH); break; } | protected void installComponents() { if (incrButton != null) scrollbar.add(incrButton); if (decrButton != null) scrollbar.add(decrButton); } | |
int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SOUTH); decrButton = createDecreaseButton(NORTH); break; } | protected void installDefaults() { int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SO... | |
throws NotImplementedException | public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) throws NotImplementedException { // XXX Implement. Sun uses undocumented implementation class // sun.java2d.SunComposi... | |
throw new Error("not implemented"); | return new AlphaCompositeContext(this, srcColorModel, dstColorModel); | public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) throws NotImplementedException { // XXX Implement. Sun uses undocumented implementation class // sun.java2d.SunComposi... |
if (b.getBackground() instanceof UIResource) | protected void uninstallDefaults(AbstractButton b) { if (b.getFont() instanceof UIResource) b.setFont(null); b.setForeground(null); b.setBackground(null); if (b.getBorder() instanceof UIResource) b.setBorder(null); b.setIconTextGap(defaultTextIconGap); if (b.getMargin() instanceof UIResourc... | |
public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; | public static Object instantiate (ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if (cl == null) { serStream = ClassLoader.getSystemResourceAsStream (beanName.replace ('.','/')+".ser"); } else { serStream = cl.getResourceAsStream (beanName.replace ('.'... | public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('... |
InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('.','/')+".ser"); } if(serStream != null) { if(cl == null) { ObjectInputStream ois = new ObjectInputStream(serStream); bean = ois.read... | if(bean instanceof Applet) { Applet a = (Applet)bean; if(serStream == null) { a.init(); } } | public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('... |
if(bean instanceof Applet) { Applet a = (Applet)bean; if(serStream == null) { a.init(); } } return bean; } | return bean; } | public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if(cl == null) { serStream = ClassLoader.getSystemResourceAsStream(beanName.replace('.','/')+".ser"); } else { serStream = cl.getResourceAsStream(beanName.replace('... |
new BorderUIResource.LineBorderUIResource(getControlShadow()), | new BorderUIResource.LineBorderUIResource(getFocusColor()), | protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get... |
r = new TTFTextRenderer(getFontData(font), font.getSize()); | r = new TTFTextRenderer(renderCache, getFontData(font), font.getSize()); | public TextRenderer getTextRenderer(Font font) { TextRenderer r = (TextRenderer) renderers.get(font); if (r == null) { r = new TTFTextRenderer(getFontData(font), font.getSize()); renderers.put(font, r); } return r; } |
super.processKeyEvent(e); | protected void processKeyEvent(KeyEvent e) { processComponentKeyEvent(e); // FIXME: this needs to be elaborated significantly, to do all the // focus / ancestor / window searching for the various binding modes. if (! e.isConsumed() && processKeyBinding(KeyStroke.getKeyStrokeForEvent(e), ... | |
if (tid == null | tid.getReference().get () == null) | if (tid.getReference().get () == null) | public ThreadOnlyFilter (ThreadId tid) throws InvalidThreadException { if (tid == null | tid.getReference().get () == null) throw new InvalidThreadException (tid.getId ()); _tid = tid; } |
private static final NumberFormat computeInstance (Locale loc, String resource, | private static NumberFormat computeInstance(Locale loc, String resource, | private static final NumberFormat computeInstance (Locale loc, String resource, String def) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res... |
private final void secureSetAccessible(boolean flag) | private void secureSetAccessible(boolean flag) | private final void secureSetAccessible(boolean flag) { if (flag && (this instanceof Constructor && ((Constructor) this).getDeclaringClass() == Class.class)) throw new SecurityException("Cannot make object accessible: " + this); this.flag = flag; } |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return PDLOverrideSupported.class; } |
public final String getName() | public String getName() | public final String getName() { return "pdl-override-supported"; } |
public int getModifiers() { return vmMethod.getModifiers(); } | public int getModifiers() { return getModifiersInternal() & CONSTRUCTOR_MODIFIERS; } | public int getModifiers() { return vmMethod.getModifiers(); } |
if (isPublic(mod)) r.append("public "); if (isProtected(mod)) r.append("protected "); if (isPrivate(mod)) r.append("private "); if (isAbstract(mod)) r.append("abstract "); if (isStatic(mod)) r.append("static "); if (isFinal(mod)) r.append("final "); if (isTransient(mod)) r.append("transient "); if (isVolatile(mod)) r.a... | return toString(mod, new StringBuilder()).toString(); | static StringBuffer toString(int mod, StringBuffer r) { if (isPublic(mod)) r.append("public "); if (isProtected(mod)) r.append("protected "); if (isPrivate(mod)) r.append("private "); if (isAbstract(mod)) r.append("abstract "); if (isStatic(mod)) r.append("static "); if (is... |
public abstract void initialize(AbstractVmClassLoader loader); | public abstract void initialize(VmClassLoader loader); | public abstract void initialize(AbstractVmClassLoader loader); |
if (old != value) | if (old == null || !old.equals(value)) | public void putValue(String key, Object value) { Object old = getValue(key); if (old != value) { store.put(key, value); firePropertyChange(key, old, value); } } |
if (msg.toString().length() > maxll) | if (msg.toString().length() > maxll || msg.toString().contains("\n")) | protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) { if (msg == null) return; hasCustomComponents = internallyCreated; if (msg instanceof Object[]) ... |
JLabel label = new JLabel(d); | int newlineIndex = d.indexOf('\n'); String line; String remainder; if (newlineIndex >= 0 && newlineIndex < maxll) { line = d.substring(0, newlineIndex); remainder = d.substring(newlineIndex + 1); } else { line = d.substring(0, maxll); remainder = d.substring(maxll); } JLabel label = new JLabel(line); | protected void burstStringInto(Container c, String d, int maxll) { // FIXME: Verify that this is the correct behaviour. // One interpretation of the spec is that this method // should recursively call itself to create (and add) // JLabels to the container if the length of the String d // is greater t... |
if (remainder.length() == 0) return; if ((remainder.length() > maxll || remainder.contains("\n"))) burstStringInto(c, remainder, maxll); else c.add(new JLabel(remainder)); | protected void burstStringInto(Container c, String d, int maxll) { // FIXME: Verify that this is the correct behaviour. // One interpretation of the spec is that this method // should recursively call itself to create (and add) // JLabels to the container if the length of the String d // is greater t... | |
os.writeTEST(X86Register.EAX, X86Constants.F_CF | X86Constants.F_ZF); | os.writeTEST(X86Register.EAX, (X86Constants.F_CF | X86Constants.F_ZF) << 8); | final void compare(boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final X86Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); // We need reg to be ST1. ... |
os.writeTEST(X86Register.EAX, X86Constants.F_CF); | os.writeTEST(X86Register.EAX, (X86Constants.F_CF) << 8); | final void compare(boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final X86Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); // We need reg to be ST1. ... |
public final void disableReschedule(boolean claimSchedulerLock, ProcessorLock otherLock) { | public final void disableReschedule(boolean claimSchedulerLock) { | public final void disableReschedule(boolean claimSchedulerLock, ProcessorLock otherLock) { getTSIAddress().atomicOr(Word.fromIntSignExtend(TSI_BLOCK_SWITCH)); lockCount++; if (claimSchedulerLock) { scheduler.lock(otherLock); } } |
scheduler.lock(otherLock); } | scheduler.lock(); } | public final void disableReschedule(boolean claimSchedulerLock, ProcessorLock otherLock) { getTSIAddress().atomicOr(Word.fromIntSignExtend(TSI_BLOCK_SWITCH)); lockCount++; if (claimSchedulerLock) { scheduler.lock(otherLock); } } |
public final void enableReschedule(boolean releaseSchedulerLock, ProcessorLock otherLock) { | public final void enableReschedule(boolean releaseSchedulerLock) { | public final void enableReschedule(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (releaseSchedulerLock) { scheduler.unlock(otherLock); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_... |
scheduler.unlock(otherLock); | scheduler.unlock(); | public final void enableReschedule(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (releaseSchedulerLock) { scheduler.unlock(otherLock); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_... |
scheduler.addToReadyQueue(current, false); | scheduler.addToReadyQueue(current, false, getIdString()); | final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.