bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected void etherealizeAll() { if (servant_activator == null) return; ArrayList keys = new ArrayList(); keys.addAll(aom.keySet()); byte[] key; activeObjectMap.Obj obj; boolean last; for (int i = 0; i < keys.size(); i++) { key = (byte[]) keys.get(i); obj = aom.get(key);... | protected void etherealizeAll() { if (servant_activator == null) return; ArrayList keys = new ArrayList(); keys.addAll(aom.keySet()); byte[] key; AOM.Obj obj; boolean last; for (int i = 0; i < keys.size(); i++) { key = (byte[]) keys.get(i); obj = aom.get(key); if (... | 39,929 |
public activeObjectMap.Obj findKey(byte[] object_id, byte[] poa_id) { activeObjectMap.Obj h = null; if (Arrays.equals(poa_id, id())) h = aom.get(object_id); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i))... | public AOM.Obj findKey(byte[] object_id, byte[] poa_id) { activeObjectMap.Obj h = null; if (Arrays.equals(poa_id, id())) h = aom.get(object_id); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findKey(obj... | 39,930 |
public activeObjectMap.Obj findKey(byte[] object_id, byte[] poa_id) { activeObjectMap.Obj h = null; if (Arrays.equals(poa_id, id())) h = aom.get(object_id); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i))... | public activeObjectMap.Obj findKey(byte[] object_id, byte[] poa_id) { AOM.Obj h = null; if (Arrays.equals(poa_id, id())) h = aom.get(object_id); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findKey(obj... | 39,931 |
public byte[] id() { if (m_poa_id != null) return m_poa_id; else { cdrBufOutput buffer = new cdrBufOutput(); POA p = this; while (p != null) { buffer.write_string(p.the_name()); p = p.the_parent(); } m_poa_id = buffer.buffer.toByteAr... | public byte[] id() { if (m_poa_id != null) return m_poa_id; else { BufferedCdrOutput buffer = new BufferedCdrOutput(); POA p = this; while (p != null) { buffer.write_string(p.the_name()); p = p.the_parent(); } m_poa_id = buffer.buffe... | 39,932 |
public org.omg.CORBA.Object id_to_reference(byte[] the_Object_Id) throws ObjectNotActive, WrongPolicy { required(ServantRetentionPolicyValue.RETAIN); activeObjectMap.Obj ref = aom.get(the_Object_Id); if (ref == null) throw new ObjectNotActive(); else return... | public org.omg.CORBA.Object id_to_reference(byte[] the_Object_Id) throws ObjectNotActive, WrongPolicy { required(ServantRetentionPolicyValue.RETAIN); AOM.Obj ref = aom.get(the_Object_Id); if (ref == null) throw new ObjectNotActive(); else return ref.object;... | 39,933 |
private Servant incarnate(activeObjectMap.Obj x, byte[] object_key, Servant a_servant, boolean use_forwarding ) { if (servant_activator != null) { Servant servant; try { servant = servant_activator.incarnate(object_key, th... | private Servant incarnate(AOM.Obj x, byte[] object_key, Servant a_servant, boolean use_forwarding ) { if (servant_activator != null) { Servant servant; try { servant = servant_activator.incarnate(object_key, this); ... | 39,934 |
private void locateServant(byte[] an_Object_Id, Servant a_servant, activeObjectMap.Obj exists, boolean use_forwarding ) throws InternalError { // An object was created with create_reference. gnuServantObject object = (gnuServantObject)... | private void locateServant(byte[] an_Object_Id, Servant a_servant, AOM.Obj exists, boolean use_forwarding ) throws InternalError { // An object was created with create_reference. gnuServantObject object = (gnuServantObject) exists.obje... | 39,935 |
private void locateServant(byte[] an_Object_Id, Servant a_servant, activeObjectMap.Obj exists, boolean use_forwarding ) throws InternalError { // An object was created with create_reference. gnuServantObject object = (gnuServantObject)... | private void locateServant(byte[] an_Object_Id, Servant a_servant, activeObjectMap.Obj exists, boolean use_forwarding ) throws InternalError { // An object was created with create_reference. gnuServantObject object = (gnuServantObject)... | 39,936 |
public byte[] reference_to_id(org.omg.CORBA.Object the_Object) throws WrongAdapter, WrongPolicy { activeObjectMap.Obj ref = aom.findObject(the_Object); if (ref == null) throw new WrongAdapter(); return ref.key; } | public byte[] reference_to_id(org.omg.CORBA.Object the_Object) throws WrongAdapter, WrongPolicy { AOM.Obj ref = aom.findObject(the_Object); if (ref == null) throw new WrongAdapter(); return ref.key; } | 39,937 |
public Servant reference_to_servant(org.omg.CORBA.Object the_Object) throws ObjectNotActive, WrongPolicy, WrongAdapter { if (applies(ServantRetentionPolicyValue.RETAIN)) { activeObjectMap.Obj ref = aom.findObject(the_Object); if... | public Servant reference_to_servant(org.omg.CORBA.Object the_Object) throws ObjectNotActive, WrongPolicy, WrongAdapter { if (applies(ServantRetentionPolicyValue.RETAIN)) { AOM.Obj ref = aom.findObject(the_Object); if (ref == nul... | 39,938 |
public byte[] servant_to_id(Servant the_Servant) throws ServantNotActive, WrongPolicy { if (applies(RequestProcessingPolicyValue.USE_DEFAULT_SERVANT) || applies(ServantRetentionPolicyValue.RETAIN) && ( applies(IdUniquenessPolicyValue.UNIQUE_ID) || applies(Impl... | public byte[] servant_to_id(Servant the_Servant) throws ServantNotActive, WrongPolicy { if (applies(RequestProcessingPolicyValue.USE_DEFAULT_SERVANT) || applies(ServantRetentionPolicyValue.RETAIN) && ( applies(IdUniquenessPolicyValue.UNIQUE_ID) || applies(Impl... | 39,939 |
public byte[] toIORKey(byte[] object_id) { cdrBufOutput buffer = new cdrBufOutput(); buffer.write_long(SIGNATURE); buffer.write_sequence(object_id); buffer.write_sequence(id()); return buffer.buffer.toByteArray(); } | public byte[] toIORKey(byte[] object_id) { BufferedCdrOutput buffer = new BufferedCdrOutput(); buffer.write_long(SIGNATURE); buffer.write_sequence(object_id); buffer.write_sequence(id()); return buffer.buffer.toByteArray(); } | 39,940 |
public AffineTransformOp (AffineTransform xform, int interpolationType) { this.transform = xform; if (interpolationType == 0) hints = new RenderingHints (RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); else h... | public AffineTransformOp (AffineTransform xform, int interpolationType) { this.transform = xform; switch (interpolationType) { case TYPE_BILINEAR: hints = new RenderingHints (RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); ... | 39,941 |
public AffineTransformOp (AffineTransform xform, int interpolationType) { this.transform = xform; if (interpolationType == 0) hints = new RenderingHints (RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); else h... | public AffineTransformOp (AffineTransform xform, int interpolationType) { this.transform = xform; if (interpolationType == 0) hints = new RenderingHints (RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); break; case TY... | 39,942 |
public AffineTransformOp (AffineTransform xform, int interpolationType) { this.transform = xform; if (interpolationType == 0) hints = new RenderingHints (RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); else h... | } } } } public} AffineTransformOp} (AffineTransform} xform,} int} interpolationType)} } } } {} } } } } } this.transform} =} xform;} } } } } } if} (interpolationType} ==} 0)} } } } } } } } } hints} =} new} RenderingHints} (RenderingHints.KEY_INTERPOLATION,} } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }... | 39,943 |
protected AccessibleAWTPanel() { } | protected AccessibleAWTPanel() { } | 39,944 |
public AccessibleRole getAccessibleRole() { return AccessibleRole.PANEL; } | public AccessibleRole getAccessibleRole() { return AccessibleRole.PANEL; } | 39,945 |
public Panel() { this(new FlowLayout()); } | public Panel() { this(new FlowLayout()); } | 39,946 |
public void addNotify() { if (peer == null) peer = getToolkit().createPanel(this); super.addNotify(); } | public void addNotify() { if (peer == null) peer = getToolkit().createPanel(this); super.addNotify(); } | 39,947 |
public AccessibleContext getAccessibleContext() { if (context == null) context = new AccessibleAWTPanel(); return context; } | public AccessibleContext getAccessibleContext() { if (context == null) context = new AccessibleAWTPanel(); return context; } | 39,948 |
public VolatileImage createVolatileImage(int width, int height) { Component parent = awtComponent.getParent(); ComponentPeer parentPeer = parent.getPeer(); return parentPeer.createVolatileImage(width, height); } | public VolatileImage createVolatileImage(int width, int height) { Component parent = awtComponent.getParent(); ComponentPeer parentPeer = parent.getPeer(); im = parentPeer.createVolatileImage(width, height); } return im; } | 39,949 |
public void handleEvent(AWTEvent e) { switch (e.getID()) { case PaintEvent.UPDATE: case PaintEvent.PAINT: Graphics g = getGraphics(); Rectangle clip = ((PaintEvent)e).getUpdateRect(); g.clipRect(clip.x, clip.y, clip.width, clip.height); //if (this instanceof LightweightPee... | publicvoidhandleEvent(AWTEvente){switch(e.getID()){casePaintEvent.UPDATE:casePaintEvent.PAINT:Graphicsg=getGraphics();Rectangleclip=((PaintEvent)e).getUpdateRect();g.clipRect(clip.x,clip.y,clip.width,clip.height);//if(thisinstanceofLightweightPeer)//{if(e.getID()==PaintEvent.UPDATE)awtComponent.update(g);elseawtCompone... | 39,950 |
public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); boolean res; if(parent != null) { ComponentPeer parentPeer = parent.getPeer(); res = parentPeer.prepareImage(img, width, height, ob); } else { res... | public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); if(parent != null) { ComponentPeer parentPeer = parent.getPeer(); res = parentPeer.prepareImage(img, width, height, ob); } else { res = Toolkit.ge... | 39,953 |
public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); boolean res; if(parent != null) { ComponentPeer parentPeer = parent.getPeer(); res = parentPeer.prepareImage(img, width, height, ob); } else { res... | public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); boolean res; if(parent != null) { ComponentPeer parentPeer = parent.getPeer(); return parentPeer.prepareImage(img, width, height, ob); } else { re... | 39,954 |
public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); boolean res; if(parent != null) { ComponentPeer parentPeer = parent.getPeer(); res = parentPeer.prepareImage(img, width, height, ob); } else { res... | public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); boolean res; if(parent != null) { ComponentPeer parentPeer = parent.getPeer(); res = parentPeer.prepareImage(img, width, height, ob); } else { ret... | 39,955 |
public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); boolean res; if(parent != null) { ComponentPeer parentPeer = parent.getPeer(); res = parentPeer.prepareImage(img, width, height, ob); } else { res... | public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); boolean res; if(parent != null) { ComponentPeer parentPeer = parent.getPeer(); res = parentPeer.prepareImage(img, width, height, ob); } else { res... | 39,956 |
public void setVisible(boolean visible) { if (swingComponent != null) swingComponent.getJComponent().setVisible(visible); } | public void setVisible(boolean visible) { if (swingComponent != null) swingComponent.getJComponent().setVisible(visible); } | 39,957 |
private void nonLeniencyCheck() throws IllegalArgumentException { int[] month_days = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int year = fields[YEAR]; int month = fields[MONTH]; int leap = isLeapYear(year) ? 1 : 0; if (isSet[ERA] && fields[ERA] != AD && fields[ERA] != BC) throw new Il... | private void nonLeniencyCheck() throws IllegalArgumentException { int[] month_days = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int year = fields[YEAR]; int month = fields[MONTH]; int leap = isLeapYear(year) ? 1 : 0; if (isSet[ERA] && fields[ERA] != AD && fields[ERA] != BC) throw new Il... | 39,958 |
public static boolean isJavaIdentifierStart(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << LETTER_NUMBER) ... | public static boolean isJavaIdentifierStart(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << LETTER_NUMBER) ... | 39,960 |
public final void execute() throws BuildException { final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { piList = getPlugin... | public final void execute() throws BuildException { final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { piList = getPlugin... | 39,961 |
public final void execute() throws BuildException { final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { piList = getPlugin... | public final void execute() throws BuildException { final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { piList = getPlugin... | 39,962 |
public final void execute() throws BuildException { final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { piList = getPlugin... | public final void execute() throws BuildException { final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { piList = getPlugin... | 39,963 |
public VmClassLoader getClsMgr() { return clsMgr; } | public VmClassLoader getClsMgr() { return clsMgr; } | 39,964 |
public Component getComponentAtIndex(int i) { return getComponentAt(i); } | public Component getComponentAtIndex(int i) { return getComponent(i); } | 39,965 |
public boolean isBorderPainted() { return paintBorder; } | public boolean isBorderPainted() { return borderPainted; } | 39,966 |
protected void paintBorder(Graphics g) { if (paintBorder) getBorder().paintBorder(this, g, 0, 0, getSize(null).width, getSize(null).height); } | protected void paintBorder(Graphics g) { if (borderPainted) getBorder().paintBorder(this, g, 0, 0, getSize(null).width, getSize(null).height); } | 39,967 |
public void setBorderPainted(boolean b) { paintBorder = b; } | public void setBorderPainted(boolean b) { boolean old = borderPainted; borderPainted = b; if (b != old) { firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); } } | 39,968 |
public void doPass2(BootableHashMap liveVariables) { } | public void doPass2(BootableHashMap liveVariables) { } | 39,970 |
public final Class getCategory() { return PrinterStateReason.class; } | public Class getCategory() { return PrinterStateReason.class; } | 39,971 |
public final String getName() { return "printer-state-reason"; } | public String getName() { return "printer-state-reason"; } | 39,972 |
public AttributeSet getAttributes() { // FIXME: return getStyleSheet().getViewAttributes(this); return super.getAttributes(); } | public AttributeSet getAttributes() { // FIXME: return getStyleSheet().getViewAttributes(this); return getStyleSheet().getViewAttributes(this); } | 39,973 |
public void paint(Graphics g, Shape a) { Rectangle rect = (Rectangle) a; // FIXME: getStyleSheet(). // BoxPainter.paint(g, rect.x, rect.y, rect.width, rect.height, this); super.paint(g, a); } | getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.height, this); public void paint(Graphics g, Shape a) getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.height, this); { getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y... | 39,974 |
public void layoutContainer(Container pane) { super.layoutContainer(pane); int tabCount = tabPane.getTabCount(); if (tabCount == 0) return; int tabPlacement = tabPane.getTabPlacement(); incrButton.hide(); decrButton.hide(); if (tabPlacement == SwingConstants.TOP || tab... | public void layoutContainer(Container pane) { super.layoutContainer(pane); int tabCount = tabPane.getTabCount(); if (tabCount == 0) return; int tabPlacement = tabPane.getTabPlacement(); incrButton.hide(); decrButton.hide(); if (tabPlacement == SwingConstants.TOP || tab... | 39,976 |
protected JButton createDecreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); return new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); } | protected JButton createDecreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); decreaseButton = new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); return decreaseButton; } | 39,977 |
protected JButton createIncreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); return new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); } | protected JButton createIncreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); increaseButton = new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); return increaseButton; } | 39,978 |
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ... | protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ... | 39,981 |
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ... | protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ... | 39,982 |
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ... | protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ... | 39,983 |
private void paintTrackHorizontal(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x + w - 1, y, x + w - 1, y + h - 1);... | private void paintTrackHorizontal(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x + w - 1, y, x + w - 1, y + h - 1);... | 39,984 |
private void paintTrackHorizontal(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x + w - 1, y, x + w - 1, y + h - 1);... | private void paintTrackHorizontal(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x + w - 1, y, x + w - 1, y + h - 1);... | 39,985 |
protected void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);... | private void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1); ... | 39,987 |
protected void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);... | protected void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);... | 39,988 |
protected void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);... | protected void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);... | 39,989 |
public void setView(Component v) { if (viewListener != null) getView().removeComponentListener(viewListener); if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(viewListener); add(v); fireStateChanged(); } re... | public void setView(Component v) { if (viewListener != null) getView().removeComponentListener(viewListener); if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(viewListener); add(v); fireStateChanged(); } re... | 39,991 |
public VmScheduler(VmArchitecture architecture) { this.architecture = architecture; this.allThreadsLock = new ProcessorLock(); this.allThreadsQueue = new VmAllThreadsQueue("scheduler-all"); this.queueLock = new ProcessorLock(); this.readyQueue = new VmThreadScheduleQueue("schedule... | public VmScheduler(VmArchitecture architecture) { this.architecture = architecture; this.allThreadsLock = new ProcessorLock(); this.allThreadsQueue = new VmAllThreadsQueue("scheduler-all"); this.queueLock = new ProcessorLock(); this.readyQueue = new VmThreadScheduleQueue("schedule... | 39,993 |
public VmScheduler(VmArchitecture architecture) { this.architecture = architecture; this.allThreadsLock = new ProcessorLock(); this.allThreadsQueue = new VmAllThreadsQueue("scheduler-all"); this.queueLock = new ProcessorLock(); this.readyQueue = new VmThreadScheduleQueue("schedule... | public VmScheduler(VmArchitecture architecture) { this.architecture = architecture; this.allThreadsLock = new ProcessorLock(); this.allThreadsQueue = new VmAllThreadsQueue("scheduler-all"); this.queueLock = new ProcessorLock(); this.readyQueue = new VmThreadScheduleQueue("schedule... | 39,994 |
final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.th... | final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.th... | 39,995 |
final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.th... | final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.th... | 39,996 |
final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.th... | final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.th... | 39,997 |
private final void processKdbInput(int input) { switch ((char) input) { case '?': case 'h': Unsafe.debug("Commands:\n"); Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); Unsafe.debug("l Show Load/Compi... | private final void processKdbInput(int input) { switch ((char) input) { case '?': case 'h': Unsafe.debug("Commands:\n"); Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); Unsafe.debug("l Show Load/Compi... | 39,998 |
private final void processKdbInput(int input) { switch ((char) input) { case '?': case 'h': Unsafe.debug("Commands:\n"); Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); Unsafe.debug("l Show Load/Compi... | private final void processKdbInput(int input) { switch ((char) input) { case '?': case 'h': Unsafe.debug("Commands:\n"); Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); Unsafe.debug("l Show Load/Compi... | 39,999 |
private final void processKdbInput(int input) { switch ((char) input) { case '?': case 'h': Unsafe.debug("Commands:\n"); Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); Unsafe.debug("l Show Load/Compi... | private final void processKdbInput(int input) { switch ((char) input) { case '?': case 'h': Unsafe.debug("Commands:\n"); Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); Unsafe.debug("l Show Load/Compi... | 40,000 |
private void init(int numBits, Random rnd) { int highbits = numBits & 31; if (highbits > 0) highbits = rnd.nextInt() >>> (32 - highbits); int nwords = numBits / 32; while (highbits == 0 && nwords > 0) { highbits = rnd.nextInt(); --nwords; } if (nwords == 0 && highbits >= 0) { ival ... | private void init(int numBits, Random rnd) { int highbits = numBits & 31; if (highbits > 0) { rnd.nextBytes(highBitBytes); highbits = (highBitBytes[highBitByteCount - 1] & 0xFF) >>> discardedBitCount; for (int i = highBitByteCount - 2; i >= 0; i--) highbits = (highbits << 8) | (highBitBytes[i] & 0xFF); } ... | 40,001 |
public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | 40,002 |
public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | public ListIterator<E> listIterator(final int index) { checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more objects to ... | 40,003 |
public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | 40,004 |
public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | public ListIterator<E> listIterator(final int index) { checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more objects to ... | 40,005 |
public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | 40,006 |
public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | 40,007 |
public boolean hasNext() { checkMod(); return position < size; } | public boolean hasNext() { checkMod(); return position < size; } | 40,008 |
public boolean hasPrevious() { checkMod(); return position > 0; } | public boolean hasPrevious() { checkMod(); return position > 0; } | 40,009 |
public boolean hasNext() { checkMod(); return pos < size; } | public boolean hasNext() { return pos < size; } | 40,010 |
public boolean hasNext() { checkMod(); return position < size; } | public boolean hasNext() { return position < size; } | 40,011 |
public boolean hasPrevious() { checkMod(); return position > 0; } | public boolean hasPrevious() { return position > 0; } | 40,012 |
public int nextIndex() { checkMod(); return position; } | public int nextIndex() { return position; } | 40,013 |
public int previousIndex() { checkMod(); return position - 1; } | public int previousIndex() { return position - 1; } | 40,014 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { setValue(value); setOpaque(true... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { setValue(value); setOpaque(true... | 40,015 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { setValue(value); setOpaque(true... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { setValue(value); setOpaque(true... | 40,016 |
protected void installDefaults() { LookAndFeel.installColorsAndFont(table, "Table.background", "Table.foreground", "Table.font"); table.setGridColor(UIManager.getColor("Table.gridColor")); table.setSelectionForeground(UIManager.getColor("Table.selectionForeground")); ... | protected void installDefaults() { LookAndFeel.installColorsAndFont(table, "Table.background", "Table.foreground", "Table.font"); table.setGridColor(UIManager.getColor("Table.gridColor")); table.setSelectionForeground(UIManager.getColor("Table.selectionForeground")); ... | 40,021 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | int halfGapWidth = gap.width / 2; int halfGapHeight = gap.height / 2; int halfGapWidth = gap.width / 2; int halfGapHeight = gap.height / 2; publicint halfGapWidth = gap.width / 2; int halfGapHeight = gap.height / 2; voidint halfGapWidth = gap.width / 2; int halfGapHeight = gap.height / 2; paint(Graphicsint halfGapWidth... | 40,023 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | 40,024 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | 40,025 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | 40,026 |
void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { boolean isSel = table.isCellSelected(row, col); boolean hasFocus = (table.getSelectionModel().getLeadSelectionIndex() == row) && table.hasFocus(); ... | void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { boolean isSel = table.isCellSelected(row, col); boolean hasFocus = (table.getSelectionModel().getLeadSelectionIndex() == row) && table.hasFocus(); ... | 40,027 |
void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { boolean isSel = table.isCellSelected(row, col); boolean hasFocus = (table.getSelectionModel().getLeadSelectionIndex() == row) && table.hasFocus(); ... | void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { boolean isSel = table.isCellSelected(row, col); boolean hasFocus = (table.getSelectionModel().getLeadSelectionIndex() == row) && table.hasFocus(); ... | 40,028 |
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | 40,030 |
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | 40,031 |
countMenus(){ return(getMenuCount());} | countMenus(){ return(getMenuCount());} | 40,032 |
public RenderingHints getRenderingHints() { return hints; } | public final RenderingHints getRenderingHints() { return hints; } | 40,033 |
public PolicyFile(URL defaultPolicy) { if (defaultPolicy == null) { throw new IllegalArgumentException( "defaultPolicy cannot be null"); } this.defaultPolicy = defaultPolicy; cs2pc = new HashMap(); refresh(); } | public PolicyFile(URL defaultPolicy) { if (defaultPolicy == null) { throw new IllegalArgumentException( "defaultPolicy cannot be null"); } this.defaultPolicy = defaultPolicy; cs2pc = new HashMap(); refresh(); } | 40,034 |
private static void error(Throwable t) { System.err.println(">> PolicyFile"); t.printStackTrace(System.err); } | private static void error(Throwable t) { System.err.println(">> PolicyFile"); t.printStackTrace(System.err); } | 40,035 |
private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | 40,036 |
private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | 40,037 |
private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | 40,038 |
private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | 40,039 |
private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | 40,040 |
private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | 40,041 |
private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | 40,042 |
private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | private static String expand(final String s) { final StringBuffer result = new StringBuffer(); final StringBuffer prop = new StringBuffer(); int state = 0; for (int i = 0; i < s.length(); i++) { switch (state) { case 0: if (s.charAt(i) == '$') ... | 40,043 |
public final PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); i... | public PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); if (cs.... | 40,044 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.