bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 37,125 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 37,126 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 37,127 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 37,128 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 37,129 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 37,130 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 37,131 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 37,132 |
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | 37,133 |
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | 37,134 |
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | 37,135 |
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | 37,136 |
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe... | 37,137 |
public boolean implies(Permission perm) { final SocketPermission that; //System.out.println("implies"); // First make sure we are the right object type if (perm instanceof SocketPermission) { that = (SocketPermission) perm; } else { return false; } ... | public boolean implies(Permission perm) { final SocketPermission that; //System.out.println("implies"); // First make sure we are the right object type if (perm instanceof SocketPermission) { that = (SocketPermission) perm; } else { return false; } ... | 37,138 |
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ... | protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ... | 37,140 |
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ... | protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ... | 37,141 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | 37,142 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | 37,143 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | 37,144 |
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalTabbedPaneUI(); return instance; } | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTabbedPaneUI instance; if (o == null) { instance = new MetalTabbedPaneUI(); return instance; } | 37,145 |
public InitializationBlock32Bit( MemoryResource mem, int offset, short mode, EthernetAddress physicalAddr, long logicalAddr, RxDescriptorRing rxRing, TxDescriptorRing txRing) { this.mem = mem; this.offset = offset; // Populate the initial data structure mem.setShort(offset + 0x00, (short) mode); mem.setByt... | public InitializationBlock32Bit( MemoryResource mem, int offset, short mode, EthernetAddress physicalAddr, long logicalAddr, RxDescriptorRing rxRing, TxDescriptorRing txRing) { this.mem = mem; this.offset = offset; // Populate the initial data structure mem.setShort(offset + 0x00, (short) mode); mem.setByt... | 37,147 |
public InitializationBlock32Bit( MemoryResource mem, int offset, short mode, EthernetAddress physicalAddr, long logicalAddr, RxDescriptorRing rxRing, TxDescriptorRing txRing) { this.mem = mem; this.offset = offset; // Populate the initial data structure mem.setShort(offset + 0x00, (short) mode); mem.setByt... | public InitializationBlock32Bit( MemoryResource mem, int offset, short mode, EthernetAddress physicalAddr, long logicalAddr, RxDescriptorRing rxRing, TxDescriptorRing txRing) { this.mem = mem; this.offset = offset; // Populate the initial data structure mem.setShort(offset + 0x00, (short) mode); mem.setByt... | 37,148 |
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att... | protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att... | 37,149 |
public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (targe... | public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (targe... | 37,150 |
public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (targe... | public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (targe... | 37,151 |
public boolean dispatchKeyEvent (KeyEvent e) { Component focusOwner = getGlobalPermanentFocusOwner (); if (focusOwner != null) focusOwner.dispatchEvent (e); // Loop through all registered KeyEventPostProcessors, giving // each a chance to process this event. Iterator i = getKeyEventPostProcessors()... | public boolean dispatchKeyEvent (KeyEvent e) { Component focusOwner = getGlobalPermanentFocusOwner (); if (focusOwner != null) redispatchEvent(focusOwner, e); // Loop through all registered KeyEventPostProcessors, giving // each a chance to process this event. Iterator i = getKeyEventPostProcessors... | 37,152 |
public boolean postProcessKeyEvent (KeyEvent e) { // Check if this event represents a menu shortcut. // MenuShortcuts are activated by Ctrl- KeyEvents, only on KEY_PRESSED. int modifiers = e.getModifiersEx (); if (e.getID() == KeyEvent.KEY_PRESSED && (modifiers & KeyEvent.CTRL_DOWN_MASK) != 0) ... | public boolean postProcessKeyEvent (KeyEvent e) { // Check if this event represents a menu shortcut. // MenuShortcuts are activated by Ctrl- KeyEvents, only on KEY_PRESSED. int modifiers = e.getModifiersEx (); if (e.getID() == KeyEvent.KEY_PRESSED && (modifiers & KeyEvent.CTRL_DOWN_MASK) != 0) ... | 37,154 |
public boolean equals(Object o) { if (! (o instanceof BundleKey)) return false; BundleKey key = (BundleKey) o; return hashcode == key.hashcode && baseName.equals(key.baseName) && locale.equals(key.locale) && classLoader.equals(key.classLoader); } | public boolean equals(Object o) { if (! (o instanceof BundleKey)) return false; BundleKey key = (BundleKey) o; return hashcode == key.hashcode && baseName.equals(key.baseName) && locale.equals(key.locale) && classLoader.equals(key.classLoader); } | 37,156 |
void set(String s, Locale l, ClassLoader cl) { baseName = s; locale = l; classLoader = cl; hashcode = baseName.hashCode() ^ locale.hashCode() ^ classLoader.hashCode(); } | void set(Locale dl, String s, Locale l, ClassLoader cl) { baseName = s; locale = l; classLoader = cl; hashcode = baseName.hashCode() ^ locale.hashCode() ^ classLoader.hashCode(); } | 37,157 |
void set(String s, Locale l, ClassLoader cl) { baseName = s; locale = l; classLoader = cl; hashcode = baseName.hashCode() ^ locale.hashCode() ^ classLoader.hashCode(); } | void set(String s, Locale l, ClassLoader cl) { baseName = s; locale = l; classLoader = cl; hashcode = baseName.hashCode() ^ locale.hashCode() ^ classLoader.hashCode(); } | 37,158 |
protected AccessibleCellRendererPane(CellRendererPane component) { super(); // TODO } // AccessibleCellRendererPane() | protected AccessibleCellRendererPane(CellRendererPane component) { super(); // TODO } // AccessibleCellRendererPane() | 37,159 |
public AccessibleRole getAccessibleRole() { return AccessibleRole.PANEL; } // getAccessibleRole() | public AccessibleRole getAccessibleRole() { return AccessibleRole.PANEL; } // getAccessibleRole() | 37,160 |
public AccessibleRole getAccessibleRole() { return AccessibleRole.PANEL; } // getAccessibleRole() | public AccessibleRole getAccessibleRole() { return AccessibleRole.PANEL; } // getAccessibleRole() | 37,161 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleCellRendererPane(this); } // if return accessibleContext; } // getAccessibleContext() | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleCellRendererPane(this); } // if return accessibleContext; } // getAccessibleContext() | 37,162 |
Iterator iterator(final int type) { return new Iterator() { /** The current Entry. */ LinkedHashEntry current = root; /** The previous Entry returned by next(). */ LinkedHashEntry last; /** The number of known modifications to the backing Map. */ int knownMod = modCount; /** ... | Iterator iterator(final int type) { return new Iterator() { /** The current Entry. */ LinkedHashEntry current = root; /** The previous Entry returned by next(). */ LinkedHashEntry last; /** The number of known modifications to the backing Map. */ int knownMod = modCount; /** ... | 37,163 |
Iterator iterator(final int type) { return new Iterator() { /** The current Entry. */ LinkedHashEntry current = root; /** The previous Entry returned by next(). */ LinkedHashEntry last; /** The number of known modifications to the backing Map. */ int knownMod = modCount; /** ... | Iterator iterator(final int type) { return new Iterator() { /** The current Entry. */ LinkedHashEntry current = root; /** The previous Entry returned by next(). */ LinkedHashEntry last; /** The number of known modifications to the backing Map. */ int knownMod = modCount; /** ... | 37,164 |
public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return current != null; } | public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return current != null; } | 37,165 |
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); childAllocation(i, r); if (copy.contains(x, y)) { result = getVi... | protectedViewgetViewAtPoint(intx,inty,Rectangler){Viewresult=null;intcount=getViewCount();Rectanglecopy=newRectangle(r);for(inti=0;i<count;++i){copy.setBounds(r);childAllocation(i,r);if(copy.contains(x,y)){result=getView(i);break;}}if(result==null&&count>0)returngetView(count-1);returnresult;} | 37,166 |
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { SizeRequirements[] childReqs = getChildRequirements(axis); // Calculate the spans and offsets using the SizeRequirements uility // methods. SizeRequirements.calculateTiledPositions(targe... | protectedvoidlayoutMajorAxis(inttargetSpan,intaxis,int[]offsets,int[]spans){SizeRequirements[]childReqs=getChildRequirements(axis);//CalculatethespansandoffsetsusingtheSizeRequirementsuility//methods.SizeRequirements.calculateTiledPositions(targetSpan,null,childReqs,offsets,spans);validateLayout(axis);} | 37,167 |
public void paint(Graphics g, Shape a) { // Adjust size if the size is changed. Rectangle bounds = a.getBounds(); if (bounds.width != getWidth() || bounds.height != getHeight()) setSize(bounds.width, bounds.height); Rectangle inside = getInsideAllocation(a); Rectangle copy = new Rectangle(inside)... | publicvoidpaint(Graphicsg,Shapea){//Adjustsizeifthesizeischanged.Rectanglebounds=a.getBounds();if(bounds.width!=getWidth()||bounds.height!=getHeight())setSize(bounds.width,bounds.height);Rectangleinside=getInsideAllocation(a);Rectanglecopy=newRectangle(inside);intcount=getViewCount();for(inti=0;i<count;++i){copy.setBou... | 37,168 |
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_char); } | public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_char); } | 37,169 |
public DataBufferByte(int size) { super(TYPE_BYTE, size); data = new byte[size]; } | public DataBufferByte(int size) { super(TYPE_BYTE, size, 1, 0); bankData = new byte[1][]; data = new byte[size]; } | 37,170 |
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | 37,172 |
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); boolean shouldFire = content.getString(offset, length).length() != 0; writeLock(); ... | public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); boolean shouldFire = content.getString(offset, length).length() != 0; writeLock(); ... | 37,174 |
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); boolean shouldFire = content.getString(offset, length).length() != 0; writeLock(); ... | public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); boolean shouldFire = content.getString(offset, length).length() != 0; writeLock(); ... | 37,175 |
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); boolean shouldFire = content.getString(offset, length).length() != 0; writeLock(); ... | public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); boolean shouldFire = content.getString(offset, length).length() != 0; writeLock(); ... | 37,176 |
private DHPrivateKey decodeDHPrivateKey(DHPrivateKeySpec spec) throws InvalidKeySpecException { BigInteger p = spec.getP(); BigInteger g = spec.getG(); BigInteger x = spec.getX(); Object[] params = new Object[] {new Integer(Registry.PKCS8_ENCODING_ID), null, p, g, ... | private DHPrivateKey decodeDHPrivateKey(DHPrivateKeySpec spec) throws InvalidKeySpecException { BigInteger p = spec.getP(); BigInteger g = spec.getG(); BigInteger x = spec.getX(); Object[] params = new Object[] {Integer.valueOf(Registry.PKCS8_ENCODING_ID), null, p,... | 37,178 |
private DHPublicKey decodeDHPublicKey(DHPublicKeySpec spec) throws InvalidKeySpecException { BigInteger p = spec.getP(); BigInteger g = spec.getG(); BigInteger y = spec.getY(); Object[] params = new Object[] {new Integer(Registry.X509_ENCODING_ID), null, p, g, y}; ... | private DHPublicKey decodeDHPublicKey(DHPublicKeySpec spec) throws InvalidKeySpecException { BigInteger p = spec.getP(); BigInteger g = spec.getG(); BigInteger y = spec.getY(); Object[] params = new Object[] {Integer.valueOf(Registry.X509_ENCODING_ID), null, p, g, ... | 37,179 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { log.entering(this.getClass().getName(), "engineGeneratePrivate()", keySpec); PrivateKey result = null; if (keySpec instanceof DSAPrivateKeySpec) result = decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); ... | protectedPrivateKeyengineGeneratePrivate(KeySpeckeySpec)throwsInvalidKeySpecException{log.entering(this.getClass().getName(),"engineGeneratePrivate()",keySpec);PrivateKeyresult=null;if(keySpecinstanceofDSAPrivateKeySpec)result=decodeDSSPrivateKey((DSAPrivateKeySpec)keySpec);elseif(keySpecinstanceofRSAPrivateCrtKeySpec)... | 37,180 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { log.entering(this.getClass().getName(), "engineGeneratePrivate()", keySpec); PrivateKey result = null; if (keySpec instanceof DSAPrivateKeySpec) result = decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); ... | protectedPrivateKeyengineGeneratePrivate(KeySpeckeySpec)throwsInvalidKeySpecException{log.entering(this.getClass().getName(),"engineGeneratePrivate()",keySpec);PrivateKeyresult=null;if(keySpecinstanceofDSAPrivateKeySpec)result=decodeDSSPrivateKey((DSAPrivateKeySpec)keySpec);elseif(keySpecinstanceofRSAPrivateCrtKeySpec)... | 37,181 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { log.entering(this.getClass().getName(), "engineGeneratePrivate()", keySpec); PrivateKey result = null; if (keySpec instanceof DSAPrivateKeySpec) result = decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); ... | protectedPrivateKeyengineGeneratePrivate(KeySpeckeySpec)throwsInvalidKeySpecException{log.entering(this.getClass().getName(),"engineGeneratePrivate()",keySpec);PrivateKeyresult=null;if(keySpecinstanceofDSAPrivateKeySpec)result=decodeDSSPrivateKey((DSAPrivateKeySpec)keySpec);elseif(keySpecinstanceofRSAPrivateCrtKeySpec)... | 37,182 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { log.entering(this.getClass().getName(), "engineGeneratePrivate()", keySpec); PrivateKey result = null; if (keySpec instanceof DSAPrivateKeySpec) result = decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); ... | if (Configuration.DEBUG) if (Configuration.DEBUG) protectedif (Configuration.DEBUG) PrivateKeyif (Configuration.DEBUG) engineGeneratePrivate(KeySpecif (Configuration.DEBUG) keySpec)if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configurat... | 37,183 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { log.entering(this.getClass().getName(), "engineGeneratePublic()", keySpec); PublicKey result = null; if (keySpec instanceof DSAPublicKeySpec) result = decodeDSSPublicKey((DSAPublicKeySpec) keySpec); else ... | protectedPublicKeyengineGeneratePublic(KeySpeckeySpec)throwsInvalidKeySpecException{log.entering(this.getClass().getName(),"engineGeneratePublic()",keySpec);PublicKeyresult=null;if(keySpecinstanceofDSAPublicKeySpec)result=decodeDSSPublicKey((DSAPublicKeySpec)keySpec);elseif(keySpecinstanceofRSAPublicKeySpec)result=deco... | 37,184 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { log.entering(this.getClass().getName(), "engineGeneratePublic()", keySpec); PublicKey result = null; if (keySpec instanceof DSAPublicKeySpec) result = decodeDSSPublicKey((DSAPublicKeySpec) keySpec); else ... | protectedPublicKeyengineGeneratePublic(KeySpeckeySpec)throwsInvalidKeySpecException{log.entering(this.getClass().getName(),"engineGeneratePublic()",keySpec);PublicKeyresult=null;if(keySpecinstanceofDSAPublicKeySpec)result=decodeDSSPublicKey((DSAPublicKeySpec)keySpec);elseif(keySpecinstanceofRSAPublicKeySpec)result=deco... | 37,185 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { log.entering(this.getClass().getName(), "engineGeneratePublic()", keySpec); PublicKey result = null; if (keySpec instanceof DSAPublicKeySpec) result = decodeDSSPublicKey((DSAPublicKeySpec) keySpec); else ... | protectedPublicKeyengineGeneratePublic(KeySpeckeySpec)throwsInvalidKeySpecException{log.entering(this.getClass().getName(),"engineGeneratePublic()",keySpec);PublicKeyresult=null;if(keySpecinstanceofDSAPublicKeySpec)result=decodeDSSPublicKey((DSAPublicKeySpec)keySpec);elseif(keySpecinstanceofRSAPublicKeySpec)result=deco... | 37,186 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { log.entering(this.getClass().getName(), "engineGeneratePublic()", keySpec); PublicKey result = null; if (keySpec instanceof DSAPublicKeySpec) result = decodeDSSPublicKey((DSAPublicKeySpec) keySpec); else ... | if (Configuration.DEBUG) if (Configuration.DEBUG) protectedif (Configuration.DEBUG) PublicKeyif (Configuration.DEBUG) engineGeneratePublic(KeySpecif (Configuration.DEBUG) keySpec)if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuratio... | 37,187 |
private static Class getConcreteClass(String className) throws InvalidKeySpecException { try { Class result = Class.forName(className); return result; } catch (ClassNotFoundException x) { InvalidKeySpecException y = new InvalidKeySpecException(); y.initCause(x); ... | private static Class getConcreteClass(String className) throws InvalidKeySpecException { try { Class result = Class.forName(className); return result; } catch (ClassNotFoundException x) { InvalidKeySpecException y = new InvalidKeySpecException(); y.initCause(x); ... | 37,188 |
private static Constructor getConcreteCtor(Class clazz) throws InvalidKeySpecException { try { Constructor result = clazz.getConstructor(new Class[] {int.class, BigInteger.class, ... | private static Constructor getConcreteCtor(Class clazz) throws InvalidKeySpecException { try { Constructor result = clazz.getConstructor(new Class[] {int.class, BigInteger.class, ... | 37,189 |
private static Method getValueOfMethod(Class clazz) throws InvalidKeySpecException { try { Method result = clazz.getMethod("valueOf", new Class[] {byte[].class}); return result; } catch (NoSuchMethodException x) { InvalidKeySpecException y = new InvalidKeySpecException(... | private static Method getValueOfMethod(Class clazz) throws InvalidKeySpecException { try { Method result = clazz.getMethod("valueOf", new Class[] {byte[].class}); return result; } catch (NoSuchMethodException x) { InvalidKeySpecException y = new InvalidKeySpecException(... | 37,190 |
private static Object invokeConstructor(String className, Object[] params) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Constructor ctor = getConcreteCtor(clazz); Object result = ctor.newInstance(params); return result; } catch (Instan... | private static Object invokeConstructor(String className, Object[] params) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Constructor ctor = getConcreteCtor(clazz); Object result = ctor.newInstance(params); return result; } catch (Instan... | 37,191 |
private static Object invokeConstructor(String className, Object[] params) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Constructor ctor = getConcreteCtor(clazz); Object result = ctor.newInstance(params); return result; } catch (Instan... | private static Object invokeConstructor(String className, Object[] params) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Constructor ctor = getConcreteCtor(clazz); Object result = ctor.newInstance(params); return result; } catch (Instan... | 37,192 |
private static Object invokeConstructor(String className, Object[] params) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Constructor ctor = getConcreteCtor(clazz); Object result = ctor.newInstance(params); return result; } catch (Instan... | private static Object invokeConstructor(String className, Object[] params) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Constructor ctor = getConcreteCtor(clazz); Object result = ctor.newInstance(params); return result; } catch (Instan... | 37,193 |
private static Object invokeValueOf(String className, byte[] encoded) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Method valueOf = getValueOfMethod(clazz); Object result = valueOf.invoke(null, new Object[] { encoded }); return result; } ... | private static Object invokeValueOf(String className, byte[] encoded) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Method valueOf = getValueOfMethod(clazz); Object result = valueOf.invoke(null, new Object[] { encoded }); return result; } ... | 37,194 |
private static Object invokeValueOf(String className, byte[] encoded) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Method valueOf = getValueOfMethod(clazz); Object result = valueOf.invoke(null, new Object[] { encoded }); return result; } ... | private static Object invokeValueOf(String className, byte[] encoded) throws InvalidKeySpecException { Class clazz = getConcreteClass(className); try { Method valueOf = getValueOfMethod(clazz); Object result = valueOf.invoke(null, new Object[] { encoded }); return result; } ... | 37,195 |
public int[][] getBankData() { return bankData; } | public int[][] getBankData() { return bankData; } | 37,196 |
public int getElem(int i) { return data[i + offset]; } | public int getElem(int i) { return data[i + offset]; } | 37,197 |
public void setElem(int i, int val) { data[i + offset] = val; } | public void setElem(int i, int val) { data[i + offset] = val; } | 37,198 |
public float[] fromCIEXYZ(float[] in) { return null; } | public float[] fromCIEXYZ(float[] in) { throw new UnsupportedOperationException(); } | 37,199 |
public float[] fromRGB(float[] in) { return null; } | public float[] fromRGB(float[] in) { throw new UnsupportedOperationException(); } | 37,200 |
public float[] toCIEXYZ(float[] in) { return null; } | public float[] toCIEXYZ(float[] in) { throw new UnsupportedOperationException(); } | 37,201 |
public float[] toRGB(float[] in) { return null; } | public float[] toRGB(float[] in) { throw new UnsupportedOperationException(); } | 37,202 |
public DropTargetDropEvent (DropTargetContext dtc, Point location, int dropAction, int srcActions) { super (dtc); this.dropAction = dropAction; this.srcActions = srcActions; this.location = location; this.isLocal = false; } | public DropTargetDropEvent (DropTargetContext dtc, Point location, int dropAction, int actions) { super (dtc); this.dropAction = dropAction; this.srcActions = srcActions; this.location = location; this.isLocal = false; } | 37,203 |
public DropTargetDropEvent (DropTargetContext dtc, Point location, int dropAction, int srcActions) { super (dtc); this.dropAction = dropAction; this.srcActions = srcActions; this.location = location; this.isLocal = false; } | public DropTargetDropEvent (DropTargetContext dtc, Point location, int dropAction, int srcActions) { super (dtc); this.dropAction = dropAction; this.srcActions = srcActions; this.location = location; this.isLocal = false; } | 37,204 |
public void acceptDrop (int dropAction) { // FIXME: implement this } | context.acceptDrop (dropAction); context.acceptDrop (dropAction); publiccontext.acceptDrop (dropAction); voidcontext.acceptDrop (dropAction); acceptDropcontext.acceptDrop (dropAction); (intcontext.acceptDrop (dropAction); dropAction)context.acceptDrop (dropAction); context.acceptDrop (dropAction); {context.acceptDrop (... | 37,205 |
public DataFlavor[] getCurrentDataFlavors () { // FIXME: implement this return null; } | public DataFlavor[] getCurrentDataFlavors () { // FIXME: implement this return context.getCurrentDataFlavors (); } | 37,206 |
public List getCurrentDataFlavorsAsList () { // FIXME: implement this return null; } | public List getCurrentDataFlavorsAsList () { // FIXME: implement this return context.getCurrentDataFlavorsAsList (); } | 37,207 |
public int getDropAction () { // FIXME: implement this return 0; } | public int getDropAction () { // FIXME: implement this return dropAction; } | 37,208 |
public int getSourceActions () { // FIXME: implement this return 0; } | public int getSourceActions () { // FIXME: implement this return actions; } | 37,209 |
public Transferable getTransferable () { // FIXME: implement this return null; } | public Transferable getTransferable () { // FIXME: implement this return context.getTransferable (); } | 37,210 |
public boolean isDataFlavorSupported (DataFlavor flavor) { // FIXME: implement this return false; } | public boolean isDataFlavorSupported (DataFlavor flavor) { // FIXME: implement this return context.isDataFlavorSupported (flavor); } | 37,211 |
public boolean isLocalTransfer() { return isLocal; } | public boolean isLocalTransfer() { return isLocalTx; } | 37,212 |
public void rejectDrop () { // FIXME: implement this } | context.rejectDrop (); context.rejectDrop (); publiccontext.rejectDrop (); voidcontext.rejectDrop (); rejectDropcontext.rejectDrop (); ()context.rejectDrop (); context.rejectDrop (); {context.rejectDrop (); context.rejectDrop (); context.rejectDrop (); context.rejectDrop (); //context.rejectDrop (); FIXME:context.rejec... | 37,213 |
public final String getCAName() { if (caName != null) return caName.toRFC2253(); return null; } | public final String getCAName() { if (caName != null) return caName.toString(); return null; } | 37,217 |
public String toString() { if (trustedCert == null) return "[ Trusted CA Public Key=" + caKey + ", Trusted CA Issuer Name=" + caName.toRFC2253() + " ]"; return "[ Trusted CA Certificate=" + trustedCert + " ]"; } | public String toString() { if (trustedCert == null) return "[ Trusted CA Public Key=" + caKey + ", Trusted CA Issuer Name=" + caName.toString() + " ]"; return "[ Trusted CA Certificate=" + trustedCert + " ]"; } | 37,218 |
private void distributeSpill(TableColumn[] cols, int spill) { int average = spill / cols.length; for (int i = 0; i < cols.length; i++) { if (cols[i] != null) cols[i].setWidth(cols[i].getWidth() + average); } } | private void distributeSpill(TableColumn[] cols, int spill) { int average = spill / cols.length; for (int i = 0; i < cols.length; i++) { if (cols[i] != null) cols[i].setWidth(cols[i].getPreferredWidth() + average); } } | 37,222 |
public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ... | public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) { TableColumn col =... | 37,223 |
public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ... | public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ... | 37,224 |
public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ... | public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ... | 37,225 |
public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ... | public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ... | 37,226 |
public TableCellEditor getCellEditor(int row, int column) { TableCellEditor editor = columnModel.getColumn(column).getCellEditor(); if (editor == null) editor = getDefaultEditor(dataModel.getColumnClass(column)); return editor; } | public TableCellEditor getCellEditor(int row, int column) { TableCellEditor editor = columnModel.getColumn(column).getCellEditor(); if (editor == null) { int mcolumn = convertColumnIndexToModel(column); editor = getDefaultEditor(dataModel.getColumnClass(mcolumn)); } return editor; } | 37,228 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | 37,229 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | 37,230 |
public TableCellRenderer getCellRenderer(int row, int column) { TableCellRenderer renderer = columnModel.getColumn(column).getCellRenderer(); if (renderer == null) renderer = getDefaultRenderer(getColumnClass(column)); return renderer; } | public TableCellRenderer getCellRenderer(int row, int column) { TableCellRenderer renderer = columnModel.getColumn(column).getCellRenderer(); if (renderer == null) renderer = getDefaultRenderer(getColumnClass(column)); return renderer; } | 37,231 |
public TableCellRenderer getCellRenderer(int row, int column) { TableCellRenderer renderer = columnModel.getColumn(column).getCellRenderer(); if (renderer == null) renderer = getDefaultRenderer(getColumnClass(column)); return renderer; } | public TableCellRenderer getCellRenderer(int row, int column) { TableCellRenderer renderer = columnModel.getColumn(column).getCellRenderer(); if (renderer == null) { int mcolumn = convertColumnIndexToModel(column); renderer = getDefaultRenderer(dataModel.getColumnClass(mcolumn)); } return rende... | 37,232 |
public Class getColumnClass(int column) { return getModel().getColumnClass(column); } | public Class getColumnClass(int column) { return getModel().getColumnClass(convertColumnIndexToModel(column)); } | 37,233 |
private void moveToCellBeingEdited(Component component) { Rectangle r = getCellRect(editingRow, editingColumn, true); // Place the text field so that it would not touch the table // border. int m = getRowMargin(); r.translate(m,m); r.width-=m; component.setBounds(r); } | private void moveToCellBeingEdited(Component component) { Rectangle r = getCellRect(editingRow, editingColumn, true); // Place the text field so that it would not touch the table // border. int m = getRowMargin(); r.translate(m,m); r.width-=m; component.setBounds(r); } | 37,234 |
public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight() + getRowMargin(); int y = point.y; int r = y / height; if (r < 0 || r > nrows) return -1; else return r; } else return -1; } | public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight() + getRowMargin(); int y = point.y; int r = y / height; if (r < 0 || r >= nrows) return -1; else return r; } else return -1; ... | 37,235 |
public void setColumnModel(TableColumnModel c) { if (c == null) throw new IllegalArgumentException(); TableColumnModel tmp = columnModel; if (tmp != null) tmp.removeColumnModelListener(this); if (c != null) c.addColumnModelListener(this); columnModel = c; if (dataModel != null && col... | public void setColumnModel(TableColumnModel c) { if (c == null) throw new IllegalArgumentException(); TableColumnModel tmp = columnModel; if (tmp != null) tmp.removeColumnModelListener(this); if (c != null) c.addColumnModelListener(this); columnModel = c; if (dataModel != null && col... | 37,236 |
public void setEditingRow(int column) { editingRow = column; } | public void setEditingRow(int row) { editingRow = column; } | 37,237 |
public void setEditingRow(int column) { editingRow = column; } | public void setEditingRow(int column) { editingRow = row; } | 37,238 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.