bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected void fireMenuDeselected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuDeselected(new MenuEvent(this)); } | protected void fireMenuDeselected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuDeselected(menuEvent); } | 20,290 |
protected void fireMenuSelected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuSelected(new MenuEvent(this)); } | protected void fireMenuSelected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuSelected(menuEvent); } | 20,291 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenu(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenu(); return accessibleContext; } | 20,292 |
public int getItemCount() { return 0; } | public int getItemCount() { return getComponents().length; } | 20,294 |
public void insert(String text, int index) { popupMenu.insert(new JMenuItem(text), index); } | public void insert(String text, int index) { this.insert(new JMenuItem(text), index); } | 20,295 |
public boolean isSelected() { return super.isSelected(); } | public boolean isSelected() { return super.isArmed(); } | 20,297 |
public void setAccelerator(KeyStroke keystroke) { super.setAccelerator(keystroke); } | public void setAccelerator(KeyStroke keystroke) { throw new Error("setAccelerator() is not defined for JMenu. Use setMnemonic() instead."); } | 20,299 |
public void setMenuLocation(int x, int y) { popupMenu.setLocation(x, y); } | public void setMenuLocation(int x, int y) { menuLocation = new Point(x, y); } | 20,301 |
public void setPopupMenuVisible(boolean popup) { if (isEnabled()) popupMenu.setVisible(popup); } | public void setPopupMenuVisible(boolean popup) { if (getModel().isEnabled()) popupMenu.setVisible(popup); } | 20,302 |
public void setSelected(boolean selected) { super.setSelected(selected); } | public void setSelected(boolean selected) { super.setArmed(true); fireMenuSelected(); } | 20,303 |
private EMSA_PKCS1_V1_5(final IMessageDigest hash) { super(); this.hash = hash; hLen = hash.hashSize(); final String name = hash.name(); if (name.equals(Registry.MD2_HASH)) { prefix = MD2_PREFIX; } else if (name.equals(Registry.MD5_HASH)) { prefix = MD5_PREFIX; } ... | private EMSA_PKCS1_V1_5(final IMessageDigest hash) super(); this.hash = hash; hLen = hash.hashSize(); final String name = hash.name(); if (name.equals(Registry.MD2_HASH)) prefix = MD2_PREFIX; } else if (name.equals(Registry.MD5_HASH)) prefix = MD5_PREFIX; } e... | 20,304 |
private EMSA_PKCS1_V1_5(final IMessageDigest hash) { super(); this.hash = hash; hLen = hash.hashSize(); final String name = hash.name(); if (name.equals(Registry.MD2_HASH)) { prefix = MD2_PREFIX; } else if (name.equals(Registry.MD5_HASH)) { prefix = MD5_PREFIX; } ... | private EMSA_PKCS1_V1_5(final IMessageDigest hash) { super(); this.hash = hash; hLen = hash.hashSize(); final String name = hash.name(); if (name.equals(Registry.MD2_HASH)) { prefix = MD2_PREFIX; else if (name.equals(Registry.MD5_HASH)) { prefix = MD5_PREFIX; ... | 20,305 |
public byte[] encode(final byte[] mHash, final int emLen) { // 1. Apply the hash function to the message M to produce a hash value // H: H = Hash(M). // If the hash function outputs "message too long," output "message // too long" and stop. // 2. Encode the algorithm ID for the hash function ... | public byte[] encode(final byte[] mHash, final int emLen) // 1. Apply the hash function to the message M to produce a hash value // H: H = Hash(M). // If the hash function outputs "message too long," output "message // too long" and stop. // 2. Encode the algorithm ID for the hash function a... | 20,306 |
public byte[] encode(final byte[] mHash, final int emLen) { // 1. Apply the hash function to the message M to produce a hash value // H: H = Hash(M). // If the hash function outputs "message too long," output "message // too long" and stop. // 2. Encode the algorithm ID for the hash function ... | public byte[] encode(final byte[] mHash, final int emLen) { // 1. Apply the hash function to the message M to produce a hash value // H: H = Hash(M). // If the hash function outputs "message too long," output "message // too long" and stop. // 2. Encode the algorithm ID for the hash function ... | 20,307 |
public static final EMSA_PKCS1_V1_5 getInstance(final String mdName) { final IMessageDigest hash = HashFactory.getInstance(mdName); final String name = hash.name(); if (!(name.equals(Registry.MD2_HASH) || name.equals(Registry.MD5_HASH) || name.equals(Registry.SHA160_HASH) || name.equals(Re... | public static final EMSA_PKCS1_V1_5 getInstance(final String mdName) { final IMessageDigest hash = HashFactory.getInstance(mdName); final String name = hash.name(); if (!(name.equals(Registry.MD2_HASH) || name.equals(Registry.MD5_HASH) || name.equals(Registry.SHA160_HASH) || name.equals(Re... | 20,308 |
public static final EMSA_PKCS1_V1_5 getInstance(final String mdName) { final IMessageDigest hash = HashFactory.getInstance(mdName); final String name = hash.name(); if (!(name.equals(Registry.MD2_HASH) || name.equals(Registry.MD5_HASH) || name.equals(Registry.SHA160_HASH) || name.equals(Re... | public static final EMSA_PKCS1_V1_5 getInstance(final String mdName) { final IMessageDigest hash = HashFactory.getInstance(mdName); final String name = hash.name(); if (!(name.equals(Registry.MD2_HASH) || name.equals(Registry.MD5_HASH) || name.equals(Registry.SHA160_HASH) || name.equals(Re... | 20,309 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) { DSAPrivateKeySpec spec = (DSAPrivateKeySpec) keySpec; BigInteger p = spec.getP(); BigInteger q = spec.getQ(); BigInteger g = spec.getG(); ... | protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) { DSAPrivateKeySpec spec = (DSAPrivateKeySpec) keySpec; BigInteger p = spec.getP(); BigInteger q = spec.getQ(); BigInteger g = spec.getG(); ... | 20,310 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) { DSAPublicKeySpec spec = (DSAPublicKeySpec) keySpec; BigInteger p = spec.getP(); BigInteger q = spec.getQ(); BigInteger g = spec.getG(); ... | protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) { DSAPublicKeySpec spec = (DSAPublicKeySpec) keySpec; BigInteger p = spec.getP(); BigInteger q = spec.getQ(); BigInteger g = spec.getG(); ... | 20,311 |
public static NamingContext extract(Any a) { try { return ((NamingContextHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Naming context expected"); } } | public static NamingContext extract(Any a) { try { return ((NamingContextHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Naming context expected"); bad.initCause(ex); throw bad; } } | 20,312 |
public final int getAlpha(int pixel) { if (!hasAlpha()) return 0; return extractAndScaleSample(pixel, 3); } | public final int getAlpha(int pixel) { if (!hasAlpha()) return 255; return extractAndScaleSample(pixel, 3); } | 20,313 |
public PackedColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transparency, int transferType) { this(cspace, pixelBits, makeColorMaskArray(rmask, gmask, bmask), amask, isAlphaPremultiplied, transparency, transferType); } | public PackedColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transparency, int transferType) { this(cspace, pixelBits, makeColorMaskArray(rmask, gmask, bmask), amask, isAlphaPremultiplied, transparency, transferType); } | 20,314 |
public PackedColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transparency, int transferType) { this(cspace, pixelBits, makeColorMaskArray(rmask, gmask, bmask), amask, isAlphaPremultiplied, transparency, transferType); } | public PackedColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transparency, int transferType) { this(cspace, pixelBits, makeColorMaskArray(rmask, gmask, bmask), amask, isAlphaPremultiplied, transparency, transferType); } | 20,315 |
protected boolean accept (Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instan... | protected boolean accept (Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && (comp.isFocusTraversable () || comp.isFocusable())) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof... | 20,316 |
protected boolean accept (Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instan... | protected boolean accept (Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instan... | 20,317 |
protected boolean accept (Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instan... | protected boolean accept (Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instan... | 20,318 |
public void checkPackageAccess(String packageName) { checkPackageList(packageName, "access", "accessClassInPackage."); } | public void checkPackageAccess(String packageName) { checkPackageList(packageName, "package.access", "accessClassInPackage."); } | 20,319 |
public void checkPackageDefinition(String packageName) { checkPackageList(packageName, "definition", "defineClassInPackage."); } | public void checkPackageDefinition(String packageName) { checkPackageList(packageName, "package.definition", "defineClassInPackage."); } | 20,320 |
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | void checkPackageList(String packageName, final String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); ... | 20,321 |
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | 20,322 |
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | 20,323 |
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | 20,324 |
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | 20,325 |
public DragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) { } | public DragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) { } | 20,326 |
public void addDragSourceListener(DragSourceListener l) throws TooManyListenersException { } | public void addDragSourceListener (DragSourceListener dsl) throws TooManyListenersException { } | 20,328 |
public Component getComponent() { return null; } | public Component getComponent() { return trigger.getComponent (); } | 20,330 |
public Cursor getCursor() { return null; } | public Cursor getCursor() { return cursor; } | 20,331 |
public DragSource getDragSource() { return null; } | public DragSource getDragSource() { return trigger.getDragSource (); } | 20,332 |
public int getSourceActions() { return 0; } | public int getSourceActions() { return trigger.getSourceAsDragGestureRecognizer ().getSourceActions (); } | 20,333 |
public Transferable getTransferable() { return null; } | public Transferable getTransferable() { return transferable; } | 20,334 |
public DragGestureEvent getTrigger() { return null; } | public DragGestureEvent getTrigger() { return trigger; } | 20,335 |
public void removeDragSourceListener(DragSourceListener l) { } | public void removeDragSourceListener (DragSourceListener dsl) { } | 20,336 |
public void setCursor(Cursor c) { } | public void setCursor (Cursor cursor) { } | 20,338 |
protected String getText(Element elt) throws BadLocationException { if (! elt.isLeaf()) throw new BadLocationException("Element is not a leaf", elt.getStartOffset()); return document.getText(elt.getStartOffset(), elt.getEndOffset()); } | protected String getText(Element elt) throws BadLocationException { if (! elt.isLeaf()) throw new BadLocationException("Element is not a leaf", elt.getStartOffset()); return document.getText(elt.getStartOffset(), elt.getEndOffset() - elt.getStartOffset()); } | 20,340 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then current... | 20,341 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. for (int i = 0; i < minSize; i++) { minSize = selectedPath.size(); // if new selected path contains more elements then curren... | 20,342 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 20,343 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 20,344 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 20,345 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 20,346 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 20,347 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 20,348 |
public boolean equals(Object obj) { if (! (obj instanceof Inet6Address)) return false; // this.ipaddress is never set in this class except to // the value of the super class' addr. The super classes // equals(Object) will do the compare. return super.equals(obj); } | public boolean equals(Object obj) { if (! (obj instanceof Inet6Address)) return false; // this.ipaddress is never set in this class except to // the value of the super class' addr. The super classes // equals(Object) will do the compare. Inet6Address ip = (Inet6Address)obj; if (ipaddress.length != ... | 20,350 |
public VMWareCore(VMWareDriver driver, PCIDevice device) throws ResourceNotFreeException, DriverException { super(640, 480); this.driver = driver; final int basePort; if (device.getConfig().getDeviceID() == PCI_DEVICE_ID_VMWARE_SVGA) { basePort = SVGA_LEGACY_BASE_PORT; this.indexPort = SVGA_LEGACY_BASE_PORT + ... | public VMWareCore(VMWareDriver driver, PCIDevice device) throws ResourceNotFreeException, DriverException { super(640, 480); this.driver = driver; final int basePort; if (device.getConfig().getDeviceID() == PCI_DEVICE_ID_VMWARE_SVGA) { basePort = SVGA_LEGACY_BASE_PORT; this.indexPort = SVGA_LEGACY_BASE_PORT + ... | 20,352 |
protected AccessibleJComponent() { changeSupport = new SwingPropertyChangeSupport(this); } | protected AccessibleJComponent() { changeSupport = new PropertyChangeSupport(this); } | 20,353 |
public void addPropertyChangeListener(PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); } | public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); } | 20,354 |
public void addPropertyChangeListener(PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); } | public void addPropertyChangeListener(PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); } | 20,355 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null || newParent instanceof Wind... | 20,356 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | 20,357 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | 20,358 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | 20,359 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | 20,360 |
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, Boolean.valueOf(oldValue), Boolean.valueOf(newValue)); } | public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, Boolean.valueOf(oldValue), Boolean.valueOf(newValue)); } | 20,361 |
public void printBorder(Graphics g) { paintBorder(g); } | protected void printBorder(Graphics g) { paintBorder(g); } | 20,362 |
public void printChildren(Graphics g) { paintChildren(g); } | protected void printChildren(Graphics g) { paintChildren(g); } | 20,363 |
public void printComponent(Graphics g) { paintComponent(g); } | protected void printComponent(Graphics g) { paintComponent(g); } | 20,364 |
protected ActivationGroup(ActivationGroupID groupID) throws RemoteException { throw new Error("Not implemented");} | protected ActivationGroup(ActivationGroupID groupID) throws RemoteException { throw new Error("Not implemented");} | 20,365 |
public static ActivationGroup createGroup(ActivationGroupID id, ActivationGroupDesc desc, long incarnation) throws ActivationException { throw new Error("Not implemented");} | public static ActivationGroup createGroup(ActivationGroupID id, ActivationGroupDesc desc, long incarnation) throws ActivationException { throw new Error("Not implemented");} | 20,366 |
public static ActivationSystem getSystem() throws ActivationException { throw new Error("Not implemented");} | public static ActivationSystem getSystem() throws ActivationException { throw new Error("Not implemented");} | 20,367 |
protected void inactiveGroup() throws UnknownGroupException, RemoteException { throw new Error("Not implemented");} | protected void inactiveGroup() throws UnknownGroupException, RemoteException { throw new Error("Not implemented");} | 20,368 |
public boolean inactiveObject(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented");} | public boolean inactiveObject(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented");} | 20,369 |
public static void setSystem(ActivationSystem system) throws ActivationException { throw new Error("Not implemented");} | public static void setSystem(ActivationSystem system) throws ActivationException { throw new Error("Not implemented");} | 20,370 |
private int readLength() throws IOException { int i = in.read(); if (i == -1) throw new EOFException(); encBuf.write(i); if ((i & ~0x7F) == 0) { return i; } else if (i < 0xFF) { byte[] octets = new byte[i & 0x7F]; in.read(octets); encBuf.write(octets); ... | protected int readLength() throws IOException { int i = in.read(); if (i == -1) throw new EOFException(); encBuf.write(i); if ((i & ~0x7F) == 0) { return i; } else if (i < 0xFF) { byte[] octets = new byte[i & 0x7F]; in.read(octets); encBuf.write(octets);... | 20,371 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | 20,373 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | 20,374 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | 20,375 |
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | public void setup(Map attributes) log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec params... | 20,377 |
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | 20,378 |
public boolean grabPixels() throws InterruptedException { return grabPixels(0); } | public synchronized boolean grabPixels() throws InterruptedException { return grabPixels(0); } | 20,380 |
public void addHelpMenu(Menu helpMenu) { helpMenu.addNotify(); jComponent.setHelpMenu(((SwingMenuPeer) helpMenu.getPeer()).jComponent); } | public void addHelpMenu(Menu helpMenu) { helpMenu.addNotify(); jComponent.add(((SwingMenuPeer) helpMenu.getPeer()).jComponent); } | 20,381 |
public JMenuBar() { selectionModel = new DefaultSingleSelectionModel(); paintBorder = true; updateUI(); } | public JMenuBar() { selectionModel = new DefaultSingleSelectionModel(); borderPainted = true; updateUI(); } | 20,382 |
public abstract void addHelpMenu(Menu menu); | void addHelpMenu(Menu menu); | 20,383 |
public abstract void addMenu(Menu menu); | void addMenu(Menu menu); | 20,384 |
public abstract void delMenu(int index); | void delMenu(int index); | 20,385 |
public static long UTC(int year, int month, int date, int hrs, int min, int sec) { Date d = new Date(year, month, date, hrs, min, sec); d.isGMT = true; return d.getTime(); } | public static long UTC(int year, int month, int date, int hrs, int min, int sec) { Date d = new Date(year, month, date, hrs, min, sec); d.isGMT = true; return d.getTime(); } | 20,386 |
public boolean after(Date when) { return getTime() > when.getTime(); } | public boolean after(Date when) { return getTime() > when.getTime(); } | 20,387 |
public boolean before(Date when) { return getTime() < when.getTime(); } | public boolean before(Date when) { return getTime() < when.getTime(); } | 20,388 |
public int getDate() { refresh_components(); return date; } | public int getDate() { refresh_components(); return date; } | 20,389 |
public int getDay() { refresh_components(); return day; } | public int getDay() { refresh_components(); return day; } | 20,390 |
public int getHours() { refresh_components(); return hrs; } | public int getHours() { refresh_components(); return hrs; } | 20,391 |
public int getMinutes() { refresh_components(); return min; } | public int getMinutes() { refresh_components(); return min; } | 20,392 |
public int getMonth() { refresh_components(); return month; } | public int getMonth() { refresh_components(); return month; } | 20,393 |
public int getSeconds() { refresh_components(); return sec; } | public int getSeconds() { refresh_components(); return sec; } | 20,394 |
public int getTimezoneOffset() { if (isGMT) return 0; refresh_millis(); return timezone + (isdst ? 60 : 0); } | public int getTimezoneOffset() { if (isGMT) return 0; refresh_millis(); return timezone + (isdst ? 60 : 0); } | 20,395 |
public int getYear() { refresh_components(); return year; } | public int getYear() { refresh_components(); return year; } | 20,396 |
public int hashCode() { refresh_millis(); return (int) (millis ^ (millis >>> 32)); } | public int hashCode() { refresh_millis(); return (int) (millis ^ (millis >>> 32)); } | 20,397 |
public synchronized static long parse(String string) { return new DateParser(string).parse(); } | public synchronized static long parse(String string) { return new DateParser(string).parse(); } | 20,398 |
public void setDate(int date) { this.date = date; invalidate(); } | public void setDate(int date) { this.date = date; invalidate(); } | 20,399 |
public void setHours(int hours) { this.hrs = hours; invalidate(); } | public void setHours(int hours) { this.hrs = hours; invalidate(); } | 20,400 |
public void setMinutes(int minutes) { this.min = minutes; invalidate(); } | public void setMinutes(int minutes) { this.min = minutes; invalidate(); } | 20,401 |
public void setMonth(int month) { this.month = month; invalidate(); } | public void setMonth(int month) { this.month = month; invalidate(); } | 20,402 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.