bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static void write(OutputStream output, TaggedProfile value) { output.write_long(value.tag); if (output instanceof cdrBufOutput) { // Highly probable. output.write_long(value.profile_data.length); try { output.write(value.profile_data); } catc...
public static void write(OutputStream output, TaggedProfile value) { output.write_long(value.tag); if (output instanceof BufferedCdrOutput) { // Highly probable. output.write_long(value.profile_data.length); try { output.write(value.profile_data); } ...
17,729
public static Color convertValue(String value) { Color color; String val1 = value.toLowerCase(); if (val1.charAt(0) != '#') val1 = (String) COLOR_MAP.get(val1); if (val1 != null) { String hexVal = val1.substring(1); int rgb = Integer.parseInt(hexVal, 16); color = new Color(...
public static Color convertValue(String value) { Color color; String val1 = value.toLowerCase(); if (val1.charAt(0) != '#') val1 = (String) COLOR_MAP.get(val1); if (val1 != null) { String hexVal = val1.substring(1).trim(); try { int rgb = Integer.parseInt(hexVal, 16); color...
17,730
public InvalidNameException (String msg) { super (msg); }
public InvalidNameException () { super (msg); }
17,732
public InvalidNameException (String msg) { super (msg); }
public InvalidNameException (String msg) { super (); }
17,733
private final int incRefCount() { final boolean initialize; final int rc; synchronized (initCloseLock) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDevice dev = (JNodeFrameBufferDevice) GraphicsEnvironment .getLo...
private final int incRefCount() { final boolean initialize; final int rc; synchronized (initCloseLock) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDevice dev = (JNodeFrameBufferDevice) GraphicsEnvironment .getLo...
17,734
public Image getScaledInstance(int width, int height, int flags) { ImageFilter filter; switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: filter = new ReplicateScaleFilter(width, height); break; case SCALE_AREA_AVERAGING: filter = new AreaAveragingScaleFilter(wid...
public Image getScaledInstance(int width, int height, int flags) { ImageFilter filter; switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: filter = new ReplicateScaleFilter(width, height); break; case SCALE_AREA_AVERAGING: filter = new AreaAveragingScaleFilter(wid...
17,735
public abstract void addConsumer(ImageConsumer ic);
void addConsumer(ImageConsumer ic);
17,736
public abstract boolean isConsumer(ImageConsumer ic);
boolean isConsumer(ImageConsumer ic);
17,737
public abstract void removeConsumer(ImageConsumer ic);
void removeConsumer(ImageConsumer ic);
17,738
public abstract void requestTopDownLeftRightResend(ImageConsumer ic);
void requestTopDownLeftRightResend(ImageConsumer ic);
17,739
public abstract void startProduction(ImageConsumer ic);
void startProduction(ImageConsumer ic);
17,740
public abstract void imageComplete(int status);
void imageComplete(int status);
17,741
public MouseHandler(Device fbDevice, Dimension screenSize) { HardwareCursorAPI hwCursor = null; Device pointerDevice = null; PointerAPI pointerAPI = null; try { hwCursor = (HardwareCursorAPI) fbDevice .getAPI(HardwareCursorAPI.class); } catch (ApiNotFoundException ex) { log.info("No hardware-cursor found ...
public MouseHandler(Device fbDevice, Dimension screenSize) { HardwareCursorAPI hwCursor = null; Device pointerDevice = null; PointerAPI pointerAPI = null; try { hwCursor = (HardwareCursorAPI) fbDevice .getAPI(HardwareCursorAPI.class); } catch (ApiNotFoundException ex) { log.info("No hardware-cursor found ...
17,742
public static final byte[] I2OSP(final BigInteger s, final int k) { byte[] result = s.toByteArray(); if (result.length < k) { final byte[] newResult = new byte[k]; System.arraycopy(result, 0, newResult, k - result.length, result.length); result = newResult; } else if (result.l...
public static final byte[] I2OSP(final BigInteger s, final int k) byte[] result = s.toByteArray(); if (result.length < k) final byte[] newResult = new byte[k]; System.arraycopy(result, 0, newResult, k - result.length, result.length); result = newResult; } else if (result.len...
17,743
public static final byte[] I2OSP(final BigInteger s, final int k) { byte[] result = s.toByteArray(); if (result.length < k) { final byte[] newResult = new byte[k]; System.arraycopy(result, 0, newResult, k - result.length, result.length); result = newResult; } else if (result.l...
public static final byte[] I2OSP(final BigInteger s, final int k) { byte[] result = s.toByteArray(); if (result.length < k) { final byte[] newResult = new byte[k]; System.arraycopy(result, 0, newResult, k - result.length, result.length); result = newResult; else if (result.le...
17,744
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
17,745
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
17,746
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
17,747
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
17,748
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
17,749
public Iterator<FSEntry> iterator() throws IOException { return new Iterator<FSEntry>() { int offset = 0; final EntryRecord parent = ISO9660Directory.this.entry .getCDFSentry(); final byte[] buffer = parent.getExtentData(); public boolean hasNext...
public Iterator<FSEntry> iterator() throws IOException { return new Iterator<FSEntry>() { int offset = 0; final EntryRecord parent = ISO9660Directory.this.entry .getCDFSentry(); final byte[] buffer = parent.getExtentData(); public boolean hasNext...
17,750
public boolean hasNext() { return ((offset < buffer.length) && (buffer[ offset] > 0)); }
public boolean hasNext() { return ((offset < buffer.length) && LittleEndian.getUInt8(buffer, offset) > 0); }
17,751
public abstract void dispose();
void dispose();
17,752
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); ButtonModel m = b.getModel(); Icon currentIcon = null; if (m.isSelected()...
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); ButtonModel m = b.getModel(); Icon currentIcon = null; if (m.isSelected()...
17,753
protected String getPropertyPrefix() { return "ToggleButton"; }
protected String getPropertyPrefix() { return "ToggleButton."; }
17,754
public Dimension getMinimumSize(int s) { return null; }
public Dimension getMinimumSize(int s) { return getMinimumSize(); }
17,755
public Dimension getPreferredSize(int s) { return null; }
public Dimension getPreferredSize(int s) { return getPreferredSize(); }
17,756
public String getItem(int index) { return ((String) items.elementAt(index)); }
public String getItem(int index) { return ((String) items.elementAt(index)); }
17,757
public abstract void clear();
void clear();
17,758
public abstract void setMultipleSelections(boolean multi);
void setMultipleSelections(boolean multi);
17,759
static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); BootLog.info("Starting Application Processor " + cpu.getId()); // First force a load of CPUID cpu.getCPUID(); // Detect and start logical CPU's try { detectAndst...
static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); Unsafe.debug("Starting Application Processor " + cpu.getIdString()); // First force a load of CPUID cpu.getCPUID(); // Detect and start logical CPU's try { detec...
17,760
static final void detectAndstartLogicalProcessors(ResourceManager rm) throws ResourceNotFreeException { final VmX86Processor cpu = (VmX86Processor) current(); if (cpu.logical) { return; } final X86CpuID cpuid = (X86CpuID) cpu.getCPUID(); if (!cpuid.hasFeature...
static final void detectAndstartLogicalProcessors(ResourceManager rm) throws ResourceNotFreeException { final VmX86Processor cpu = (VmX86Processor) current(); if (cpu.logical) { return; } final X86CpuID cpuid = (X86CpuID) cpu.getCPUID(); if (!cpuid.hasFeature...
17,762
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
17,764
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
17,765
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
17,766
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
17,767
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
17,768
public abstract void childResized(int width, int height);
void childResized(int width, int height);
17,770
public abstract int getHScrollbarHeight();
int getHScrollbarHeight();
17,771
public abstract int getVScrollbarWidth();
int getVScrollbarWidth();
17,772
public abstract void setScrollPosition(int h, int v);
void setScrollPosition(int h, int v);
17,773
public abstract void setUnitIncrement(Adjustable item, int inc);
void setUnitIncrement(Adjustable item, int inc);
17,774
public abstract void setValue(Adjustable item, int value);
void setValue(Adjustable item, int value);
17,775
public int getDelay() { return (int)interval; }
public int getDelay() { return delay; }
17,776
public JToolTip createToolTip() { if (toolTip == null) toolTip = new JToolTip(toolTipText); return toolTip; }
public JToolTip createToolTip() { if (toolTip == null) { toolTip = new JToolTip(); toolTip.setTipText(toolTipText); } return toolTip; }
17,777
public Popup getPopup(Component owner, Component contents, int x, int y) { return new Popup.JWindowPopup(owner, contents, x, y); }
public Popup getPopup(Component owner, Component contents, int x, int y) { Popup popup = null; boolean lightweightEnabled = true; if (contents instanceof JPopupMenu) { JPopupMenu menu = (JPopupMenu) contents; lightweightEnabled = menu.isLightWeightPopupEnabled(); } JRootPane root = S...
17,778
private static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0....
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT...
17,779
public String[] [] getZoneStrings () { return zoneStrings; }
public String[] [] getZoneStrings () { return zoneStrings; }
17,780
private boolean checkExplicitPolicy (int depth, List explicitPolicies) { if (DEBUG) debug ("checkExplicitPolicy depth=" + depth); for (Iterator it = explicitPolicies.iterator(); it.hasNext(); ) { int[] i = (int[]) it.next(); int caDepth = i[0]; int limit = i[1]; if (DEBUG) debu...
private boolean checkExplicitPolicy (int depth, List explicitPolicies) { if (DEBUG) debug ("checkExplicitPolicy depth=" + depth); for (Iterator it = explicitPolicies.iterator(); it.hasNext(); ) { int[] i = (int[]) it.next(); int caDepth = i[0]; int limit = i[1]; if (DEBUG) debu...
17,781
private boolean checkExplicitPolicy (int depth, List explicitPolicies) { if (DEBUG) debug ("checkExplicitPolicy depth=" + depth); for (Iterator it = explicitPolicies.iterator(); it.hasNext(); ) { int[] i = (int[]) it.next(); int caDepth = i[0]; int limit = i[1]; if (DEBUG) debu...
private boolean checkExplicitPolicy (int depth, List explicitPolicies) { if (DEBUG) debug ("checkExplicitPolicy depth=" + depth); for (Iterator it = explicitPolicies.iterator(); it.hasNext(); ) { int[] i = (int[]) it.next(); int caDepth = i[0]; int limit = i[1]; if (Configurati...
17,782
public CertPathValidatorResult engineValidate(CertPath path, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException { if (!(params instanceof PKIXParameters)) throw new InvalidAlgorithmParameterException("not a PKIXPa...
public CertPathValidatorResult engineValidate(CertPath path, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException { if (!(params instanceof PKIXParameters)) throw new InvalidAlgorithmParameterException("not a PKIXPa...
17,783
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (Configuration.DEBUG) log.fine("updatePolicyTree depth == ...
17,784
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
17,785
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
17,786
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
17,787
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
17,788
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
17,789
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
17,790
public MemoryResourceImpl(Object arrayData, int length, int elementSize) { super(BYTE_ARRAY_OWNER); this.parent = null; this.data = arrayData; this.size = Extent.fromIntZeroExtend(length * elementSize); this.start = VmMagic.getArrayData(arrayData); this.offset = start.toWord().toOffset(); this.end = start.add(l...
public MemoryResourceImpl(Object arrayData, int length, int elementSize) { super(BYTE_ARRAY_OWNER); this.parent = null; this.data = arrayData; this.size = Extent.fromIntZeroExtend(length * elementSize); this.start = VmMagic.getArrayData(arrayData); this.offset = start.toWord().toOffset(); this.end = start.add(l...
17,792
public void mousePressed(MouseEvent e) { int x = e.getX(); int y = e.getY(); int tabCount = tabPane.getTabCount(); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { if (e.getSource() == incrButton) { if (++currentScrollLocation >= tabCount) currentScroll...
public void mousePressed(MouseEvent e) { int x = e.getX(); int y = e.getY(); int tabCount = tabPane.getTabCount(); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { if (e.getSource() == incrButton) { if (++currentScrollLocation >= tabCount) currentScroll...
17,794
public void mousePressed(MouseEvent e) { int x = e.getX(); int y = e.getY(); int tabCount = tabPane.getTabCount(); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { if (e.getSource() == incrButton) { if (++currentScrollLocation >= tabCount) currentScroll...
public void mousePressed(MouseEvent e) { int x = e.getX(); int y = e.getY(); int tabCount = tabPane.getTabCount(); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { if (e.getSource() == incrButton) { if (++currentScrollLocation >= tabCount) currentScroll...
17,795
protected Dimension calculateSize(boolean minimum) { int tabPlacement = tabPane.getTabPlacement(); int width = 0; int height = 0; int componentHeight = 0; int componentWidth = 0; Component c; Dimension dims; for (int i = 0; i < tabPane.getTabCount(); i++) { c = ta...
protected Dimension calculateSize(boolean minimum) { int tabPlacement = tabPane.getTabPlacement(); int width = 0; int height = 0; int componentHeight = 0; int componentWidth = 0; Component c; Dimension dims; for (int i = 0; i < tabPane.getTabCount(); i++) { c = ta...
17,796
protected Dimension calculateSize(boolean minimum) { int tabPlacement = tabPane.getTabPlacement(); int width = 0; int height = 0; int componentHeight = 0; int componentWidth = 0; Component c; Dimension dims; for (int i = 0; i < tabPane.getTabCount(); i++) { c = ta...
protected Dimension calculateSize(boolean minimum) { int tabPlacement = tabPane.getTabPlacement(); int width = 0; int height = 0; int componentHeight = 0; int componentWidth = 0; Component c; Dimension dims; for (int i = 0; i < tabPane.getTabCount(); i++) { c = ta...
17,797
protected void calculateTabRects(int tabPlacement, int tabCount) { if (tabCount == 0) return; assureRectsCreated(tabCount); FontMetrics fm = getFontMetrics(); SwingUtilities.calculateInnerArea(tabPane, calcRect); Insets tabAreaInsets = getTabAreaInsets(tabPlacement); Insets insets =...
protected void calculateTabRects(int tabPlacement, int tabCount) { if (tabCount == 0) return; assureRectsCreated(tabCount); FontMetrics fm = getFontMetrics(); SwingUtilities.calculateInnerArea(tabPane, calcRect); Insets tabAreaInsets = getTabAreaInsets(tabPlacement); Insets insets =...
17,798
protected void rotateTabRuns(int tabPlacement, int selectedRun) { if (selectedRun == 1 || selectedRun == -1) return; int[] newTabRuns = new int[tabRuns.length]; int currentRun = selectedRun; int i = 1; do { newTabRuns[i] = tabRuns[currentRun]; currentRun = getNextTabRun(curren...
protected void rotateTabRuns(int tabPlacement, int selectedRun) { if (runCount == 1 || selectedRun == 1 || selectedRun == -1) return; int[] newTabRuns = new int[tabRuns.length]; int currentRun = selectedRun; int i = 1; do { newTabRuns[i] = tabRuns[currentRun]; currentRun = get...
17,799
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...
17,800
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...
17,801
protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].x; int endgap = rects[selectedI...
protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].x; int endgap = rects[selectedI...
17,803
protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].y; int...
protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].y; int...
17,804
protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde...
protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde...
17,805
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].x; int en...
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].x; int en...
17,806
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab...
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab...
17,807
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab...
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab...
17,808
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab...
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab...
17,809
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (isSelected) g.setColor(Color.LIGHT_GRAY); else { Color bg = tabPane....
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (isSelected) g.setColor(Color.LIGHT_GRAY); else { Color bg = tabPane....
17,811
public AbstractUndoableEdit() { } // AbstractUndoableEdit()
public AbstractUndoableEdit() { } // AbstractUndoableEdit()
17,812
public CannotRedoException() { super(); } // CannotRedoException()
public CannotRedoException() { super(); } // CannotRedoException()
17,813
public CannotUndoException() { super(); } // CannotUndoException()
public CannotUndoException() { super(); } // CannotUndoException()
17,814
public ClassCircularityError() { super(); }
public ClassCircularityError() { super(); }
17,815
public void updateUI() { setUI((ToolBarUI) UIManager.getUI(this)); revalidate(); repaint(); } // updateUI()
public void updateUI() { setUI((ToolBarUI) UIManager.getUI(this)); revalidate(); repaint(); } // updateUI()
17,816
protected void checkClosed() throws IOException { if (closed) throw new IOException("stream closed"); }
protected final void checkClosed() throws IOException { if (closed) throw new IOException("stream closed"); }
17,817
public abstract void write(byte[] data, int offset, int len) throws IOException;
public abstract void write(byte[] data, int offset, int len) throws IOException;
17,818
protected final void flushBits() throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
protected final void flushBits() throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); }
17,819
public static BindingIterator extract(Any a) { try { return ((BindingIteratorHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Binding iterator expected"); } }
public static BindingIterator extract(Any a) { try { return ((BindingIteratorHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Binding iterator expected"); bad.initCause(ex); throw bad; } }
17,820
public _BindingIteratorStub(Delegate delegate) { super(); _set_delegate(delegate); }
public _BindingIteratorStub() { super(); _set_delegate(delegate); }
17,821
public _BindingIteratorStub(Delegate delegate) { super(); _set_delegate(delegate); }
public _BindingIteratorStub(Delegate delegate) { super(); }
17,822
public JNodeGenericPeer(AbstractJNodeToolkit toolkit, Object awtObject) { this.toolkit = toolkit; this.awtObject = awtObject; toolkit.incRefCount(); }
public JNodeGenericPeer(JNodeToolkit toolkit, Object awtObject) { this.toolkit = toolkit; this.awtObject = awtObject; toolkit.incRefCount(); }
17,823
public final AbstractJNodeToolkit getToolkitImpl() { return toolkit; }
public final JNodeToolkit getToolkitImpl() { return toolkit; }
17,824
protected void doGetLocalizedMessage(Locale locale, String suffix) { changeLocale(locale); String msg = PluginResourceBundle.getLocalizedMessage(TEST_KEY); assertEquals(TEST_VALUE+suffix, msg); }
protected void doGetLocalizedMessage(Locale locale, String suffix) { changeLocale(locale); String msg = PluginUtils.getLocalizedMessage(getClass(), RELATIVE_BUNDLE_NAME, TEST_KEY); assertEquals(TEST_VALUE+suffix, msg); }
17,825
public void write(java.io.OutputStream out) { try { DataOutputStream dout = new DataOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number. version.write(dout); dout.write(flags); dout.write(message_type); dout.writeInt(m...
public void write(java.io.OutputStream out) { try { abstractDataOutputStream dout; if (isBigEndian()) dout = new BigEndianOutputStream(out); else dout = new LittleEndianOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number. version.write(do...
17,826
public void write(java.io.OutputStream out) { try { DataOutputStream dout = new DataOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number. version.write(dout); dout.write(flags); dout.write(message_type); dout.writeInt(m...
public void write(java.io.OutputStream out) { try { DataOutputStream dout = new DataOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number. version.write((OutputStream) dout); dout.write(flags); dout.write(message_type); ...
17,827
public void write(java.io.OutputStream out) { try { DataOutputStream dout = new DataOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number. version.write(dout); dout.write(flags); dout.write(message_type); dout.writeInt(m...
public void write(java.io.OutputStream out) { try { DataOutputStream dout = new DataOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number. version.write(dout); dout.write(flags); dout.write(message_type); dout.writeInt(m...
17,828
public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { try { // force "early" detection of errors where possible // (flags can't necessarily be set before parsing) new JaxpParser().getXMLReader().setFe...
public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { try { // force "early" detection of errors where possible // (flags can't necessarily be set before parsing) new JaxpParser().getXMLReader().setFe...
17,829
public void setAccessible(boolean flag) { checkPermission(); secureSetAccessible(flag); }
public static void setAccessible(AccessibleObject[] array, boolean flag) { checkPermission(); secureSetAccessible(flag); }
17,830
public GnuDHPrivateKey(BigInteger q, BigInteger p, BigInteger g, BigInteger x) { super(q, p, g); this.x = x; }
public GnuDHPrivateKey(BigInteger q, BigInteger p, BigInteger g, BigInteger x) { super(q, p, g); this.x = x; }
17,831
public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); }
public byte[] getEncoded(int format) { return getEncoded(IKeyPairCodec.RAW_FORMAT); }
17,832
public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); }
public byte[] getEncoded() { byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DHKeyPairRawCodec().encodePrivateKey(this); break; case IKeyPairCodec.PKCS8_FORMAT: result = new DHKeyPairPKCS8Codec().encodePrivateKey(this); break; default: throw new IllegalArgumentException("Unsupported e...
17,833
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch...
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch...
17,834
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch...
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch...
17,835
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch...
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch...
17,836