rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
return null; | return entry.getText(); | public String getFileName() { // FIXME: I'm thinking that this method just provides access to the // text value in the JTextField component...but not sure yet return null; //filename; } |
currentTip.setTipText(((JComponent) currentComponent).getToolTipText(event)); | { if (currentComponent == null) currentComponent = (Component) event.getSource(); String text = ((JComponent) currentComponent).getToolTipText(event); currentTip.setTipText(text); } | public void mouseMoved(MouseEvent event) { currentPoint = event.getPoint(); if (currentTip != null) currentTip.setTipText(((JComponent) currentComponent).getToolTipText(event)); if (enterTimer.isRunning()) enterTimer.restart(); } |
if (! enabled) | if (! enabled || currentComponent == null) | private void showTip() { if (! enabled) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension dims = currentTip.getP... |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getPropertyPrefix() + "disabledText"); | public MetalToggleButtonUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getPropertyPrefix() + "disabledText");... | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getPropertyPrefix() + "disabledText"); | public void installDefaults(AbstractButton b) { // FIXME: for now, this override just changes the visibility of the method // in the super-class, to satisfy japi...but there must be something else. super.installDefaults(b); } | |
} | protected void paintButtonPressed(Graphics g, AbstractButton b) { Color saved = g.getColor(); Rectangle bounds = SwingUtilities.getLocalBounds(b); g.setColor(selectColor); g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height); g.setColor(saved); } | |
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException { return null; } | public Object getTransferData (DataFlavor flavor) throws UnsupportedFlavorException, IOException { return transferable.getTransferData (flavor); } | public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException { // FIXME: implement this return null; } |
public DataFlavor[] getTransferDataFlavors() { return null; } | public DataFlavor[] getTransferDataFlavors () { return transferable.getTransferDataFlavors (); } | public DataFlavor[] getTransferDataFlavors() { // FIXME: implement this return null; } |
public boolean isDataFlavorSupported(DataFlavor flavor) { return false; } | public boolean isDataFlavorSupported (DataFlavor flavor) { return transferable.isDataFlavorSupported (flavor); } | public boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; } |
public void addNotify(java.awt.dnd.peer.DropTargetContextPeer dtcp) { } | public void addNotify (java.awt.dnd.peer.DropTargetContextPeer dtcp) { this.dtcp = dtcp; } | public void addNotify(java.awt.dnd.peer.DropTargetContextPeer dtcp) { // FIXME: implement this } |
protected Transferable createTransferableProxy(Transferable t, boolean local) { return null; } | protected Transferable createTransferableProxy(Transferable t, boolean local) { return new TransferableProxy (t, local); } | protected Transferable createTransferableProxy(Transferable t, boolean local) { // FIXME: implement this return null; } |
public Component getComponent() { return null; } | public Component getComponent () { return dropTarget.getComponent (); } | public Component getComponent() { // FIXME: implement this return null; } |
protected List getCurrentDataFlavorsAsList() { return null; } | protected List getCurrentDataFlavorsAsList () { return Arrays.asList (getCurrentDataFlavors ()); } | protected List getCurrentDataFlavorsAsList() { // FIXME: implement this return null; } |
public DropTarget getDropTarget() { return null; } | public DropTarget getDropTarget () { return dropTarget; } | public DropTarget getDropTarget() { // FIXME: implement this return null; } |
protected boolean isDataFlavorSupported(DataFlavor flavor) { return false; } | protected boolean isDataFlavorSupported (DataFlavor flavor) { return getCurrentDataFlavorsAsList ().contains (flavor); } | protected boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; } |
public void removeNotify() { } | public void removeNotify () { this.dtcp = null; } | public void removeNotify() { // FIXME: implement this } |
if (instance == null) instance = new MetalScrollPaneUI(); return instance; | return new MetalScrollPaneUI(); | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalScrollPaneUI(); return instance; } |
protected EditorDelegate(DefaultCellEditor editor) { } | protected EditorDelegate() { } | protected EditorDelegate(DefaultCellEditor editor) { // TODO } // EditorDelegate() |
protected void formatInternal (double number, FormatBuffer dest, | private void formatInternal (double number, FormatBuffer dest, | protected void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.IN... |
ch = channel; | valid = true; | public FileLockImpl (FileChannelImpl channel, long position, long size, boolean shared) { super (channel, position, size, shared); ch = channel; } |
System.out.println("Req. freq=" + freq); | public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | |
System.out.println("Act. freq=" + freq); | public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | |
System.out.println("bitvalue=" + bitvalue + ", post_div=" + pll_output_freq); | public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | |
System.out.println("vclk_freq=" + vclk_freq + ", fbdiv=" + feedback_div + ", postdiv=" + pll_output_freq + ", bitvalue=" + bitvalue); | public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | |
System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); | if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + NumberUtils.hex(io.getPLL(PPLL_DIV_3))); System.out.println("PPLL_REF_DIV 0x" + Nu... | private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number... |
} else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + NumberUtils.hex(io.getPLL(PPLL_DIV_3))); System.out.println("PPLL_REF_DIV 0x" + NumberUtils.hex(io.getPLL(PPLL_REF_DIV))); System.out.println("HTOTAL_CNTL 0x" + NumberUtils.hex(io.getPLL(HTOTAL_CNTL))); | private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number... | |
tracker.removeImage(image, id - 1); | protected void loadImage(Image image) { try { tracker.addImage(image, id); id++; tracker.waitForID(id - 1); } catch (InterruptedException ex) { // Ignore this for now. } finally { loadStatus = tracker.statusID(id - 1, false); } } | |
{ | public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); } | |
} | public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); } | |
{ | public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBo... | |
} | public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBo... | |
{ | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | |
} | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | |
throws NotImplementedException | public Accessible getAccessibleChild(JComponent c, int i) { // FIXME: Need to implement return null; } | |
throws NotImplementedException | public int getAccessibleChildrenCount(JComponent c) { // FIXME: Need to implement return 0; } | |
throws NotImplementedException | protected void installKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | |
SwingUtilities.replaceUIInputMap(comboBox, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, (InputMap) UIManager.get("ComboBox.ancestorInputMap")); | protected void installKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | |
{ | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | |
} | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | |
{ | protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, ... | |
} | protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, ... | |
throws NotImplementedException | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | |
SwingUtilities.replaceUIInputMap(comboBox, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | |
private static final BigInteger add(int x, int y) | private static BigInteger add(int x, int y) | private static final BigInteger add(int x, int y) { return valueOf((long) x + (long) y); } |
private static final int[] euclidInv(int a, int b, int prevDiv) | private static int[] euclidInv(int a, int b, int prevDiv) | private static final int[] euclidInv(int a, int b, int prevDiv) { if (b == 0) throw new ArithmeticException("not invertible"); if (b == 1) // Success: values are indeed invertible! // Bottom of the recursion reached; start unwinding. return new int[] { -prevDiv, 1 }; int[] xy = euclidInv(b, a % b, a /... |
private static final int gcd(int a, int b) | private static int gcd(int a, int b) | private static final int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. int tmp; if (b > a) { tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; if (b == 1) return b; tmp = b; b = a % b; a = tmp; } } |
private final boolean isNegative() | private boolean isNegative() | private final boolean isNegative() { return (words == null ? ival : words[ival - 1]) < 0; } |
private final boolean isOne() | private boolean isOne() | private final boolean isOne() { return words == null && ival == 1; } |
private final boolean isZero() | private boolean isZero() | private final boolean isZero() { return words == null && ival == 0; } |
private final void set(long y) | private void set(long y) | private final void set(long y) { int i = (int) y; if ((long) i == y) { ival = i; words = null; } else { realloc(2); words[0] = i; words[1] = (int) (y >> 32); ival = 2; } } |
private static final BigInteger times(BigInteger x, int y) | private static BigInteger times(BigInteger x, int y) | private static final BigInteger times(BigInteger x, int y) { if (y == 0) return ZERO; if (y == 1) return x; int[] xwords = x.words; int xlen = x.ival; if (xwords == null) return valueOf((long) xlen * (long) y); boolean negative; BigInteger result = BigInteger.alloc(xlen + 1); i... |
private NumericShaper (int ranges, int context) | private NumericShaper (int key, int mask) | private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; } |
this.ranges = ranges; this.context = context; | this.key = Integer.numberOfTrailingZeros(key); this.mask = mask; | private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; } |
return (ranges == tmp.ranges && context == tmp.context); | return key == tmp.key && mask == tmp.mask; | public boolean equals (Object obj) { if (! (obj instanceof NumericShaper)) return false; NumericShaper tmp = (NumericShaper) obj; return (ranges == tmp.ranges && context == tmp.context); } |
throw new Error ("not implemented"); | if ((ranges & ~ALL_RANGES) != 0) throw new IllegalArgumentException("argument out of range"); return new NumericShaper(EUROPEAN, ranges); | public static NumericShaper getContextualShaper (int ranges) { throw new Error ("not implemented"); } |
return ranges; | return mask & ALL_RANGES; | public int getRanges () { return ranges; } |
throw new Error ("not implemented"); | if (Integer.bitCount(singleRange) != 1) throw new IllegalArgumentException("more than one bit set in argument"); if ((singleRange & ~ALL_RANGES) != 0) throw new IllegalArgumentException("argument out of range"); return new NumericShaper(singleRange, Integer.MIN_VALUE | singleRange); | public static NumericShaper getShaper (int singleRange) { throw new Error ("not implemented"); } |
throw new Error ("not implemented"); | return key ^ mask; | public int hashCode () { throw new Error ("not implemented"); } |
throw new Error ("not implemented"); | return mask > 0; | public boolean isContextual () { throw new Error ("not implemented"); } |
shape (text, start, count, context); | shape (text, start, count, 1 << key); | public void shape (char[] text, int start, int count) { shape (text, start, count, context); } |
throw new Error ("not implemented"); | return "key=" + key + "; mask=" + mask; | public String toString () { throw new Error ("not implemented"); } |
void setPage(URL page) throws IOException | public void setPage(String url) throws IOException | void setPage(URL page) throws IOException { // Sets the current URL being displayed. } |
critOids = new HashSet(); nonCritOids = new HashSet(); | public X509CRL(InputStream encoded) throws CRLException, IOException { super(); revokedCerts = new HashMap(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { ioe.printStackTrace(); ... | |
return ((X509CRL) o).revokedCerts.equals(revokedCerts); | if (!(o instanceof X509CRL)) return false; return ((X509CRL) o).getRevokedCertificates().equals(revokedCerts.values()); | public boolean equals(Object o) { return ((X509CRL) o).revokedCerts.equals(revokedCerts); } |
return Collections.unmodifiableSet(critOids); | HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); | public Set getCriticalExtensionOIDs() { return Collections.unmodifiableSet(critOids); } |
byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); | Extension e = getExtension(new OID(oid)); if (e != null) { return e.getValue().getEncoded(); } | public byte[] getExtensionValue(String oid) { byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); return null; } |
return issuerDN; | return new X500Principal(issuerDN.getDer()); | public X500Principal getIssuerX500Principal() { return issuerDN; } |
return Collections.unmodifiableSet(nonCritOids); | HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (!e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); | public Set getNonCriticalExtensionOIDs() { return Collections.unmodifiableSet(nonCritOids); } |
public X509CRLEntry getRevokedCertificate(BigInteger serialNo) | public java.security.cert.X509CRLEntry getRevokedCertificate(BigInteger serialNo) | public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); } |
return (X509CRLEntry) revokedCerts.get(serialNo); | return (java.security.cert.X509CRLEntry) revokedCerts.get(serialNo); | public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); } |
return false; | for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (e.isCritical() && !e.isSupported()) return true; } return false; | public boolean hasUnsupportedCriticalExtension() { return false; // XXX } |
throw new ASN1ParsingException("malformed CertificateList"); | throw new IOException("malformed CertificateList"); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
throw new ASN1ParsingException("malformed TBSCertList"); | throw new IOException("malformed TBSCertList"); debug("start tbsCertList len == " + val.getLength()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
throw new ASN1ParsingException("malformed AlgorithmIdentifier"); | throw new IOException("malformed AlgorithmIdentifier"); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
issuerDN = new X500Principal(in); | val = der.read(); issuerDN = new X500DistinguishedName(val.getEncoded()); der.skip(val.getLength()); debug("read issuer == " + issuerDN); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
X509CRLEntry entry = new gnu.java.security.x509.X509CRLEntry(version, in); | X509CRLEntry entry = new X509CRLEntry(version, der); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
if (version >= 2 && val.getTagClass() != DER.UNIVERSAL && val.getTag() == 0) | if (val.getTagClass() != DER.UNIVERSAL && val.getTag() == 0) | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
val = der.read(); | if (version < 2) throw new IOException("extra data in CRL"); DERValue exts = der.read(); if (!exts.isConstructed()) throw new IOException("malformed Extensions"); debug("start Extensions len == " + exts.getLength()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
while (len < val.getLength()) | while (len < exts.getLength()) | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
OID extId = (OID) der.read().getValue(); DERValue val2 = der.read(); Boolean crit = Boolean.valueOf(false); if (val2.getValue() instanceof Boolean) { crit = (Boolean) val2.getValue(); val2 = der.read(); } byte[] extVal = (byte[]) val2.getValue(); extensions.put(extId.toString(), extVal); if (crit.booleanValue()) critOi... | if (!ext.isConstructed()) throw new IOException("malformed Extension"); Extension e = new Extension(ext.getEncoded()); extensions.put(e.getOid(), e); der.skip(ext.getLength()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
val = der.read(); | debug("read tag == " + val.getTag()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
throw new ASN1ParsingException("malformed AlgorithmIdentifier"); | throw new IOException("malformed AlgorithmIdentifier"); debug("start AlgorithmIdentifier len == " + val.getLength()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... |
debug("read tag = " + val.getTag()); | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | |
return gnu.java.security.x509.X509CRL.class.getName(); | return X509CRL.class.getName(); | public String toString() { return gnu.java.security.x509.X509CRL.class.getName(); } |
byte b1[] = getEncoded(); byte b2[] = x.getEncoded(); | byte[] b1 = getEncoded(); byte[] b2 = x.getEncoded(); | public boolean equals(Object other) { if( other instanceof X509CRL ) { try { X509CRL x = (X509CRL) other; if( getEncoded().length != x.getEncoded().length ) return false; byte b1[] = getEncoded(); byte b2[] = x.getEncoded(); for( int i = 0; i < b1.length; i++ ) if( b1[i] != b2[i] ) return false; ... |
if (type == Operand.LONG) { return null; } if (type == Operand.FLOAT || type == Operand.DOUBLE) { return null; } | if (type == Operand.LONG || type == Operand.DOUBLE) { return null; } | public Register request(int type, Object owner) { if (type == Operand.LONG) { return null; } if (type == Operand.FLOAT || type == Operand.DOUBLE) { return null; } for (int i = regCount-1; i >= 0; i--) { final RegisterUsage ru = registers[i]; if (ru.request(owner)) ... |
public BufferedImage filter(BufferedImage src, BufferedImage dst) | public final BufferedImage filter(BufferedImage src, BufferedImage dst) | public BufferedImage filter(BufferedImage src, BufferedImage dst) { if (src.getColorModel() instanceof IndexColorModel) throw new IllegalArgumentException("LookupOp.filter: IndexColorModel " + "not allowed"); if (dst == null) dst = createCompatibleDestImage(src, src.getColorModel()); // Set u... |
public LookupTable getTable() | public final LookupTable getTable() | public LookupTable getTable() { return lut; } |
SecurityManager sm = Runtime.securityManager; | SecurityManager sm = SecurityManager.current; | public static String getenv(String name) { if (name == null) throw new NullPointerException(); SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("getenv." + name)); return VMSystem.getenv(name); } |
public ScrollPane() { | ScrollPane() { | public ScrollPane() { this(SCROLLBARS_AS_NEEDED); } |
public final void addImpl(Component component, Object constraints, int index) { | protected final void addImpl (Component component, Object constraints, int index) { | public final void addImpl(Component component, Object constraints, int index) { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) remove(list[0]); super.addImpl(component, constraints, -1); doLayout(); } |
public void addNotify() { if (getPeer() == null) | addNotify() { if (!isDisplayable ()) | public void addNotify() { if (getPeer() == null) return; setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); } |
setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); } | setPeer((ComponentPeer)getToolkit().createScrollPane(this)); super.addNotify(); } | public void addNotify() { if (getPeer() == null) return; setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); } |
public void doLayout() { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) { Dimension dim = list[0].getPreferredSize(); list[0].resize(dim); Point p = getScrollPosition(); if (p.x > dim.width) p.x = dim.width; if (p.y > dim.height) p.y = dim.height; setScrollPosition(p); } } | doLayout() { layout (); } | public void doLayout() { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) { Dimension dim = list[0].getPreferredSize(); list[0].resize(dim); Point p = getScrollPosition(); if (p.x > dim.width) p.x = dim.width; if (p.y > dim.height) p.y = dim.height; setScrollPosition(p);... |
public Adjustable getHAdjustable() { return (hAdjustable); } | getHAdjustable() { return(hAdjustable); } | public Adjustable getHAdjustable() { return (hAdjustable); } |
public int getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); | getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer)getPeer(); | public int getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); if (spp != null) return (spp.getHScrollbarHeight()); else return (0); // FIXME: What to do here? } |
public Point getScrollPosition() { | getScrollPosition() { | public Point getScrollPosition() { int x = 0; int y = 0; Adjustable v = getVAdjustable(); Adjustable h = getHAdjustable(); if (v != null) y = v.getValue(); if (h != null) x = h.getValue(); return (new Point(x, y)); } |
public int getScrollbarDisplayPolicy() { return (scrollbarDisplayPolicy); } | getScrollbarDisplayPolicy() { return(scrollbarDisplayPolicy); } | public int getScrollbarDisplayPolicy() { return (scrollbarDisplayPolicy); } |
public Adjustable getVAdjustable() { return (vAdjustable); } | getVAdjustable() { return(vAdjustable); } | public Adjustable getVAdjustable() { return (vAdjustable); } |
public int getVScrollbarWidth() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); | getVScrollbarWidth() { ScrollPanePeer spp = (ScrollPanePeer)getPeer(); | public int getVScrollbarWidth() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); if (spp != null) return (spp.getVScrollbarWidth()); else return (0); // FIXME: What to do here? } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.