rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
final void pop(Item item) { if (tos <= 0) { throw new Error("Stack is empty"); } if (stack[ --tos] != item) { int i = tos - 1; while ((i >= 0) && (stack[ i] != item)) i--; throw new StackException("OperandStack[" + tos + "] is not the expected element (found at " + i + ", " + this + ")"); } stack[ tos] = null; } | final void pop() { if (tos <= 0) { throw new Error("Stack is empty"); } tos--; } | final void pop(Item item) { if (tos <= 0) { throw new Error("Stack is empty"); } if (stack[ --tos] != item) { int i = tos - 1; while ((i >= 0) && (stack[ i] != item)) i--; throw new StackException("OperandStack[" + tos + "] is not the ... |
final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[ i].getType()); buf.append(','); buf.append(stack[ i].getKind()); buf.append(')'); } return buf.toString(); } | final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[i].getType()); buf.append(','); buf.append(stack[i].getKind()); buf.append(')'); } buf.append("TOS"); return buf.toString(); } | public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[ i].getType()); buf.append(','); buf.append(stack[... |
public BufferedImage filter(BufferedImage src, BufferedImage dst) | public final BufferedImage filter(BufferedImage src, BufferedImage dst) | public BufferedImage filter(BufferedImage src, BufferedImage dst) { if (src == dst) throw new IllegalArgumentException(); if (dst == null) dst = createCompatibleDestImage(src, src.getColorModel()); // Make sure source image is premultiplied BufferedImage src1 = src; if (!src.isPremul... |
public Kernel getKernel() | public final Kernel getKernel() | public Kernel getKernel() { return (Kernel) kernel.clone(); } |
else if (d instanceof Simple_delegate) | else if (d instanceof SimpleDelegate) | public void connect(Remote a_target, Remote a_source) throws RemoteException { ORB orb = null; POA poa = null; boolean ok = false; try { if (a_source instanceof Servant) { Servant s = (Servant) a_source; orb = s._orb(); poa = s._poa(); o... |
byte[] ior_key = ((Simple_delegate) d).getIor().key; activeObjectMap.Obj ref = xorb.rootPOA.findIorKey(ior_key); | byte[] ior_key = ((SimpleDelegate) d).getIor().key; AOM.Obj ref = xorb.rootPOA.findIorKey(ior_key); | public void connect(Remote a_target, Remote a_source) throws RemoteException { ORB orb = null; POA poa = null; boolean ok = false; try { if (a_source instanceof Servant) { Servant s = (Servant) a_source; orb = s._orb(); poa = s._poa(); o... |
Class klass; | private Object loadNextServiceProvider() { String line; Class klass; if (reader == null) advanceReader(); for (;;) { /* If we have reached the last provider list, we cannot * retrieve any further lines. */ if (reader == null) ... | |
maybeSetMinimumSize(viewport, viewportSize); | public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ... | |
{ | public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator... | |
} | public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator... | |
{ result = makeInstance ("gnu.javax.crypto.key.dh.GnuDHKeyPairGenerator"); } | result = makeInstance("gnu.javax.crypto.key.dh.GnuDHKeyPairGenerator"); | public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator... |
{ result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairGenerator"); } | result = makeInstance("gnu.javax.crypto.key.srp6.SRPKeyPairGenerator"); | public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator... |
invalidate(); repaint(); | public void updateUI() { setUI((SplitPaneUI) UIManager.getUI(this)); invalidate(); repaint(); } | |
; | { full_screen.setBounds(fullScreenOldBounds); } full_screen = null; if (w != null) { fullScreenOldBounds = w.getBounds(); | public synchronized void setFullScreenWindow(Window w) { if (full_screen != null) ; // XXX Restore the previous window to normal mode. full_screen = w; // XXX If w != null, make it full-screen. throw new Error("not implemented"); } |
throw new Error("not implemented"); | DisplayMode dMode = getDisplayMode(); full_screen.setBounds(0, 0, dMode.getWidth(), dMode.getHeight()); full_screen.requestFocus(); full_screen.setLocationRelativeTo(null); } | public synchronized void setFullScreenWindow(Window w) { if (full_screen != null) ; // XXX Restore the previous window to normal mode. full_screen = w; // XXX If w != null, make it full-screen. throw new Error("not implemented"); } |
*/ try { final Constructor c = clazz.getDeclaredConstructor(CONS_TYPES); AccessController.doPrivileged(new SetAccessibleAction(c)); return (TTFTable) c.newInstance(new Object[] { font, in }); } catch (Exception e1) { e1.printStackTrace(); return null; } | final TTFTable create(final TTFFontData font, final TTFInput in) { return (TTFTable) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final Constructor c = clazz .getDeclaredConstructor(CONS_TYPES); ... | |
return null; | return new AccessibleRelationSet(); | public AccessibleRelationSet getAccessibleRelationSet() { return null; } |
ReadOnly(Object owner, RawData address, | ReadOnly(Object owner, Pointer address, | ReadOnly(Object owner, RawData address, int capacity, int limit, int position) { super(owner, address, capacity, limit, position); } |
if (a != null) { Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); painter.paint(g, r.x, r.y, r.width, r.height, this); } | public void paint(Graphics g, Shape a) { // FIXME: Implement the above specified behaviour. super.paint(g, a); } | |
super.setPropertiesFromAttributes(); AttributeSet atts = getAttributes(); Object o = atts.getAttribute(CSS.Attribute.TEXT_ALIGN); if (o != null) { String align = o.toString(); if (align.equals("left")) setJustification(StyleConstants.ALIGN_LEFT); else if (align.equals("right")) setJustification(StyleConstants.ALIGN_R... | protected void setPropertiesFromAttributes() { // FIXME: Implement this. } | |
if (value == null) return ""; | public String valueToString(Object value) throws ParseException { if (format != null) return format.format(value); else return super.valueToString(value); } | |
{ | public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;... | |
} | public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;... | |
if (Prime2.isProbablePrime(q)) { | if (q.isProbablePrime(80)) | public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;... |
if (Prime2.isProbablePrime(p)) { | if (p.isProbablePrime(80)) | public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;... |
if (!g.equals(BigInteger.ONE)) { | if (! g.equals(BigInteger.ONE)) | public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;... |
super(TYPE_INT, size); | super(TYPE_INT, size, 1, 0); bankData = new int[1][]; | public DataBufferInt(int size) { super(TYPE_INT, size); data = new int[size]; } |
bankData[0] = data; | public DataBufferInt(int size) { super(TYPE_INT, size); data = new int[size]; } | |
setTitle("GCJ Applet Viewer: " + tag.code); | setTitle("GNU Classpath Applet Viewer: " + tag.code); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
System.out.println("parsed applet tags:"); | System.out.println (Messages.getString("StandaloneAppletViewer.ParsedAppletTags")); | void printTags() { if (verbose) { System.out.println("parsed applet tags:"); for (int i = 0; i < appletTags.size(); i++) { AppletTag tag = (AppletTag) appletTags.get(i); System.out.println(" tag " + i + ":"); System.out.println(tag); } } ... |
System.out.println(" tag " + i + ":"); | System.out.println (" " + Messages.getString("StandaloneAppletViewer.Tag") + " " + i + ":"); | void printTags() { if (verbose) { System.out.println("parsed applet tags:"); for (int i = 0; i < appletTags.size(); i++) { AppletTag tag = (AppletTag) appletTags.get(i); System.out.println(" tag " + i + ":"); System.out.println(tag); } } ... |
public BufferedImage filter (BufferedImage src, BufferedImage dst) | public final BufferedImage filter (BufferedImage src, BufferedImage dst) | public BufferedImage filter (BufferedImage src, BufferedImage dst) { if (dst == src) throw new IllegalArgumentException ("src image cannot be the same as the dst image"); // If the destination image is null, then BufferedImage is // created with ColorModel of the source image if (dst ... |
public Rectangle2D getBounds2D (BufferedImage src) | public final Rectangle2D getBounds2D (BufferedImage src) | public Rectangle2D getBounds2D (BufferedImage src) { return getBounds2D (src.getRaster()); } |
public int getInterpolationType () | public final int getInterpolationType () | public int getInterpolationType () { if(hints.containsValue (RenderingHints.VALUE_INTERPOLATION_BILINEAR)) return TYPE_BILINEAR; else return TYPE_NEAREST_NEIGHBOR; } |
public AffineTransform getTransform () | public final AffineTransform getTransform () | public AffineTransform getTransform () { return transform; } |
rootLogger.resetLogger(); | public synchronized void reset() throws SecurityException { /* Throw a SecurityException if the caller does not have the * permission to control the logging infrastructure. */ checkAccess(); properties = new Properties(); Iterator iter = loggers.values().iterator(); while (iter.hasNext()) {... | |
throws NotImplementedException | public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap) throws NotImplementedException { // FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int) throw new Error("not implemented"); } | |
throw new Error("not implemented"); | return new ChannelWriter(ch, enc, minBufferCap); | public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap) throws NotImplementedException { // FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int) throw new Error("not implemented"); } |
protected AccessibleContainerHandler(AccessibleJComponent component) {} | protected AccessibleContainerHandler() {} | protected AccessibleContainerHandler(AccessibleJComponent component) {} |
protected AccessibleFocusHandler(AccessibleJComponent component){} | protected AccessibleFocusHandler(){} | protected AccessibleFocusHandler(AccessibleJComponent component){} |
return (short) numValue[readChar(ch) >> 7]; | return (short) numValue[0][readCodePoint((int)ch) >> 7]; | public static int getNumericValue(char ch) { // Treat numValue as signed. return (short) numValue[readChar(ch) >> 7]; } |
return getType(ch) != UNASSIGNED; | return isDefined((int)ch); | public static boolean isDefined(char ch) { return getType(ch) != UNASSIGNED; } |
return (ch <= '\u009F' && (ch < '\t' || ch >= '\u007F' || (ch <= '\u001B' && ch >= '\u000E'))) || getType(ch) == FORMAT; | return isIdentifierIgnorable((int)ch); | public static boolean isIdentifierIgnorable(char ch) { return (ch <= '\u009F' && (ch < '\t' || ch >= '\u007F' || (ch <= '\u001B' && ch >= '\u000E'))) || getType(ch) == FORMAT; } |
return (readChar(ch) & MIRROR_MASK) != 0; | return (readCodePoint((int)ch) & MIRROR_MASK) != 0; | public static boolean isMirrored(char ch) { return (readChar(ch) & MIRROR_MASK) != 0; } |
return ((1 << getType(ch)) & ((1 << SPACE_SEPARATOR) | (1 << LINE_SEPARATOR) | (1 << PARAGRAPH_SEPARATOR))) != 0; | return isSpaceChar((int)ch); | public static boolean isSpaceChar(char ch) { return ((1 << getType(ch)) & ((1 << SPACE_SEPARATOR) | (1 << LINE_SEPARATOR) | (1 << PARAGRAPH_SEPARATOR))) != 0; } |
return getType(ch) == TITLECASE_LETTER; | return isTitleCase((int)ch); | public static boolean isTitleCase(char ch) { return getType(ch) == TITLECASE_LETTER; } |
if (Configuration.DEBUG) | Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.LIST_CMD, true); result.setHeader(Messages.getString("ListCmd.20")); //$NON-NLS-1$ result.setFooter(Messages.getString("ListCmd.19")); //$NON-NLS-1$ OptionGroup options... | |
if (Configuration.DEBUG) | private void list1Alias(String anAlias, PrintWriter writer) throws KeyStoreException, CertificateEncodingException, IOException { log.entering(this.getClass().getName(), "list1Alias", anAlias); //$NON-NLS-1$ writer.println(); writer.println(Messages.getFormattedString("ListCmd.30", anAlias)); //$NON-NL... | |
log.warning("Both -v and -rfc options were found on the command line. " | if (Configuration.DEBUG) log.fine("Both -v and -rfc options were found on the command line. " | void setup() throws Exception { setOutputStreamParam(null); // use stdout setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); all = _alias == null; if (! all) setAliasParam(_alias); if (verbose & rfc) { log.warning("Both -v and -rfc options were found on the command l... |
log.finer("-list handler will use the following options:"); log.finer(" -alias=" + alias); log.finer(" -storetype=" + storeType); log.finer(" -keystore=" + storeURL); log.finer(" -provider=" + provider); log.finer(" -v=" + verbose); log.finer(" -rfc=" + rfc); | if (Configuration.DEBUG) { log.fine("-list handler will use the following options:"); log.fine(" -alias=" + alias); log.fine(" -storetype=" + storeType); log.fine(" -keystore=" + storeURL); log.fine(" -provider=" + provider); log.fine(" -v=" + verbose); log.fine(" -rfc=" + rfc); } | void setup() throws Exception { setOutputStreamParam(null); // use stdout setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); all = _alias == null; if (! all) setAliasParam(_alias); if (verbose & rfc) { log.warning("Both -v and -rfc options were found on the command l... |
log.finest("About to list all aliases in key store..."); | if (Configuration.DEBUG) log.fine("About to list all aliases in key store..."); | void start() throws KeyStoreException, CertificateEncodingException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ PrintWriter writer = new PrintWriter(outStream, true); writer.println(Messages.getFormattedString("ListCmd.21", store.getType())); //$NON-NLS-1$ writer.p... |
if (Configuration.DEBUG) | void start() throws KeyStoreException, CertificateEncodingException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ PrintWriter writer = new PrintWriter(outStream, true); writer.println(Messages.getFormattedString("ListCmd.21", store.getType())); //$NON-NLS-1$ writer.p... | |
PrivateKey secK = new GnuDHPrivateKey(q, p, g, x); PublicKey pubK = new GnuDHPublicKey(q, p, g, y); | PrivateKey secK = new GnuDHPrivateKey(preferredFormat, q, p, g, x); PublicKey pubK = new GnuDHPublicKey(preferredFormat, q, p, g, y); | public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p... |
Integer formatID = (Integer) attributes.get(PREFERRED_ENCODING_FORMAT); preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT : formatID.intValue(); | public void setup(Map 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 Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g... | |
private Encoder (Charset cs) | Encoder (Charset cs) | private Encoder (Charset cs) { // According to // http://www-106.ibm.com/developerworks/unicode/library/utfencodingforms/index.html // On average, English takes slightly over one unit per code point. // Most Latin-script languages take about 1.1 bytes. Greek, Russian, // Arabic and... |
void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) | protected void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) | void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener listeners[] = getListSelectionListeners(); for (int i = 0; i < listeners.length; ++i) { listeners... |
setSelectionModel(new DefaultListSelectionModel()); | setSelectionModel(createSelectionModel()); | void init() { dragEnabled = false; fixedCellHeight = -1; fixedCellWidth = -1; layoutOrientation = VERTICAL; opaque = true; valueIsAdjusting = false; visibleRowCount = 8; cellRenderer = new DefaultListCellRenderer(); listListener = new ListListener(); setModel(new DefaultListModel()); ... |
public void setCellRenderer(ListCellRenderer cr) | public void setCellRenderer(ListCellRenderer renderer) | public void setCellRenderer(ListCellRenderer cr) { ListCellRenderer old = cellRenderer; cellRenderer = cr; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, cr); revalidate(); repaint(); } |
cellRenderer = cr; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, cr); | cellRenderer = renderer; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, renderer); | public void setCellRenderer(ListCellRenderer cr) { ListCellRenderer old = cellRenderer; cellRenderer = cr; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, cr); revalidate(); repaint(); } |
public void setModel(ListModel m) | public void setModel(ListModel model) | public void setModel(ListModel m) { ListModel old = model; if (old != null) old.removeListDataListener(listListener); model = m; if (model != null) model.addListDataListener(listListener); firePropertyChange(MODEL_PROPERTY_CHANGED, old, m); revalidate(); repaint(); } |
ListModel old = model; if (old != null) old.removeListDataListener(listListener); model = m; if (model != null) model.addListDataListener(listListener); firePropertyChange(MODEL_PROPERTY_CHANGED, old, m); | if (this.model == model) return; if (this.model != null) this.model.removeListDataListener(listListener); ListModel old = this.model; this.model = model; if (this.model != null) this.model.addListDataListener(listListener); firePropertyChange(MODEL_PROPERTY_CHANGED, old, model); | public void setModel(ListModel m) { ListModel old = model; if (old != null) old.removeListDataListener(listListener); model = m; if (model != null) model.addListDataListener(listListener); firePropertyChange(MODEL_PROPERTY_CHANGED, old, m); revalidate(); repaint(); } |
public void setSelectionModel(ListSelectionModel l) | public void setSelectionModel(ListSelectionModel model) | public void setSelectionModel(ListSelectionModel l) { ListSelectionModel old = selectionModel; if (old != null) old.removeListSelectionListener(listListener); selectionModel = l; if (selectionModel != null) selectionModel.addListSelectionListener(listListener); firePropertyChange(SELECTION_M... |
if (old != null) old.removeListSelectionListener(listListener); selectionModel = l; | selectionModel = model; | public void setSelectionModel(ListSelectionModel l) { ListSelectionModel old = selectionModel; if (old != null) old.removeListSelectionListener(listListener); selectionModel = l; if (selectionModel != null) selectionModel.addListSelectionListener(listListener); firePropertyChange(SELECTION_M... |
firePropertyChange(SELECTION_MODEL_PROPERTY_CHANGED, old, l); | firePropertyChange(SELECTION_MODEL_PROPERTY_CHANGED, old, model); | public void setSelectionModel(ListSelectionModel l) { ListSelectionModel old = selectionModel; if (old != null) old.removeListSelectionListener(listListener); selectionModel = l; if (selectionModel != null) selectionModel.addListSelectionListener(listListener); firePropertyChange(SELECTION_M... |
InputStream in) | InputStream in, boolean mayHaveBody) | private InputStream createResponseBodyStream(Headers responseHeaders, int majorVersion, int minorVersion, InputStream in) throws IOException { long contentLength = -1; He... |
if ("chunked".equalsIgnoreCase(transferCoding)) | if ("HEAD".equals(method) || !mayHaveBody) { in = new LimitedLengthInputStream(in, 0, true, connection, doClose); } else if ("chunked".equalsIgnoreCase(transferCoding)) | private InputStream createResponseBodyStream(Headers responseHeaders, int majorVersion, int minorVersion, InputStream in) throws IOException { long contentLength = -1; He... |
minorVersion, in); | minorVersion, in, true); | Response readResponse(InputStream in) throws IOException { String line; int len; // Read response status line LineInputStream lis = new LineInputStream(in); line = lis.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.start... |
Rectangle r = getTable().getCellRect(-1, column, true); | Rectangle r = getTable().getCellRect(-1, column, false); | public Rectangle getHeaderRect(int column) { Rectangle r = getTable().getCellRect(-1, column, true); r.height = getHeight(); return r; } |
limit(capacity()); | public ShortBuffer compact () { int copied = 0; while (remaining () > 0) { put (copied, get ()); copied++; } position (copied); return this; } | |
public FTPFSDirectory(FTPFileSystem fileSystem, FTPFile ftpFile) { | FTPFSDirectory(FTPFileSystem fileSystem, FTPFile ftpFile) { | public FTPFSDirectory(FTPFileSystem fileSystem, FTPFile ftpFile) { super(fileSystem, ftpFile); } |
throws NotImplementedException | public int[] getRowsForPaths(TreePath[] paths) { return null; // TODO } | |
throws NotImplementedException | protected boolean isFixedRowHeight() { return false; // TODO } | |
throws NotImplementedException | public GlyphJustificationInfo getJustificationInfo () { throw new Error ("not implemented"); } | |
if (children[i].getStartOffset() >= pos && children[i].getEndOffset() < pos) | if (children[i].getStartOffset() <= pos && children[i].getEndOffset() > pos) | protected int getViewIndexAtPosition(int pos) { int index = -1; for (int i = 0; i < children.length; i++) { if (children[i].getStartOffset() >= pos && children[i].getEndOffset() < pos) { index = i; break; } } return index; } |
ORB orb = Restricted_ORB.Singleton; | ORB orb = OrbRestricted.Singleton; | public static TypeCode type() { ORB orb = Restricted_ORB.Singleton; return orb.create_alias_tc(id(), "Identifier", orb.create_string_tc(0)); } |
tstack.pop(); | public void visit_jsr(int address) { tstack.push(JvmType.RETURN_ADDRESS); addBranch(address, false); condYieldPoint(address); } | |
stylesheet.bindings.push(false); | LinkedList values = new LinkedList(); | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // push the parameter context stylesheet.bindings.push(false); // set the parameters ... |
stylesheet.bindings.set(p.name, value, false); | Object[] pair = new Object[2]; pair[0] = p.name; pair[1] = value; values.add(pair); } stylesheet.bindings.push(Bindings.WITH_PARAM); for (Iterator i = values.iterator(); i.hasNext(); ) { Object[] pair = (Object[]) i.next(); QName name = (QName) pair[0]; Object value = pair[1]; stylesheet.bindings.set(name, value, Bin... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // push the parameter context stylesheet.bindings.push(false); // set the parameters ... |
stylesheet.bindings.pop(false); | stylesheet.bindings.pop(Bindings.WITH_PARAM); | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // push the parameter context stylesheet.bindings.push(false); // set the parameters ... |
throw new Error ("Not implemented"); | revalidate(); repaint(); | public void columnAdded (TableColumnModelEvent event) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | revalidate(); repaint(); | public void columnMarginChanged (ChangeEvent event) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | revalidate(); repaint(); | public void columnMoved (TableColumnModelEvent event) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | revalidate(); repaint(); | public void columnRemoved (TableColumnModelEvent event) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | repaint(); | public void columnSelectionChanged (ListSelectionEvent event) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | repaint(); | public void editingCanceled (ChangeEvent event) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | repaint(); | public void editingStopped (ChangeEvent event) { throw new Error ("Not implemented"); } |
return columnModel.getColumnSelectionAllowed(); | return getColumnModel().getColumnSelectionAllowed(); | public boolean getColumnSelectionAllowed() { return columnModel.getColumnSelectionAllowed(); } |
return null; | if (defaultRenderersByColumnClass.containsKey(columnClass)) return (TableCellRenderer) defaultRenderersByColumnClass.get(columnClass); else { TableCellRenderer r = new DefaultTableCellRenderer(); defaultRenderersByColumnClass.put(columnClass, r); return r; } | public TableCellRenderer getDefaultRenderer(Class columnClass) { // FIXME: return null; } |
throw new Error ("Not implemented"); | return preferredScrollableViewportSize; | public Dimension getPreferredScrollableViewportSize () { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | if (orientation == SwingConstants.VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; | public int getScrollableBlockIncrement (Rectangle visibleRect, int orientation, int direction) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | return false; | public boolean getScrollableTracksViewportHeight () { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | if (autoResizeMode == AUTO_RESIZE_OFF) return false; else return true; | public boolean getScrollableTracksViewportWidth () { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | if (orientation == SwingConstants.VERTICAL) return rowHeight; else { int sum = 0; for (int i = 0; i < getColumnCount(); ++i) sum += columnModel.getColumn(0).getWidth(); return getColumnCount() == 0 ? 10 : sum / getColumnCount(); } | public int getScrollableUnitIncrement (Rectangle visibleRect, int orientation, int direction) { throw new Error ("Not implemented"); } |
public void setAutoResizeMode(int mode) | public void setAutoResizeMode(int a) | public void setAutoResizeMode(int mode) { autoResizeMode = mode; } |
autoResizeMode = mode; | autoResizeMode = a; revalidate(); repaint(); | public void setAutoResizeMode(int mode) { autoResizeMode = mode; } |
public void setColumnSelectionAllowed(boolean flag) | public void setColumnSelectionAllowed(boolean c) | public void setColumnSelectionAllowed(boolean flag) { columnModel.setColumnSelectionAllowed(flag); } |
columnModel.setColumnSelectionAllowed(flag); | getColumnModel().setColumnSelectionAllowed(c); repaint(); | public void setColumnSelectionAllowed(boolean flag) { columnModel.setColumnSelectionAllowed(flag); } |
public void setModel (TableModel model) | public void setModel(TableModel m) | public void setModel (TableModel model) { if (model == null) throw new IllegalArgumentException(); // FIXME: Should we deregister from old model ? dataModel = model; dataModel.addTableModelListener(this); } |
if (model == null) | if (m == null) | public void setModel (TableModel model) { if (model == null) throw new IllegalArgumentException(); // FIXME: Should we deregister from old model ? dataModel = model; dataModel.addTableModelListener(this); } |
dataModel.addTableModelListener(this); if (autoCreateColumnsFromModel) createColumnsFromModel(); } | public void setModel (TableModel model) { if (model == null) throw new IllegalArgumentException(); // FIXME: Should we deregister from old model ? dataModel = model; dataModel.addTableModelListener(this); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.