bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private static int loadLib(String filename) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkRead(filename); return VMRuntime.nativeLoad(filename); }
private static int loadLib(String filename) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkRead(filename); return VMRuntime.nativeLoad(filename); }
40,263
boolean runShutdownHooks() { boolean first = false; synchronized (libpath) // Synch on libpath, not this, to avoid deadlock. { if (exitSequence == null) { first = true; exitSequence = Thread.currentThread(); if (shutdownHooks != null) { ...
boolean runShutdownHooks() { boolean first = false; synchronized (libpath) // Synch on libpath, not this, to avoid deadlock. { if (exitSequence == null) { first = true; exitSequence = Thread.currentThread(); if (shutdownHooks != null) { ...
40,264
boolean runShutdownHooks() { boolean first = false; synchronized (libpath) // Synch on libpath, not this, to avoid deadlock. { if (exitSequence == null) { first = true; exitSequence = Thread.currentThread(); if (shutdownHooks != null) { ...
boolean runShutdownHooks() { boolean first = false; synchronized (libpath) // Synch on libpath, not this, to avoid deadlock. { if (exitSequence == null) { first = true; exitSequence = Thread.currentThread(); if (shutdownHooks != null) { ...
40,265
boolean runShutdownHooks() { boolean first = false; synchronized (libpath) // Synch on libpath, not this, to avoid deadlock. { if (exitSequence == null) { first = true; exitSequence = Thread.currentThread(); if (shutdownHooks != null) { ...
boolean runShutdownHooks() { boolean first = false; synchronized (libpath) // Synch on libpath, not this, to avoid deadlock. { if (exitSequence == null) { first = true; exitSequence = Thread.currentThread(); if (shutdownHooks != null) { ...
40,266
private final int readLeByte() throws IOException { if (avail <= 0) { fillBuf(); if (avail <= 0) throw new ZipException("EOF in header"); } return buf[len - avail--] & 0xff; }
private int readLeByte() throws IOException { if (avail <= 0) { fillBuf(); if (avail <= 0) throw new ZipException("EOF in header"); } return buf[len - avail--] & 0xff; }
40,267
private final int readLeInt() throws IOException { return readLeShort() | (readLeShort() << 16); }
private int readLeInt() throws IOException { return readLeShort() | (readLeShort() << 16); }
40,268
private final int readLeShort() throws IOException { return readLeByte() | (readLeByte() << 8); }
private int readLeShort() throws IOException { return readLeByte() | (readLeByte() << 8); }
40,269
public Font(String name, int style, int size) { this.name = name; this.style = style; this.size = size; this.pointSize = size; }
public Font(String name, int style, int size) { this.name = name; this.style = style; this.size = size; this.pointSize = size; }
40,270
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
40,271
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
40,272
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
40,273
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
40,274
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
40,275
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
40,276
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
40,277
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
40,278
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
public static Font decode(String fontspec) { String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")...
40,279
public Font deriveFont(int style) { return new Font(name, style, size); }
public Font deriveFont(int style) { return new Font(name, style, size); }
40,280
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
40,281
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
40,282
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
40,283
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
40,284
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof Font)) return (false); Font f = (Font) obj; if (!f.name.equals(name)) return (false); if (f.size != size) return (false); if (f.style != style) return (false); return (true); }
40,285
public String getFamily() { // FIXME: How do I implement this? return (name); }
public String getFamily() { // FIXME: How do I implement this? return (name); }
40,286
public static Font getFont(String propname, Font defval) { String propval = System.getProperty(propname); if (propval != null) return (decode(propval)); return (defval); }
public static Font getFont(String propname, Font defval) { String propval = System.getProperty(propname); if (propval != null) return (decode(propval)); return (defval); }
40,287
public static Font getFont(String propname, Font defval) { String propval = System.getProperty(propname); if (propval != null) return (decode(propval)); return (defval); }
public static Font getFont(String propname, Font defval) { String propval = System.getProperty(propname); if (propval != null) return (decode(propval)); return (defval); }
40,288
public LineMetrics getLineMetrics(String str, FontRenderContext frc) { throw new RuntimeException("Not implemented yet"); }
public LineMetrics getLineMetrics(String str, FontRenderContext frc) { throw new RuntimeException("Not implemented yet"); }
40,289
public String getName() { return (name); }
public String getName() { return (name); }
40,290
public FontPeer getPeer() { if (peer != null) return (peer); peer = Toolkit.getDefaultToolkit().getFontPeer(name, style); return (peer); }
public FontPeer getPeer() { if (peer != null) return (peer); peer = Toolkit.getDefaultToolkit().getFontPeer(name, style); return (peer); }
40,291
public int getSize() { return (size); }
public int getSize() { return (size); }
40,292
public float getSize2D() { return pointSize; }
public float getSize2D() { return pointSize; }
40,293
public int getStyle() { return style; }
public int getStyle() { return style; }
40,294
public int hashCode() { return ((new String(name + size + style)).hashCode()); }
public int hashCode() { return ((new String(name + size + style)).hashCode()); }
40,295
public boolean isBold() { if ((style == BOLD) || (style == (BOLD + ITALIC))) return (true); else return (false); }
public boolean isBold() { if ((style == BOLD) || (style == (BOLD + ITALIC))) return (true); else return (false); }
40,296
public boolean isItalic() { if ((style == ITALIC) || (style == (BOLD + ITALIC))) return (true); else return (false); }
public boolean isItalic() { if ((style == ITALIC) || (style == (BOLD + ITALIC))) return (true); else return (false); }
40,297
public boolean isPlain() { if (style == PLAIN) return (true); else return (false); }
public boolean isPlain() { if (style == PLAIN) return (true); else return (false); }
40,298
public String toString() { return (getClass().getName() + "(name=" + name + ",style=" + style + ",size=" + size + ")"); }
public String toString() { return (getClass().getName() + "(name=" + name + ",style=" + style + ",size=" + size + ")"); }
40,299
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
public void setValue(int val) { if (val == Spring.UNSET) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
40,300
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
public void setValue(int val) { if (val > getMaximumValue()) { if (value != Spring.UNSET) { s1.setValue(Spring.UNSET); s2.setValue(Spring.UNSET); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; ...
40,301
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
40,302
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
public void setValue(int val) { value = val; int p1 = s1.getPreferredValue(); int p2 = s2.getPreferredValue(); if (p1 < p2) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; ...
40,304
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
40,305
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { s1.setValue(val); s2.setValue(Math.min(val, p2)); } }
40,306
protected MinusSpring(Spring s) { super(); this.s = s; value = Spring.UNSET; }
protected MinusSpring(Spring s) { super(); this.s = s; }
40,307
public int getValue() { if (value == Spring.UNSET) { value = -s.getValue(); } return value; }
public int getValue() { if (value == Spring.UNSET) { value = -s.getValue(); } return value; }
40,308
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
40,309
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } }
40,310
public SimpleSpring(int newMin, int newPref, int newMax) { min = newMin; pref = newPref; max = newMax; value = Spring.UNSET; }
public SimpleSpring(int newMin, int newPref, int newMax) { min = newMin; pref = newPref; max = newMax; value = newPref; }
40,311
public int getValue() { if (value == Spring.UNSET) { value = pref; } return value; }
publicintgetValue(){if(value==Spring.UNSET){value=pref;} returnvalue;}
40,312
public int getValue() { if (value == Spring.UNSET) { value = pref; } return value; }
public int getValue() { if (value == Spring.UNSET) { value = pref; } return value; }
40,313
public void setValue(int val) { if (val > max) { value = max; } else if (val < min) { value = min; } else { value = val; } }
public void setValue(int val) { if (val > max) { value = max; } else if (val < min) { value = min; } else { value = val; } }
40,314
public void setValue(int val) { if (val > max) { value = max; } else if (val < min) { value = min; } else { value = val; } }
public void setValue(int val) { if (val > max) { value = max; else if (val < min) { value = min; else { value = val; }
40,315
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
40,316
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
40,317
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
40,318
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
40,319
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
40,320
public AccessibleStateSet getAccessibleStateSet() { return null; }
public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet result = super.getAccessibleStateSet(); if (orientation == JProgressBar.HORIZONTAL) result.add(AccessibleState.HORIZONTAL); else if (orientation == JProgressBar.VERTICAL) result.add(AccessibleState.VERTICAL); return result; }
40,321
public AccessibleValue getAccessibleValue() { return null; }
public AccessibleValue getAccessibleValue() { return this; }
40,322
public Number getCurrentAccessibleValue() { return null; }
public Number getCurrentAccessibleValue() { return new Integer(getValue()); }
40,323
public Number getMaximumAccessibleValue() { return null; }
public Number getMaximumAccessibleValue() { return new Integer(getMaximum()); }
40,324
public Number getMinimumAccessibleValue() { return null; }
public Number getMinimumAccessibleValue() { return new Integer(getMinimum()); }
40,325
public boolean setCurrentAccessibleValue(Number value0) { return false; }
public boolean setCurrentAccessibleValue(Number value) { return false; }
40,326
public int getLayer() { JDesktopPane pane = getDesktopPane(); if (pane != null) return pane.getLayer(this).intValue(); return -1; }
public int getLayer() { JDesktopPane pane = getDesktopPane(); if (pane != null) return pane.getLayer(this); return -1; }
40,328
public void setDefaultCloseOperation(int operation) { if (operation != DO_NOTHING_ON_CLOSE || operation != HIDE_ON_CLOSE || operation != DISPOSE_ON_CLOSE) throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE"); defaultCloseOperation = operation; }
public void setDefaultCloseOperation(int operation) { if (operation != DO_NOTHING_ON_CLOSE || operation != HIDE_ON_CLOSE || operation != DISPOSE_ON_CLOSE) throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE"); defaultCloseOperation = operation; }
40,329
public int getColumnCount() { return dataModel.getColumnCount(); }
public int getColumnCount() { return columnModel.getColumnCount(); }
40,330
public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { boolean rsa = getRowSelectionAllowed(); boolean csa = getColumnSelectionAllowed(); boolean rs = rsa ? getSelectionModel().isSelectedIndex(row) : false; b...
public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { boolean rsa = getRowSelectionAllowed(); boolean csa = getColumnSelectionAllowed(); boolean rs = rsa ? getSelectionModel().isSelectedIndex(row) : false; b...
40,332
public void internalFrameActivated(InternalFrameEvent e) { // FIXME: Implement. }
frame.getGlassPane().setVisible(false); frame.getGlassPane().setVisible(false); frame.getGlassPane().setVisible(false); frame.getGlassPane().setVisible(false); publicframe.getGlassPane().setVisible(false); voidframe.getGlassPane().setVisible(false); internalFrameActivated(InternalFrameEventframe.getGlassPane().setVisib...
40,334
public void internalFrameDeactivated(InternalFrameEvent e) { // FIXME: Implement. }
frame.getGlassPane().setVisible(true); frame.getGlassPane().setVisible(true); frame.getGlassPane().setVisible(true); frame.getGlassPane().setVisible(true); publicframe.getGlassPane().setVisible(true); voidframe.getGlassPane().setVisible(true); internalFrameDeactivated(InternalFrameEventframe.getGlassPane().setVisible(t...
40,335
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
frame.putClientProperty("bufferedDragging", Boolean.TRUE); frame.putClientProperty("bufferedDragging", Boolean.TRUE); frame.putClientProperty("bufferedDragging", Boolean.TRUE); frame.putClientProperty("bufferedDragging", Boolean.TRUE); publicframe.putClientProperty("bufferedDragging", Boolean.TRUE); voidframe.putClient...
40,336
public void layoutContainer(Container c) { Dimension dims = frame.getSize(); Insets insets = frame.getInsets(); dims.width -= insets.left + insets.right; dims.height -= insets.top + insets.bottom; frame.getRootPane().getGlassPane().setBounds(0, 0, dims.width, ...
public void layoutContainer(Container c) { Dimension dims = frame.getSize(); Insets insets = frame.getInsets(); dims.width -= insets.left + insets.right; dims.height -= insets.top + insets.bottom; frame.getRootPane().getGlassPane().setBounds(0, 0, dims.width, ...
40,338
protected void installDefaults() { internalFrameLayout = createLayoutManager(); frame.setLayout(internalFrameLayout); LookAndFeel.installBorder(frame, "InternalFrame.border"); frame.setFrameIcon(UIManager.getIcon("InternalFrame.icon")); // InternalFrames are invisible by default. fram...
protected void installDefaults() { internalFrameLayout = createLayoutManager(); frame.setLayout(internalFrameLayout); LookAndFeel.installBorder(frame, "InternalFrame.border"); frame.setFrameIcon(UIManager.getIcon("InternalFrame.icon")); // InternalFrames are invisible by default. }
40,339
public void installUI(JComponent c) { if (c instanceof JInternalFrame) { frame = (JInternalFrame) c; ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(false); frame.getRootPane().getGlassPane().setVisible(true); installDefaults(); installListeners(); instal...
public void installUI(JComponent c) { if (c instanceof JInternalFrame) { frame = (JInternalFrame) c; ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(false); frame.getRootPane().getGlassPane().setVisible(true); installDefaults(); installListeners(); instal...
40,340
public void installUI(JComponent c) { if (c instanceof JInternalFrame) { frame = (JInternalFrame) c; ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(false); frame.getRootPane().getGlassPane().setVisible(true); installDefaults(); installListeners(); instal...
public void installUI(JComponent c) { if (c instanceof JInternalFrame) { frame = (JInternalFrame) c; ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(false); frame.getRootPane().getGlassPane().setVisible(true); installDefaults(); installListeners(); instal...
40,341
public void uninstallUI(JComponent c) { uninstallKeyboardActions(); uninstallComponents(); uninstallListeners(); uninstallDefaults(); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(true); frame.getRootPane().getGlassPane().setVisible(false); frame = null; }
public void uninstallUI(JComponent c) { uninstallKeyboardActions(); uninstallComponents(); uninstallListeners(); uninstallDefaults(); frame.getRootPane().getGlassPane().setVisible(false); frame = null; }
40,342
public void uninstallUI(JComponent c) { uninstallKeyboardActions(); uninstallComponents(); uninstallListeners(); uninstallDefaults(); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(true); frame.getRootPane().getGlassPane().setVisible(false); frame = null; }
publicvoiduninstallUI(JComponentc){uninstallKeyboardActions();uninstallComponents();uninstallListeners();uninstallDefaults();((JComponent)frame.getRootPane().getGlassPane()).setOpaque(true);frame.getRootPane().getGlassPane().setVisible(false);frame=null;}
40,343
private void markThreadStack(VmThread thread) { // For now do it stupid, but safe, just scan the whole stack. final int stackSize = thread.getStackSize(); final Object stack = helper.getStack(thread); for (int i = 0; i < stackSize; i += slotSize) { Address child = Unsafe.getAd...
private void markThreadStack(VmThread thread) { // For now do it stupid, but safe, just scan the whole stack. final int stackSize = thread.getStackSize(); final Object stack = helper.getStack(thread); for (int i = 0; i < stackSize; i += slotSize) { Address child = Unsafe.getAd...
40,344
public boolean visit(Object object) { // Be very paranoia for now /* * if (!heapManager.isObject(helper.addressOf(object))) { * Unsafe.debug("visit got non-object"); * Unsafe.debug(helper.addressToLong(helper.addressOf(object))); * Unsafe.getCurrentProcessor().getArchit...
public boolean visit(Object object) { // Be very paranoia for now /* * if (!heapManager.isObject(helper.addressOf(object))) { * Unsafe.debug("visit got non-object"); * Unsafe.debug(helper.addressToLong(helper.addressOf(object))); * Unsafe.getCurrentProcessor().getArchit...
40,345
protected void uninstallDefaults() { table.setFont(null); table.setGridColor(null); table.setForeground(null); table.setBackground(null); table.setSelectionForeground(null); table.setSelectionBackground(null); }
protected void uninstallDefaults() { table.setFont(null); table.setGridColor(null); table.setForeground(null); table.setBackground(null); table.setSelectionForeground(null); table.setSelectionBackground(null); }
40,349
void load(EmitterContext ec) { if (kind != REGISTER) { X86RegisterPool pool = ec.getPool(); final Register l = (Register)pool.request(INT, this); final Register r = (Register)pool.request(INT, this); loadTo(ec, l, r); } }
voidmyAssert(r != null); myAssert(l != null); load(EmitterContextmyAssert(r != null); myAssert(l != null); ec)myAssert(r != null); myAssert(l != null); { ifmyAssert(r != null); myAssert(l != null); (kindmyAssert(r != null); myAssert(l != null); !=myAssert(r != null); myAssert(l != null); REGISTER)myAssert(r != null);...
40,350
void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); os.log("LongItem.log called "+Integer.toString(kind)); myAssert(lsb != msb); switch (kind) { case REGISTER: // invariant: (msb != lsb) && (this.msb != this.lsb) if (ms...
void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); os.log("LongItem.log called "+Integer.toString(kind)); myAssert(lsb != msb); switch (kind) { case REGISTER: // invariant: (msb != lsb) && (this.msb != this.lsb) if (ms...
40,351
void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case REGISTER: os.writePUSH(lsb); os.writePUSH(msb); break; case LOCAL: os.writePUSH(FP, offsetToFP+4); os.writePUSH(FP, offsetToFP); ...
void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case REGISTER: os.writePUSH(lsb); os.writePUSH(msb); break; case LOCAL: os.writePUSH(FP, offsetToFP+4); os.writePUSH(FP, offsetToFP); ...
40,352
void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case REGISTER: os.writePUSH(lsb); os.writePUSH(msb); break; case LOCAL: os.writePUSH(FP, offsetToFP+4); os.writePUSH(FP, offsetToFP); ...
void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case REGISTER: os.writePUSH(lsb); os.writePUSH(msb); break; case LOCAL: os.writePUSH(FP, offsetToFP+4); os.writePUSH(FP, offsetToFP); ...
40,353
public DefaultDeviceManager(ExtensionPoint findersEP, ExtensionPoint mappersEP) { super(); if (findersEP == null) { throw new IllegalArgumentException( "finders extension-point cannot be null"); } if (mappersEP == null) { throw new IllegalArgumentException( ...
public DefaultDeviceManager(ExtensionPoint findersEP, ExtensionPoint mappersEP) { super(); if (findersEP == null) { throw new IllegalArgumentException( "finders extension-point cannot be null"); } if (mappersEP == null) { throw new IllegalArgumentException( ...
40,354
public DefaultDeviceManager(ExtensionPoint findersEP, ExtensionPoint mappersEP) { super(); if (findersEP == null) { throw new IllegalArgumentException( "finders extension-point cannot be null"); } if (mappersEP == null) { throw new IllegalArgumentException( ...
public DefaultDeviceManager(ExtensionPoint findersEP, ExtensionPoint mappersEP) { super(); if (findersEP == null) { throw new IllegalArgumentException( "finders extension-point cannot be null"); } if (mappersEP == null) { throw new IllegalArgumentException( ...
40,355
private void configureFinder(List<DeviceFinder> finders, ConfigurationElement element) { final String className = element.getAttribute("class"); BootLog.debug("Configure finder: class=" + className); if (className != null) { try { final Class cls = Thread.currentThread...
private void configureFinder(List<DeviceFinder> finders, ConfigurationElement element) { final String className = element.getAttribute("class"); if (className != null) { try { final Class cls = Thread.currentThread() .getContextClassLoader().load...
40,356
private void configureMapper(List<DeviceToDriverMapper> mappers, ConfigurationElement element) { final String className = element.getAttribute("class"); BootLog.debug("Configure mapper: class=" + className); if (className != null) { try { final Class cls = Thread.curre...
private void configureMapper(List<DeviceToDriverMapper> mappers, ConfigurationElement element) { final String className = element.getAttribute("class"); if (className != null) { try { final Class cls = Thread.currentThread() .getContextClassLoade...
40,357
private void configureMapper(List<DeviceToDriverMapper> mappers, ConfigurationElement element) { final String className = element.getAttribute("class"); BootLog.debug("Configure mapper: class=" + className); if (className != null) { try { final Class cls = Thread.curre...
private void configureMapper(List<DeviceToDriverMapper> mappers, ConfigurationElement element) { final String className = element.getAttribute("class"); BootLog.debug("Configure mapper: class=" + className); if (className != null) { try { final Class cls = Thread.curre...
40,358
private DeviceToDriverMapper newMapperInstance(Class cls, ConfigurationElement element) throws InstantiationException, IllegalAccessException { try { final Constructor c = cls.getConstructor(new Class[] { ConfigurationElement.class }); try { return (DeviceToDriverMapper)c...
private DeviceToDriverMapper newMapperInstance(Class cls, ConfigurationElement element) throws InstantiationException, IllegalAccessException { try { final Constructor c = cls.getConstructor(new Class[]{ConfigurationElement.class}); try { return (DeviceToDriverMapper)c.ne...
40,359
private DeviceToDriverMapper newMapperInstance(Class cls, ConfigurationElement element) throws InstantiationException, IllegalAccessException { try { final Constructor c = cls.getConstructor(new Class[] { ConfigurationElement.class }); try { return (DeviceToDriverMapper)c...
private DeviceToDriverMapper newMapperInstance(Class cls, ConfigurationElement element) throws InstantiationException, IllegalAccessException { try { final Constructor c = cls.getConstructor(new Class[] { ConfigurationElement.class }); try { return (DeviceToDriverMapper) ...
40,360
protected final void refreshFinders(List<DeviceFinder> finders) { finders.clear(); final Extension[] extensions = findersEP.getExtensions(); BootLog.debug("Found " + extensions.length + " device finders"); for (int i = 0; i < extensions.length; i++) { final Extension ext = ext...
protected final void refreshFinders(List<DeviceFinder> finders) { finders.clear(); final Extension[] extensions = findersEP.getExtensions(); BootLog.debug("Found " + extensions.length + " device finders"); for (int i = 0; i < extensions.length; i++) { final Extension ext = ext...
40,361
protected final void refreshFinders(List<DeviceFinder> finders) { finders.clear(); final Extension[] extensions = findersEP.getExtensions(); BootLog.debug("Found " + extensions.length + " device finders"); for (int i = 0; i < extensions.length; i++) { final Extension ext = ext...
protected final void refreshFinders(List<DeviceFinder> finders) { finders.clear(); final Extension[] extensions = findersEP.getExtensions(); BootLog.debug("Found " + extensions.length + " device finders"); for (int i = 0; i < extensions.length; i++) { final Extension ext = ext...
40,362
protected final void refreshMappers(List<DeviceToDriverMapper> mappers) { mappers.clear(); final Extension[] extensions = mappersEP.getExtensions(); BootLog.debug("Found " + extensions.length + " mapper extensions"); // First load all mappers for (int i = 0; i < extensions.length;...
protected final void refreshMappers(List<DeviceToDriverMapper> mappers) { mappers.clear(); final Extension[] extensions = mappersEP.getExtensions(); BootLog.debug("Found " + extensions.length + " mapper extensions"); // First load all mappers for (int i = 0; i < extensions.length;...
40,363
protected final void refreshMappers(List<DeviceToDriverMapper> mappers) { mappers.clear(); final Extension[] extensions = mappersEP.getExtensions(); BootLog.debug("Found " + extensions.length + " mapper extensions"); // First load all mappers for (int i = 0; i < extensions.length;...
protected final void refreshMappers(List<DeviceToDriverMapper> mappers) { mappers.clear(); final Extension[] extensions = mappersEP.getExtensions(); BootLog.debug("Found " + extensions.length + " mapper extensions"); // First load all mappers for (int i = 0; i < extensions.length;...
40,364
public void start() throws PluginException { try { InitialNaming.bind(NAME, this); WorkUtils.add(new Work("Start device manager") { public void execute() { loadExtensions(); } }); } catch (NamingException ex) { ...
public void start() throws PluginException { try { InitialNaming.bind(NAME, this); WorkUtils.add(new Work("Start device manager") { public void execute() { loadExtensions(); } }); } catch (NamingException ex) { ...
40,365
protected Object generateSignature() throws IllegalStateException { // 1. EMSA-PKCS1-v1_5 encoding: Apply the EMSA-PKCS1-v1_5 encoding // operation (Section 9.2) to the message M to produce an encoded // message EM of length k octets: // // EM = EMSA-PKCS1-V1_5-ENCODE (M, k). // // I...
protectedObjectgenerateSignature()throwsIllegalStateException{//1.EMSA-PKCS1-v1_5encoding:ApplytheEMSA-PKCS1-v1_5encoding//operation(Section9.2)tothemessageMtoproduceanencoded//messageEMoflengthkoctets:////EM=EMSA-PKCS1-V1_5-ENCODE(M,k).////Iftheencodingoperationoutputs"messagetoolong,"output//"messagetoolong"andstop.I...
40,366
protected void setupForSigning(final PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); } privateKey = k; }
protected void setupForSigning(final PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); } privateKey = k; }
40,367
protected void setupForSigning(final PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); } privateKey = k; }
protected void setupForSigning(final PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); privateKey = k; }
40,368
protected void setupForVerification(final PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); } publicKey = k; }
protected void setupForVerification(final PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); } publicKey = k; }
40,369
protected void setupForVerification(final PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); } publicKey = k; }
protected void setupForVerification(final PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); publicKey = k; }
40,370