rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
throws NotImplementedException | public boolean isVisible() { throw new Error("not implemented"); } | |
throws NotImplementedException | public void removeFocusListener(FocusListener l) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void removePropertyChangeListener(PropertyChangeListener l) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void requestFocus() { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setAccessibleDescription(String s) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setAccessibleName(String s) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setBackground(Color c) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setBounds(Rectangle r) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setCursor(Cursor c) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setEnabled(boolean b) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setFont(Font f) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setForeground(Color c) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setLocation(Point p) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setSize(Dimension d) { throw new Error("not implemented"); } | |
throws NotImplementedException | public void setVisible(boolean b) { throw new Error("not implemented"); } | |
epsilon = ypoints[0] * 1E-9; | epsilon = ypoints[0] * 1E-7; if(epsilon == 0) epsilon = 1E-7; | private int evaluateCrossings(double x, double y, boolean neg, boolean useYaxis, double distance) { float cx = 0.0f; float cy = 0.0f; float firstx = 0.0f; float firsty = 0.0f; int negative = (neg) ? -1 : 1; double x0; double x1; double x2; double x3; doubl... |
if (!isPrepared()) { throw new IllegalStateException("Not initialized yet"); } | public final int[] getReferenceOffsets() { return referenceOffsets; } | |
int sc_size = (superCls != null) ? superCls.objectSize : 0; | int sc_size = (superCls != null) ? superCls.getObjectSize() : 0; | protected void prepareForInstantiation() { // Step 3: Calculate the object size final VmNormalClass superCls = getSuperClass(); int sc_size = (superCls != null) ? superCls.objectSize : 0; objectSize += sc_size; // Step 4a: Fix the offset for all declared non-static fields final int cnt = getNoDeclaredFields(); ... |
int refOffsetsSize = (superCls != null) ? superCls.referenceOffsets.length : 0; int startRefIdx = refOffsetsSize; | final int[] superRefOffsets = (superCls != null) ? superCls.getReferenceOffsets() : null; int refOffsetsSize = (superCls != null) ? superRefOffsets.length : 0; int startRefIdx = refOffsetsSize; | protected void prepareForInstantiation() { // Step 3: Calculate the object size final VmNormalClass superCls = getSuperClass(); int sc_size = (superCls != null) ? superCls.objectSize : 0; objectSize += sc_size; // Step 4a: Fix the offset for all declared non-static fields final int cnt = getNoDeclaredFields(); ... |
System.arraycopy(superCls.referenceOffsets, 0, referenceOffsets, 0, startRefIdx); | System.arraycopy(superRefOffsets, 0, referenceOffsets, 0, startRefIdx); | protected void prepareForInstantiation() { // Step 3: Calculate the object size final VmNormalClass superCls = getSuperClass(); int sc_size = (superCls != null) ? superCls.objectSize : 0; objectSize += sc_size; // Step 4a: Fix the offset for all declared non-static fields final int cnt = getNoDeclaredFields(); ... |
public final String getDisplayCountry() | public String getDisplayCountry() | public final String getDisplayCountry() { return getDisplayCountry(defaultLocale); } |
public final String getDisplayLanguage() | public String getDisplayLanguage() | public final String getDisplayLanguage() { return getDisplayLanguage(defaultLocale); } |
public final String getDisplayName() | public String getDisplayName() | public final String getDisplayName() { return getDisplayName(defaultLocale); } |
public final String getDisplayVariant() | public String getDisplayVariant() | public final String getDisplayVariant() { return getDisplayVariant(defaultLocale); } |
public synchronized int hashCode() | public int hashCode() | public synchronized int hashCode() { // This method is synchronized because writeObject() might reset // the hashcode. return hashcode; } |
private void readObject(ObjectInputStream input) | private void readObject(ObjectInputStream s) | private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { input.defaultReadObject(); hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); } |
input.defaultReadObject(); | language = ((String) s.readObject()).intern(); country = ((String) s.readObject()).intern(); variant = ((String) s.readObject()).intern(); | private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { input.defaultReadObject(); hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); } |
public final String toString() | public String toString() | public final String toString() { if (language.length() == 0 && country.length() == 0) return ""; else if (country.length() == 0 && variant.length() == 0) return language; StringBuffer result = new StringBuffer(language); result.append('_').append(country); if ... |
private synchronized void writeObject(ObjectOutputStream output) | private void writeObject(ObjectOutputStream s) | private synchronized void writeObject(ObjectOutputStream output) throws IOException { // Synchronized so that hashCode() doesn't get wrong value. int tmpHashcode = hashcode; hashcode = -1; output.defaultWriteObject(); hashcode = tmpHashcode; } |
int tmpHashcode = hashcode; hashcode = -1; output.defaultWriteObject(); hashcode = tmpHashcode; | s.writeObject(language); s.writeObject(country); s.writeObject(variant); s.writeInt(-1); | private synchronized void writeObject(ObjectOutputStream output) throws IOException { // Synchronized so that hashCode() doesn't get wrong value. int tmpHashcode = hashcode; hashcode = -1; output.defaultWriteObject(); hashcode = tmpHashcode; } |
throw new NullPointerException("This BranchElement has no children."); return children[children.length - 1].getEndOffset(); | end = getLength(); else end = children[children.length - 1].getEndOffset(); return end; | public int getEndOffset() { if (getElementCount() == 0) throw new NullPointerException("This BranchElement has no children."); return children[children.length - 1].getEndOffset(); } |
throw new NullPointerException("This BranchElement has no children."); return children[0].getStartOffset(); | start = 0; else start = children[0].getStartOffset(); return start; | public int getStartOffset() { if (getElementCount() == 0) throw new NullPointerException("This BranchElement has no children."); return children[0].getStartOffset(); } |
if (currentWriter == Thread.currentThread()) return; | public void readUnlock() { // Note we could have a problem here if readUnlock was called without a // prior call to readLock but the specs simply warn users to ensure that // balance by using a finally block: // readLock() // try // { // doSomethingHere // } // finally // { // ... | |
for (int y = src.getMinY(); y < src.getHeight() - src.getMinY(); y++) for (int x = src.getMinX(); x < src.getWidth() - src.getMinX(); x++) | for (int y = src.getMinY(); y < src.getHeight() + src.getMinY(); y++) for (int x = src.getMinX(); x < src.getWidth() + src.getMinX(); x++) | private void copyraster(Raster src, ColorSpace scs, WritableRaster dst, ColorSpace dcs) { float[] sbuf = new float[src.getNumBands()]; if (hints.get(RenderingHints.KEY_COLOR_RENDERING) == RenderingHints.VALUE_COLOR_RENDER_QUALITY) { // use cie for accuracy for (int y = src.g... |
getContentPane().add(new JButton("JButton north"), BorderLayout.NORTH); | getContentPane().add(north = new JButton("JButton north"), BorderLayout.NORTH); | public SwingTest(String title) { super(title); getRootPane().setDoubleBuffered(false); setLocation(100, 100); setSize(400, 400); getContentPane().add(new JButton("JButton north"), BorderLayout.NORTH); getContentPane().add(new JTextArea("JTextArea test"), BorderLayout.CENTER... |
getContentPane().add(new JButton("JButton south"), BorderLayout.SOUTH); JMenuBar mb = new JMenuBar(); JMenu menu = new JMenu("JMenu test"); JMenuItem mi = new JMenuItem("JMenuItem test"); mb.add(menu); menu.add(mi); setJMenuBar(mb); | getContentPane().add(south = new JButton("JButton south"), BorderLayout.SOUTH); | public SwingTest(String title) { super(title); getRootPane().setDoubleBuffered(false); setLocation(100, 100); setSize(400, 400); getContentPane().add(new JButton("JButton north"), BorderLayout.NORTH); getContentPane().add(new JTextArea("JTextArea test"), BorderLayout.CENTER... |
frame.dumpInfo(); Thread.sleep(10000); frame.dumpInfo(); | public static void main(String[] args) { try { SwingTest frame = new SwingTest("JFrame test"); frame.validate(); frame.show(); } catch (Exception ex) { ex.printStackTrace(); } } | |
Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); | static final Address allocateBlock(Extent blockSize) { if (!initialized) { initialize(); } if (false) { Unsafe.debug("allocateBlock"); Unsafe.debug(lockPtr.toInt()); } enter(); try { // Calculate the number of blocks needed final Word reqBlockCount = blockAlign(blockSize.toWord(), true).rshl(BLOCK_SIZE... | |
int pixelStride = getNumComponents(); | int pixelStride, scanlineStride; int[] bandOffsets; pixelStride = getNumComponents(); scanlineStride = pixelStride * w; bandOffsets = new int[pixelStride]; for (int i = 0; i < pixelStride; i++) bandOffsets[i] = i; switch (transferType) { case DataBuffer.TYPE_BYTE: case DataBuffer.TYPE_USHORT: return new PixelInter... | public SampleModel createCompatibleSampleModel(int w, int h) { int pixelStride = getNumComponents(); /* TODO: Maybe we don't need to create a new offset array each time, but rather use the same array every time. */ int[] bandOffsets = new int[pixelStride]; for (int i=0; i<pixelStride; i++) band... |
int[] bandOffsets = new int[pixelStride]; for (int i=0; i<pixelStride; i++) bandOffsets[i] = i; | default: | public SampleModel createCompatibleSampleModel(int w, int h) { int pixelStride = getNumComponents(); /* TODO: Maybe we don't need to create a new offset array each time, but rather use the same array every time. */ int[] bandOffsets = new int[pixelStride]; for (int i=0; i<pixelStride; i++) band... |
pixelStride, pixelStride*w, | pixelStride, scanlineStride, | public SampleModel createCompatibleSampleModel(int w, int h) { int pixelStride = getNumComponents(); /* TODO: Maybe we don't need to create a new offset array each time, but rather use the same array every time. */ int[] bandOffsets = new int[pixelStride]; for (int i=0; i<pixelStride; i++) band... |
} | public SampleModel createCompatibleSampleModel(int w, int h) { int pixelStride = getNumComponents(); /* TODO: Maybe we don't need to create a new offset array each time, but rather use the same array every time. */ int[] bandOffsets = new int[pixelStride]; for (int i=0; i<pixelStride; i++) band... | |
throws NotImplementedException | public boolean hasNext () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public Object next () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public boolean avoidingGui () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected Iterator bcsChildren () { throw new Error ("Not implemented"); } | |
throws ClassNotFoundException, IOException | throws ClassNotFoundException, IOException, NotImplementedException | protected void bcsPreDeserializationHook (ObjectInputStream ois) throws ClassNotFoundException, IOException { throw new Error ("Not implemented"); } |
throws IOException | throws IOException, NotImplementedException | protected void bcsPreSerializationHook (ObjectOutputStream oos) throws IOException { throw new Error ("Not implemented"); } |
throws NotImplementedException | protected void childDeserializedHook (Object child, BeanContextSupport.BCSChild bcsc) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected void childJustAddedHook (Object child, BeanContextSupport.BCSChild bcsc) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected void childJustRemovedHook (Object child, BeanContextSupport.BCSChild bcsc) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected static final boolean classEquals (Class first, Class second) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public boolean contains (Object o) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public boolean containsAll (Collection c) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public boolean containsKey (Object o) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected final Object[] copyChildren () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected BeanContextSupport.BCSChild createBCSChild (Object targetChild, Object peer) { throw new Error ("Not implemented"); } | |
throws ClassNotFoundException, IOException | throws ClassNotFoundException, IOException, NotImplementedException | protected final void deserialize (ObjectInputStream ois, Collection coll) throws ClassNotFoundException, IOException { throw new Error ("Not implemented"); } |
throws NotImplementedException | public void dontUseGui () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected final void fireChildrenAdded (BeanContextMembershipEvent bcme) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected final void fireChildrenRemoved (BeanContextMembershipEvent bcme) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public BeanContext getBeanContextPeer () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected static final BeanContextChild getChildBeanContextChild (Object child) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected static final BeanContextMembershipListener getChildBeanContextMembershipListener (Object child) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected static final PropertyChangeListener getChildPropertyChangeListener (Object child) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected static final Serializable getChildSerializable (Object child) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected static final VetoableChangeListener getChildVetoableChangeListener (Object child) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected static final Visibility getChildVisibility (Object child) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public URL getResource (String name, BeanContextChild bcc) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public InputStream getResourceAsStream (String name, BeanContextChild bcc) { throw new Error ("Not implemented"); } | |
throws IOException, ClassNotFoundException | throws IOException, ClassNotFoundException, NotImplementedException | public Object instantiateChild (String beanName) throws IOException, ClassNotFoundException { throw new Error ("Not implemented"); } |
throws NotImplementedException | public boolean isDesignTime () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public boolean isEmpty () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public boolean isSerializing () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public boolean needsGui () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public void okToUseGui () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public void propertyChange (PropertyChangeEvent pce) { throw new Error ("Not implemented"); } | |
throws IOException, ClassNotFoundException | throws IOException, ClassNotFoundException, NotImplementedException | public final void readChildren (ObjectInputStream ois) throws IOException, ClassNotFoundException { throw new Error ("Not implemented"); } |
throws ClassNotFoundException, IOException | throws ClassNotFoundException, IOException, NotImplementedException | private void readObject (ObjectInputStream s) throws ClassNotFoundException, IOException { throw new Error ("Not implemented"); } |
throws NotImplementedException | public void removeBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); } | |
throws IOException | throws IOException, NotImplementedException | protected final void serialize (ObjectOutputStream oos, Collection coll) throws IOException { throw new Error ("Not implemented"); } |
throws NotImplementedException | public void setDesignTime (boolean dtime) { throw new Error ("Not implemented"); } | |
throws PropertyVetoException | throws PropertyVetoException, NotImplementedException | public void setLocale (Locale newLocale) throws PropertyVetoException { throw new Error ("Not implemented"); } |
throws NotImplementedException | public int size () { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected boolean validatePendingAdd (Object targetChild) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | protected boolean validatePendingRemove (Object targetChild) { throw new Error ("Not implemented"); } | |
throws PropertyVetoException | throws PropertyVetoException, NotImplementedException | public void vetoableChange (PropertyChangeEvent pce) throws PropertyVetoException { throw new Error ("Not implemented"); } |
throws IOException | throws IOException, NotImplementedException | public final void writeChildren (ObjectOutputStream oos) throws IOException { throw new Error ("Not implemented"); } |
throws ClassNotFoundException, IOException | throws ClassNotFoundException, IOException, NotImplementedException | private void writeObject (ObjectOutputStream s) throws ClassNotFoundException, IOException { throw new Error ("Not implemented"); } |
attributes = attr; | attributes = attr.copyAttributes(); | public Option(AttributeSet attr) { attributes = attr; label = null; selected = false; // FIXME: Probably initialize something using the attributes. } |
selected = false; | selected = attr.getAttribute(HTML.Attribute.SELECTED) != null; | public Option(AttributeSet attr) { attributes = attr; label = null; selected = false; // FIXME: Probably initialize something using the attributes. } |
return label; | String value = (String) attributes.getAttribute(HTML.Attribute.VALUE); if (value == null) value = label; return value; | public String getValue() { // FIXME: Return some attribute here if specified. return label; } |
return super.calculateMinorAxisRequirements(axis, r); | r = super.calculateMinorAxisRequirements(axis, r); if (! setCSSSpan(r, axis)) { int margin = axis == X_AXIS ? getLeftInset() + getRightInset() : getTopInset() + getBottomInset(); r.minimum -= margin; r.preferred -= margin; r.maximum -= margin; } return r; | protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r) { // FIXME: Implement the above specified behaviour. return super.calculateMinorAxisRequirements(axis, r); } |
AttributeSet atts = getAttributes(); Object o = atts.getAttribute(CSS.Attribute.TEXT_ALIGN); | attributes = getAttributes(); if (attributes != null) { super.setPropertiesFromAttributes(); Object o = attributes.getAttribute(CSS.Attribute.TEXT_ALIGN); | protected void setPropertiesFromAttributes() { super.setPropertiesFromAttributes(); // Fetch CSS attributes. AttributeSet atts = getAttributes(); Object o = atts.getAttribute(CSS.Attribute.TEXT_ALIGN); if (o != null) { String align = o.toString(); if (align.equals("left")) ... |
painter = getStyleSheet().getBoxPainter(atts); | painter = getStyleSheet().getBoxPainter(attributes); | protected void setPropertiesFromAttributes() { super.setPropertiesFromAttributes(); // Fetch CSS attributes. AttributeSet atts = getAttributes(); Object o = atts.getAttribute(CSS.Attribute.TEXT_ALIGN); if (o != null) { String align = o.toString(); if (align.equals("left")) ... |
StyleSheet ss = getStyleSheet(); float emBase = ss.getEMBase(attributes); float exBase = ss.getEXBase(attributes); cssWidth = (Length) attributes.getAttribute(CSS.Attribute.WIDTH); if (cssWidth != null) cssWidth.setFontBases(emBase, exBase); cssHeight = (Length) attributes.getAttribute(CSS.Attribute.WIDTH); if (cssHeig... | protected void setPropertiesFromAttributes() { super.setPropertiesFromAttributes(); // Fetch CSS attributes. AttributeSet atts = getAttributes(); Object o = atts.getAttribute(CSS.Attribute.TEXT_ALIGN); if (o != null) { String align = o.toString(); if (align.equals("left")) ... | |
public static KeyStroke getKeyStroke(char keyChar) { KeyStroke key; key = new KeyStroke(); key.keyChar = keyChar; return key; } | public static KeyStroke getKeyStroke(char keyChar) { return (KeyStroke) getAWTKeyStroke(keyChar); } | public static KeyStroke getKeyStroke(char keyChar) { // Variables KeyStroke key; key = new KeyStroke(); key.keyChar = keyChar; return key; } // getKeyStroke() |
public static KeyStroke getKeyStrokeForEvent(KeyEvent event) { int eventID; int eventMod; eventID = event.getID(); eventMod = event.getModifiersEx(); if (eventID == KeyEvent.KEY_TYPED) { return getKeyStroke(event.getKeyChar(), eventMod); } else { return getKeyStroke(event.getKeyCode(), eventMod); } } | public static KeyStroke getKeyStrokeForEvent(KeyEvent event) { return (KeyStroke) getAWTKeyStrokeForEvent(event); } | public static KeyStroke getKeyStrokeForEvent(KeyEvent event) { // Variables int eventID; int eventMod; // Get Event ID eventID = event.getID(); eventMod = event.getModifiersEx(); // Check for KEY_TYPED event if (eventID == KeyEvent.KEY_TYPED) { return getKeyStroke(event.getKeyChar(), eventMod); // KEY_PRESS... |
log.exiting("SignatureAdapter", "engineVerify", new Boolean(result)); | public boolean engineVerify(byte[] sigBytes) throws SignatureException { Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (IllegalStateException x) { throw new SignatureException(String.valueOf(x)); ... | |
public void read(cdrInput profile) | public void read(AbstractCdrInput profile) | public void read(cdrInput profile) { cdrBufInput encapsulation = profile.read_encapsulation(); narrow.read(encapsulation); wide.read(encapsulation); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.