bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight) { Icon icon = getIconForTab(tabIndex); Insets insets = getTabInsets(tabPlacement, tabIndex); int height = 0; if (icon != null) { Rectangle vr = new Rectangle(); Rectangle ...
protected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight) { Icon icon = getIconForTab(tabIndex); Insets insets = getTabInsets(tabPlacement, tabIndex); int height = 0; if (icon != null) { Rectangle vr = new Rectangle(); Rectangle ...
19,435
protected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight) { Icon icon = getIconForTab(tabIndex); Insets insets = getTabInsets(tabPlacement, tabIndex); int height = 0; if (icon != null) { Rectangle vr = new Rectangle(); Rectangle ...
protected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight) { Icon icon = getIconForTab(tabIndex); Insets insets = getTabInsets(tabPlacement, tabIndex); int height = 0; if (icon != null) { Rectangle vr = new Rectangle(); Rectangle ...
19,436
protected Insets getTabInsets(int tabPlacement, int tabIndex) { Insets target = new Insets(0, 0, 0, 0); rotateInsets(tabInsets, target, tabPlacement); return target; }
protected Insets getTabInsets(int tabPlacement, int tabIndex) { Insets target = new Insets(0, 0, 0, 0); rotateInsets(tabInsets, target, tabPlacement); return target; }
19,437
protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) { int x = contentRect.x; int y = contentRect.y; int w = contentRect.width; int h = contentRect.height; paintContentBorderTopEdge(g, tabPlacement, selectedIndex, x, y, w, h); paintCo...
protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) { int x = contentRect.x; int y = contentRect.y; int w = contentRect.width; int h = contentRect.height; paintContentBorderTopEdge(g, tabPlacement, selectedIndex, x, y, w, h); paintCo...
19,440
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) { Color saved = g.getColor(); calcRect = icon...
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) { Color saved = g.getColor(); calcRect = icon...
19,441
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) { Color saved = g.getColor(); calcRect = icon...
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) { Color saved = g.getColor(); calcRect = icon...
19,442
protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) { FontMetrics fm = getFontMetrics(); Icon icon = getIconForTab(tabIndex); String title = tabPane.getTitleAt(tabIndex); boolean isSelected = tabIndex == t...
protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) { FontMetrics fm = getFontMetrics(); Icon icon = getIconForTab(tabIndex); String title = tabPane.getTitleAt(tabIndex); boolean isSelected = tabIndex == t...
19,443
protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) { FontMetrics fm = getFontMetrics(); Icon icon = getIconForTab(tabIndex); String title = tabPane.getTitleAt(tabIndex); boolean isSelected = tabIndex == t...
protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) { FontMetrics fm = getFontMetrics(); Icon icon = getIconForTab(tabIndex); String title = tabPane.getTitleAt(tabIndex); boolean isSelected = tabIndex == t...
19,444
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
19,446
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
19,447
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
19,448
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
19,449
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai...
19,450
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, tex...
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, tex...
19,451
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, tex...
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, tex...
19,452
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, tex...
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, tex...
19,453
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
public int tabForCoordinate(JTabbedPane pane, int x, int y) { if (! tabPane.isValid()) tabPane.validate(); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCou...
19,454
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
19,455
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
19,456
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
19,457
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
19,458
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
public int tabForCoordinate(JTabbedPane pane, int x, int y) { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first...
19,459
protected void uninstallDefaults() { calcRect = null; tabAreaRect = null; contentRect = null; tabRuns = null; contentBorderInsets = null; tabAreaInsets = null; selectedTabPadInsets = null; tabInsets = null; focus = null; darkShadow = null; shadow = null; lightHighlight = null; ...
protected void uninstallDefaults() { calcRect = null; tabAreaRect = null; contentRect = null; tabRuns = null; contentBorderInsets = null; tabAreaInsets = null; selectedTabPadInsets = null; tabInsets = null; focus = null; darkShadow = null; shadow = null; lightHighlight = null; ...
19,460
public byte[] encodePublicKey(PublicKey key) { log.entering(this.getClass().getName(), "encodePublicKey()", key); if (! (key instanceof GnuRSAPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, RSA_ALG_OID); GnuRSAPublicKey rsaKey = (GnuRSAPu...
public byte[] encodePublicKey(PublicKey key) { log.entering(this.getClass().getName(), "encodePublicKey()", key); if (! (key instanceof GnuRSAPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, RSA_ALG_OID); GnuRSAPublicKey rsaKey = (GnuRSAPu...
19,467
private void parseExtra() { // Already parsed? if ((known & KNOWN_EXTRA) != 0) return; if (extra == null) { known |= KNOWN_EXTRA; return; } try { int pos = 0; while (pos < extra.length) { int sig = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) << 8; int len = (extra...
private void parseExtra() { // Already parsed? if ((known & KNOWN_EXTRA) != 0) if (extra == null) { known |= KNOWN_EXTRA; } try { int pos = 0; while (pos < extra.length) { int sig = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) << 8; int len = (extra[pos++] & 0xff...
19,469
public static NameComponent extract(Any a) { try { return ((NameComponentHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Name component expected"); } }
public static NameComponent extract(Any a) { try { return ((NameComponentHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Name component expected"); bad.initCause(ex); throw bad; } }
19,471
VmArrayClass(String name, AbstractVmClassLoader loader, boolean primitive, VmType componentType, int typeSize) { super(name, getObjectClass(), loader, primitive, typeSize); this.componentType = componentType; testClassType(); }
VmArrayClass(String name, VmClassLoader loader, boolean primitive, VmType componentType, int typeSize) { super(name, getObjectClass(), loader, primitive, typeSize); this.componentType = componentType; testClassType(); }
19,472
final VmArrayClass getArrayClass(boolean link) { if (arrayClass == null) { arrayClass = createArrayClass(link, null); } return arrayClass; }
final VmArrayClass<T[]> getArrayClass(String arrayClassName) { if (arrayClass == null) { arrayClass = createArrayClass(link, null); } return arrayClass; }
19,473
public Info(String name, String vendor, String description, String version) { this.name = name; this.vendor = vendor; this.description = description; this.version = version; }
protected Info(String name, String vendor, String description, String version) { this.name = name; this.vendor = vendor; this.description = description; this.version = version; }
19,474
public boolean equals(Object obj) { return super.equals(obj); }
public final boolean equals(Object obj) { return super.equals(obj); }
19,475
public String getDescription() { return description; }
public final String getDescription() { return description; }
19,476
public String getName() { return name; }
public final String getName() { return name; }
19,477
public String getVendor() { return vendor; }
public final String getVendor() { return vendor; }
19,478
public String getVersion() { return version; }
public final String getVersion() { return version; }
19,479
public int hashCode() { return super.hashCode(); }
public final int hashCode() { return super.hashCode(); }
19,480
public String toString() { return name; }
public final String toString() { return name; }
19,481
public void layoutContainer(Container c) { if (glassPaneBounds == null || layeredPaneBounds == null || contentPaneBounds == null || menuBarBounds == null) { Insets i = getInsets(); int containerWidth = c.getBounds().width - i.left - i.right; int containerHeight = c...
public void layoutContainer(Container c) { if (glassPaneBounds == null || layeredPaneBounds == null || contentPaneBounds == null || menuBarBounds == null) { Insets i = getInsets(); int containerWidth = c.getBounds().width - i.left - i.right; int containerHeight = c...
19,484
public Dimension preferredLayoutSize(Container c) { Dimension prefSize = new Dimension(); Insets i = getInsets(); prefSize = new Dimension(i.left + i.right, i.top + i.bottom); Dimension contentPrefSize = contentPane.getPreferredSize(); prefSize.width += co...
public Dimension preferredLayoutSize(Container c) { Dimension prefSize = new Dimension(); Insets i = getInsets(); prefSize = new Dimension(i.left + i.right, i.top + i.bottom); Dimension contentPrefSize = getContentPane().getPreferredSize(); prefSize.width ...
19,485
public boolean isHeadlessInstance() { return false; }
public boolean isHeadlessInstance() { return isHeadless(); }
19,486
protected byte[] getResult() { byte[] result = new byte[DIGEST_LENGTH]; // Encrypt checksum as last block. encryptBlock(checksum, 0); for (int i = 0; i < BLOCK_LENGTH; i++) { result[i] = work[i]; } return result; }
protected byte[] getResult() byte[] result = new byte[DIGEST_LENGTH]; // Encrypt checksum as last block. encryptBlock(checksum, 0); for (int i = 0; i < BLOCK_LENGTH; i++) result[i] = work[i]; } return result; }
19,487
protected byte[] getResult() { byte[] result = new byte[DIGEST_LENGTH]; // Encrypt checksum as last block. encryptBlock(checksum, 0); for (int i = 0; i < BLOCK_LENGTH; i++) { result[i] = work[i]; } return result; }
protected byte[] getResult() { byte[] result = new byte[DIGEST_LENGTH]; // Encrypt checksum as last block. encryptBlock(checksum, 0); for (int i = 0; i < BLOCK_LENGTH; i++) { result[i] = work[i]; return result;
19,488
protected byte[] padBuffer() { int length = BLOCK_LENGTH - (int) (count % BLOCK_LENGTH); if (length == 0) { length = BLOCK_LENGTH; } byte[] pad = new byte[length]; for (int i = 0; i < length; i++) { pad[i] = (byte) length; } return pad; }
protected byte[] padBuffer() int length = BLOCK_LENGTH - (int) (count % BLOCK_LENGTH); if (length == 0) length = BLOCK_LENGTH; } byte[] pad = new byte[length]; for (int i = 0; i < length; i++) pad[i] = (byte) length; } return pad; }
19,489
protected byte[] padBuffer() { int length = BLOCK_LENGTH - (int) (count % BLOCK_LENGTH); if (length == 0) { length = BLOCK_LENGTH; } byte[] pad = new byte[length]; for (int i = 0; i < length; i++) { pad[i] = (byte) length; } return pad; }
protected byte[] padBuffer() { int length = BLOCK_LENGTH - (int) (count % BLOCK_LENGTH); if (length == 0) { length = BLOCK_LENGTH; byte[] pad = new byte[length]; for (int i = 0; i < length; i++) { pad[i] = (byte) length; return pad;
19,490
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD2().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { String d = Util.toString(new MD2().digest()); valid = Boolean.valueOf(DIGEST0.equals(d)); } return valid.booleanValue(); }
19,491
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements sr) { SizeRequirements res = sr; if (res == null) res = new SizeRequirements(); res.minimum = 0; res.preferred = 0; res.maximum = 0; res.alignment = 0....
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements sr) { SizeRequirements res = sr; if (res == null) res = new SizeRequirements(); res.minimum = 0; res.preferred = 0; res.maximum = Integer.MAX_VALUE; re...
19,493
public int getHeight() { return span[Y_AXIS] + getTopInset() - getBottomInset(); }
public int getHeight() { return span[Y_AXIS] + getTopInset() + getBottomInset(); }
19,496
public int getResizeWeight(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException("Illegal axis argument"); int weight = 1; if (axis == myAxis) weight = 0; return weight; }
public int getResizeWeight(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException("Illegal axis argument"); int weight = 1; if (axis == myAxis) weight = 0; return weight; }
19,497
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
19,498
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
19,499
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
19,500
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
19,501
public int getWidth() { return span[X_AXIS] + getLeftInset() - getRightInset(); }
public int getWidth() { return span[X_AXIS] + getLeftInset() + getRightInset(); }
19,502
protected void layout(int width, int height) { int[] newSpan = new int[]{ width, height }; int count = getViewCount(); // Update minor axis as appropriate. We need to first update the minor // axis layout because that might affect the children's preferences along // the major axis. int minorAxis = ...
protected void layout(int width, int height) { int[] newSpan = new int[]{ width, height }; int count = getViewCount(); // Update minor axis as appropriate. We need to first update the minor // axis layout because that might affect the children's preferences along // the major axis. int minorAxis = ...
19,503
protected void layout(int width, int height) { int[] newSpan = new int[]{ width, height }; int count = getViewCount(); // Update minor axis as appropriate. We need to first update the minor // axis layout because that might affect the children's preferences along // the major axis. int minorAxis = ...
protected void layout(int width, int height) { int[] newSpan = new int[]{ width, height }; int count = getViewCount(); // Update minor axis as appropriate. We need to first update the minor // axis layout because that might affect the children's preferences along // the major axis. int minorAxis = ...
19,504
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { // Set the spans to the preferred sizes. Determine the space // that we have to adjust the sizes afterwards. long sumPref = 0; int n = getViewCount(); for (int i = 0; i < n; i++) ...
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { // Set the spans to the preferred sizes. Determine the space // that we have to adjust the sizes afterwards. long sumPref = 0; int n = getViewCount(); for (int i = 0; i < n; i++) ...
19,505
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
19,506
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
19,507
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
19,508
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
19,509
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
19,510
public void replace(int offset, int length, View[] views) { int numViews = 0; if (views != null) numViews = views.length; // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + numViews]; System.arraycopy(spa...
public void replace(int offset, int length, View[] views) { int numViews = 0; if (views != null) numViews = views.length; // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + numViews]; System.arraycopy(spa...
19,511
public void replace(int offset, int length, View[] views) { int numViews = 0; if (views != null) numViews = views.length; // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + numViews]; System.arraycopy(spa...
public void replace(int offset, int length, View[] views) { int numViews = 0; if (views != null) numViews = views.length; // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + numViews]; System.arraycopy(spa...
19,512
public abstract void setCheckboxGroup(java.awt.CheckboxGroup group);
void setCheckboxGroup (CheckboxGroup group);
19,515
public abstract void setState(boolean state);
void setState (boolean state);
19,516
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
19,517
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
19,518
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else getDefaultPRNG().nextBytes(buffer); }
private void nextRandomBytes(byte[] buffer) if (rnd != null) rnd.nextBytes(buffer); } else getDefaultPRNG().nextBytes(buffer); }
19,519
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else getDefaultPRNG().nextBytes(buffer); }
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); else getDefaultPRNG().nextBytes(buffer);
19,520
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
public void setup(Map attributes) // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defau...
19,521
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
19,522
public BigInteger modPow(BigInteger exponent, BigInteger m) { if (m.isNegative() || m.isZero()) throw new ArithmeticException("non-positive modulo"); if (exponent.isNegative()) return modInverse(m); if (exponent.isOne()) return mod(m); // To do this naively by first raising this to the pow...
public BigInteger modPow(BigInteger exponent, BigInteger m) { if (m.isNegative() || m.isZero()) throw new ArithmeticException("non-positive modulo"); if (exponent.isNegative()) return modInverse(m).modPow(exponent.negate(), m); if (exponent.isOne()) return mod(m); // To do this naively by ...
19,523
public void focusGained(FocusEvent e) throws NotImplementedException { // FIXME: implement. }
public void focusGained(FocusEvent e) { // FIXME: implement. }
19,525
public void focusLost(FocusEvent e) throws NotImplementedException { // FIXME: implement. }
public void focusLost(FocusEvent e) { // FIXME: implement. }
19,527
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
19,530
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
19,531
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
19,532
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
19,533
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
19,534
protected AccessibleJColorChooser(JColorChooser component) { super(component); // TODO } // AccessibleJColorChooser()
protected AccessibleJColorChooser(JColorChooser component) { super(component); // TODO } // AccessibleJColorChooser()
19,535
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJColorChooser(this); } // if return accessibleContext; } // getAccessibleContext()
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJColorChooser(this); } // if return accessibleContext; } // getAccessibleContext()
19,536
public void getInts(int memPtr, int[] dst, int dstOfs, int length) { if (dstOfs < 0) { throw new IndexOutOfBoundsException("dstOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (dstOfs + length > dst.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst.le...
public void getInts(int memPtr, int[] dst, int dstOfs, int length) { if (dstOfs < 0) { throw new IndexOutOfBoundsException("dstOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (dstOfs + length > dst.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst.le...
19,537
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); setHorizontalAlignment(LEF...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value != null ? value.toString() : ""; setText(s); setOpaque(true); setHo...
19,538
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType) { JOptionPane pane = new JOptionPane(message, messageType, optionType); JDialog dialog = pane.createDialog(pare...
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType) { JOptionPane pane = new JOptionPane(message, messageType, optionType); JDialog dialog = pane.createDialog(pare...
19,539
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType) { JOptionPane pane = new JOptionPane(message, messageType, optionType); JDialog dialog = pane.createDialog(pare...
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType) { JOptionPane pane = new JOptionPane(message, messageType, optionType); JDialog dialog = pane.createDialog(pare...
19,540
public static long reverse(long val) { int hi = Integer.reverse((int) val); int lo = Integer.reverse((int) (val >>> 32)); return (((long) hi) << 32) | lo; }
public static long reverse(long val) { int hi = Integer.reverse((int) val); int lo = Integer.reverse((int) (val >>> 32)); return (((long) hi) << 32) | lo; }
19,542
public static Long valueOf(String s) { return new Long(parseLong(s, 10, false)); }
public static Long valueOf(String s, int radix) { return new Long(parseLong(s, 10, false)); }
19,543
public static Long valueOf(String s) { return new Long(parseLong(s, 10, false)); }
public static Long valueOf(String s) { return new Long(parseLong(s, radix, false)); }
19,544
InputStream getInputStream() throws IOException { // Delegate to the URL content handler mechanism to retrieve an // HTML representation of the directory listing if a directory if (file.isDirectory()) { URL url = getURL(); return url.openStream(); } // Otherwis...
InputStream getInputStream() throws IOException { // Delegate to the URL content handler mechanism to retrieve an // HTML representation of the directory listing if a directory if (file.isDirectory()) { URL url = getURL(); return url.openStream(); } // Otherwis...
19,545
public int getLength() { // Delegate to the URL content handler mechanism to retrieve the // length of the HTML representation of the directory listing if // a directory, or -1 if an exception occurs opening the directory. if (file.isDirectory()) { URL url = getURL(); ...
public int getLength() { // Delegate to the URL content handler mechanism to retrieve the // length of the HTML representation of the directory listing if // a directory, or -1 if an exception occurs opening the directory. if (file.isDirectory()) { URL url = getURL(); ...
19,546
Resource getResource(String name) { File file = new File(dir, name); if (file.exists()) return new FileResource(this, name, file); return null; }
Resource getResource(String name) { File file = new File(dir, name); if (file.exists()) return new FileResource(this, name, file); return null; }
19,547
private void addURLImpl(URL newUrl) { synchronized (urlloaders) { if (newUrl == null) return; // Silently ignore... // Reset the toString() value. thisString = null; // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); i...
private void addURLImpl(URL newUrl) { synchronized (this) { if (newUrl == null) return; // Silently ignore... // Reset the toString() value. thisString = null; // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loa...
19,548
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VERSION); ...
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VERSION); ...
19,549
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VERSION); ...
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VERSION); ...
19,550
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
19,551
public String toString() { synchronized (urlloaders) { if (thisString == null) { StringBuffer sb = new StringBuffer(); sb.append(this.getClass().getName()); sb.append("{urls=[" ); URL[] thisURLs = getURLs(); for (int i = 0; i < thisURLs.length; i++) { sb.append(thisURLs[i]); if ...
public String toString() { synchronized (this) { if (thisString == null) { StringBuffer sb = new StringBuffer(); sb.append(this.getClass().getName()); sb.append("{urls=[" ); URL[] thisURLs = getURLs(); for (int i = 0; i < thisURLs.length; i++) { sb.append(thisURLs[i]); if (i < t...
19,552
public ObjectEmitter(AbstractVmClassLoader b, NativeStream os, PrintWriter debug, Set legalInstanceClasses) { this.loaderContext = b; this.os = os; this.bis = (BootImageNativeStream)os; this.legalInstanceClasses = legalInstanceClasses; this.debugWriter = debug; }
public ObjectEmitter(VmClassLoader b, NativeStream os, PrintWriter debug, Set legalInstanceClasses) { this.loaderContext = b; this.os = os; this.bis = (BootImageNativeStream)os; this.legalInstanceClasses = legalInstanceClasses; this.debugWriter = debug; }
19,553
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. BufferedCdrOutput buffer = ne...
19,554
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
19,555
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
19,556
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.fine("About to verify signature of " + sigFileName + "..."); } //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
19,558