rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public void resolve(AbstractVmClassLoader clc) { | public void resolve(VmClassLoader clc) { | public void resolve(AbstractVmClassLoader clc) { if (!resolved) { doResolve(clc); resolved = true; } } |
os.writeCALL(Register.EAX, context.getVmMethodNativeCodeField() .getOffset()); | final int offset = context.getVmMethodNativeCodeField().getOffset(); os.writeCALL(Register.EAX, offset); | public final void invokeJavaMethod(String signature) { os.writeCALL(Register.EAX, context.getVmMethodNativeCodeField() .getOffset()); pushReturnValue(signature); } |
public static final int getArgSlotCount(String signature) { | public static final int getArgSlotCount(char[] signature) { | public static final int getArgSlotCount(String signature) { int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' : /... |
final int len = signature.length(); if (signature.charAt(ofs++) != '(') | final int len = signature.length; if (signature[ofs++] != '(') | public static final int getArgSlotCount(String signature) { int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' : /... |
char ch = signature.charAt(ofs++); | char ch = signature[ofs++]; | public static final int getArgSlotCount(String signature) { int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' : /... |
while (signature.charAt(ofs) == '[') | while (signature[ofs] == '[') | public static final int getArgSlotCount(String signature) { int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' : /... |
if (signature.charAt(ofs) == 'L') { | if (signature[ofs] == 'L') { | public static final int getArgSlotCount(String signature) { int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' : /... |
while (signature.charAt(ofs) != ';') | while (signature[ofs] != ';') | public static final int getArgSlotCount(String signature) { int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' : /... |
"Invalid signature in getArgSlotCount: " + signature); | "Invalid signature in getArgSlotCount: " + String.valueOf(signature)); | public static final int getArgSlotCount(String signature) { int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' : /... |
if (result == null) | if (result == null && parent != null) | public Action get(Object key) { Object result = actionMap.get(key); if (result == null) result = parent.get(key); return (Action) result; } |
public TTFTextRenderer(TTFFontData fontData, int fontSize) { | public TTFTextRenderer(RenderCache renderCache, TTFFontData fontData, int fontSize) { this.renderCache = renderCache; | public TTFTextRenderer(TTFFontData fontData, int fontSize) { this.fontData = fontData; this.fontSize = fontSize; } |
public void render(Graphics2D g, String text, int x, int y) { | public void render(Surface surface, AffineTransform tx, String text, int x, int y, Color color) { | public void render(Graphics2D g, String text, int x, int y) { try { final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); final TTFGlyphTable glyphTable = fontData.getGlyphTable(); final TTFCMapTable cmapTable = fontData.getCMapTable(); final TTFHorizontalHeaderTable hheadTable = fontData.getHorizon... |
final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); | public void render(Graphics2D g, String text, int x, int y) { try { final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); final TTFGlyphTable glyphTable = fontData.getGlyphTable(); final TTFCMapTable cmapTable = fontData.getCMapTable(); final TTFHorizontalHeaderTable hheadTable = fontData.getHorizon... | |
final TTFHorizontalHeaderTable hheadTable = fontData.getHorizontalHeaderTable(); final TTFHorizontalMetricsTable hmTable = fontData.getHorizontalMetricsTable(); | public void render(Graphics2D g, String text, int x, int y) { try { final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); final TTFGlyphTable glyphTable = fontData.getGlyphTable(); final TTFCMapTable cmapTable = fontData.getCMapTable(); final TTFHorizontalHeaderTable hheadTable = fontData.getHorizon... | |
final double ascent = hheadTable.getAscent(); final AffineTransform tx = new AffineTransform(); final double scale = fontSize / ascent; tx.translate(x, y + fontSize); tx.scale(scale, -scale); tx.translate(0, ascent); | public void render(Graphics2D g, String text, int x, int y) { try { final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); final TTFGlyphTable glyphTable = fontData.getGlyphTable(); final TTFCMapTable cmapTable = fontData.getCMapTable(); final TTFHorizontalHeaderTable hheadTable = fontData.getHorizon... | |
Shape shape = glyphTable.getGlyph(index).getShape(); if(text.charAt(i) != ' ') gp.append(shape.getPathIterator(tx), false); tx.translate(hmTable.getAdvanceWidth(index), 0); | final Glyph g = glyphTable.getGlyph(index); final GlyphRenderer renderer = renderCache.getRenderer(g); final Raster alphaRaster = renderer.createGlyphRaster((int)fontSize); surface.drawAlphaRaster(alphaRaster, tx, 0, 0, x, y, alphaRaster.getWidth(), alphaRaster.getHeight(), color); x += alphaRaster.getWidth(); | public void render(Graphics2D g, String text, int x, int y) { try { final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); final TTFGlyphTable glyphTable = fontData.getGlyphTable(); final TTFCMapTable cmapTable = fontData.getCMapTable(); final TTFHorizontalHeaderTable hheadTable = fontData.getHorizon... |
g.draw(gp); } catch (IOException ex) { | } catch (Exception ex) { | public void render(Graphics2D g, String text, int x, int y) { try { final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); final TTFGlyphTable glyphTable = fontData.getGlyphTable(); final TTFCMapTable cmapTable = fontData.getCMapTable(); final TTFHorizontalHeaderTable hheadTable = fontData.getHorizon... |
public void render(Graphics2D g, String text, int x, int y); | public void render(Surface g, AffineTransform tx, String text, int x, int y, Color color); | public void render(Graphics2D g, String text, int x, int y); |
if (((AbstractButton)b).isContentAreaFilled()) | if (((AbstractButton)b).isContentAreaFilled() && b.isOpaque()) | protected void paintButtonNormal(Graphics g, Rectangle area, JComponent b) { if (((AbstractButton)b).isContentAreaFilled()) { g.setColor(b.getBackground()); g.fillRect(area.x, area.y, area.width, area.height); } } |
{ int x = iconRect.x; int y = iconRect.y; i.paintIcon(c, g, x, y); } | i.paintIcon(c, g, iconRect.x, iconRect.y); | protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { AbstractButton b = (AbstractButton) c; Icon i = currentIcon(b); if (i != null) { int x = iconRect.x; int y = iconRect.y; i.paintIcon(c, g, x, y); } } |
BasicGraphicsUtils.drawString(g, text, 0, textRect.x, textRect.y + fm.getAscent()); | g.drawString(text, textRect.x, textRect.y + fm.getAscent()); } else { g.setColor(c.getBackground().brighter()); g.drawString(text, textRect.x, textRect.y + fm.getAscent()); g.setColor(c.getBackground().darker()); g.drawString(text, textRect.x + 1, textRect.y + fm.getAscent() + 1); } | protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); g.setColor(c.getForeground()); BasicGraphicsUtils.drawString(g, text, 0, textRect... |
if (disabled_icon == null && default_icon instanceof ImageIcon) disabled_icon = new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) default_icon).getImage())); | public Icon getDisabledIcon() { return disabled_icon; } | |
public IllegalMonitorStateException() { super(); } | public IllegalMonitorStateException() { } | public IllegalMonitorStateException() { super(); } |
Restricted_ORB.Singleton.create_enum_tc(id(), "SetOverrideType", | OrbRestricted.Singleton.create_enum_tc(id(), "SetOverrideType", | public static TypeCode type() { if (typeCode == null) { String[] members = new String[] { "SET_OVERRIDE" ,"ADD_OVERRIDE" }; typeCode = Restricted_ORB.Singleton.create_enum_tc(id(), "SetOverrideType", ... |
public abstract void beginValidate(); | void beginValidate(); | public abstract void beginValidate(); |
public abstract void endValidate(); | void endValidate(); | public abstract void endValidate(); |
public abstract Insets getInsets(); | Insets getInsets(); | public abstract Insets getInsets(); |
public abstract Insets insets(); | Insets insets(); | public abstract Insets insets(); |
if (l == null) return; | public synchronized void addPropertyChangeListener(PropertyChangeListener l) { if (l instanceof PropertyChangeListenerProxy) { PropertyChangeListenerProxy p = (PropertyChangeListenerProxy) l; addPropertyChangeListener(p.propertyName, (PropertyChangeListener) p.g... | |
public static Integer valueOf(int val) | public static Integer valueOf(String s, int radix) | public static Integer valueOf(int val) { if (val < MIN_CACHE || val > MAX_CACHE) return new Integer(val); synchronized (intCache) { if (intCache[val - MIN_CACHE] == null) intCache[val - MIN_CACHE] = new Integer(val); return intCache[val - MIN_CACHE]; } } |
if (val < MIN_CACHE || val > MAX_CACHE) return new Integer(val); synchronized (intCache) { if (intCache[val - MIN_CACHE] == null) intCache[val - MIN_CACHE] = new Integer(val); return intCache[val - MIN_CACHE]; } | return new Integer(parseInt(s, radix, false)); | public static Integer valueOf(int val) { if (val < MIN_CACHE || val > MAX_CACHE) return new Integer(val); synchronized (intCache) { if (intCache[val - MIN_CACHE] == null) intCache[val - MIN_CACHE] = new Integer(val); return intCache[val - MIN_CACHE]; } } |
return new HashIterator<Map.Entry<K, V>>(ENTRIES); | return new EntryIterator(); | public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { // Create an AbstractSet with custom implementations of those methods // that can be overridden easily and efficiently. Set<Map.Entry<K, V>> r = new AbstractSet<Map.Entry<K, V>>() { public int size() ... |
Restricted_ORB.Singleton.create_enum_tc(id(), "DefinitionKind", | OrbRestricted.Singleton.create_enum_tc(id(), "DefinitionKind", | public static TypeCode type() { if (typeCode == null) { String[] members = new String[] { "dk_none", "dk_all", "dk_Attribute", "dk_Constant", "dk_Exception", "dk_Interface", "dk_Module", "dk_Operation", "dk_Typedef", "dk_Alias", "dk_Struct", "dk_Union... |
this, dataVector.size(), dataVector.size(), -1, TableModelEvent.INSERT) | this, rowIndex, rowIndex, -1, TableModelEvent.INSERT) | public void addRow(Vector rowData) { dataVector.add(rowData); newRowsAdded(new TableModelEvent( this, dataVector.size(), dataVector.size(), -1, TableModelEvent.INSERT) ); } |
else result = super.getColumnName(column); | public String getColumnName(int column) { String result = ""; if (columnIdentifiers == null) result = super.getColumnName(column); else { if (column < getColumnCount()) { Object id = columnIdentifiers.get(column); if (id != null) result = id.toString(); els... | |
fireTableDataChanged(); | int firstRow = Math.min(startIndex, toIndex); int lastRow = Math.max(endIndex, toIndex + (endIndex - startIndex)); fireTableRowsUpdated(firstRow, lastRow); | public void moveRow(int startIndex, int endIndex, int toIndex) { Vector removed = new Vector(); for (int i = endIndex; i >= startIndex; i--) { removed.add(this.dataVector.remove(i)); } for (int i = 0; i <= endIndex - startIndex; i++) { dataVector.insertElementAt(removed.get(i), toIndex); ... |
fireTableDataChanged(); | fireTableStructureChanged(); | public void setColumnCount(int columnCount) { for (int i = 0; i < dataVector.size(); ++i) { ((Vector) dataVector.get(i)).setSize(columnCount); } if (columnIdentifiers != null) columnIdentifiers.setSize(columnCount); fireTableDataChanged(); } |
columnIdentifiers = columnNames; for (int r = 0; r < data.size(); r++) { ((Vector) dataVector.get(r)).setSize(columnNames.size()); } | setColumnIdentifiers(columnNames); | public void setDataVector(Vector data, Vector columnNames) { dataVector = data; columnIdentifiers = columnNames; for (int r = 0; r < data.size(); r++) { ((Vector) dataVector.get(r)).setSize(columnNames.size()); } } |
public TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) | public TableModelEvent(TableModel source) | public TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) { super(source); this.firstRow = firstRow; this.lastRow = lastRow; this.column = column; this.type = type; } |
super(source); this.firstRow = firstRow; this.lastRow = lastRow; this.column = column; this.type = type; | this(source, 0, Integer.MAX_VALUE, ALL_COLUMNS, UPDATE); | public TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) { super(source); this.firstRow = firstRow; this.lastRow = lastRow; this.column = column; this.type = type; } |
helper.atomicChangeObjectColor(object, color, GC_WHITE); | public boolean visit(Object object) { final int color = helper.getObjectColor(object); if (color == GC_YELLOW) { final VmClassType type = VmMagic.getObjectType(object); final VmMethod fm = type.getFinalizeMethod(); if (fm != null) { try { ... | |
return false; | return type == CS_sRGB; | public boolean isCS_sRGB() { return false; } |
public static RemoteStub exportObject(Remote obj) throws RemoteException { UnicastServerRef sref = (UnicastServerRef)((RemoteObject)obj).getRef(); return (sref.exportObject(obj)); } | public static RemoteStub exportObject(Remote obj) throws RemoteException { return (RemoteStub) exportObject(obj, 0); } | public static RemoteStub exportObject(Remote obj) throws RemoteException { UnicastServerRef sref = (UnicastServerRef)((RemoteObject)obj).getRef(); return (sref.exportObject(obj));} |
protected RemoteServer(RemoteRef ref) { super(ref); | protected RemoteServer() { super(); | protected RemoteServer(RemoteRef ref) { super(ref);} |
"ToggleButton.background", new ColorUIResource(getControl()), "ToggleButton.border", MetalBorders.getButtonBorder(), "ToggleButton.darkShadow", new ColorUIResource(getControlDarkShadow()), "ToggleButton.disabledText", new ColorUIResource(getControlDisabled()), "ToggleButton.focus", new ColorUIResource(getFocusColor()),... | protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark... | |
"InternalFrame.titleFont", new FontUIResource("Dialog", Font.PLAIN, 12), | "InternalFrame.titleFont", new FontUIResource("Dialog", Font.BOLD, 12), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"ctrl /", "selectAll", | "ctrl SLASH", "selectAll", | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"ctrl \\", "clearSelection", | "ctrl BACK_SLASH", "clearSelection", | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
Dimension d = super.getPreferredSize(); return d; | return super.getPreferredSize(); | public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); return d; } |
public static void setDefaultLookAndFeelDecorated(boolean d) | public static void setDefaultLookAndFeelDecorated(boolean decorated) | public static void setDefaultLookAndFeelDecorated(boolean d) { defaultLookAndFeelDecorated = d; } |
defaultLookAndFeelDecorated = d; | defaultLookAndFeelDecorated = decorated; | public static void setDefaultLookAndFeelDecorated(boolean d) { defaultLookAndFeelDecorated = d; } |
Frame(String title) | Frame() | Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false;} |
super(); this.title = title; visible = false; | this(""); | Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false;} |
return null; | return "MenuItem"; | protected String getPropertyPrefix() { return null; } |
throw new InvalidKeyException(String.valueOf(x)); | throw new InvalidKeyException(x.getMessage(), x); | public void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { HashMap attributes = new HashMap(); attributes.put(BaseSignature.SIGNER_KEY, privateKey); try { adaptee.setupSign(attributes); } catch (IllegalArgumentException x) { throw new InvalidKeyException(S... |
throw new InvalidKeyException(String.valueOf(x)); | throw new InvalidKeyException(x.getMessage(), x); | public void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { HashMap attributes = new HashMap(); attributes.put(BaseSignature.VERIFIER_KEY, publicKey); try { adaptee.setupVerify(attributes); } catch (IllegalArgumentException x) { throw new InvalidKeyExceptio... |
throw new SignatureException(String.valueOf(x)); | throw new SignatureException(x.getMessage(), x); | public byte[] engineSign() throws SignatureException { Object signature = null; try { signature = adaptee.sign(); } catch (IllegalStateException x) { throw new SignatureException(String.valueOf(x)); } byte[] result = codec.encodeSignature(signature); return result; } |
throw new SignatureException(String.valueOf(x)); | throw new SignatureException(x.getMessage(), x); | public void engineUpdate(byte b) throws SignatureException { try { adaptee.update(b); } catch (IllegalStateException x) { throw new SignatureException(String.valueOf(x)); } } |
log.entering("SignatureAdapter", "engineVerify"); | if (Configuration.DEBUG) log.entering(this.getClass().getName(), "engineVerify"); | public boolean engineVerify(byte[] sigBytes) throws SignatureException { log.entering("SignatureAdapter", "engineVerify"); Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (IllegalStateException x) { ... |
throw new SignatureException(String.valueOf(x)); | throw new SignatureException(x.getMessage(), x); | public boolean engineVerify(byte[] sigBytes) throws SignatureException { log.entering("SignatureAdapter", "engineVerify"); Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (IllegalStateException x) { ... |
log.exiting("SignatureAdapter", "engineVerify", new Boolean(result)); | if (Configuration.DEBUG) log.exiting(this.getClass().getName(), "engineVerify", Boolean.valueOf(result)); | public boolean engineVerify(byte[] sigBytes) throws SignatureException { log.entering("SignatureAdapter", "engineVerify"); Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (IllegalStateException x) { ... |
{ | public static final ISignature getInstance(String ssa) { if (ssa == null) { return null; } ssa = ssa.trim(); ssa = ssa.toLowerCase(); ISignature result = null; if (ssa.equalsIgnoreCase(Registry.DSA_SIG) || ssa.equals(Registry.DSS_SIG)) { result = new DSSSignature(); }... | |
} | public static final ISignature getInstance(String ssa) { if (ssa == null) { return null; } ssa = ssa.trim(); ssa = ssa.toLowerCase(); ISignature result = null; if (ssa.equalsIgnoreCase(Registry.DSA_SIG) || ssa.equals(Registry.DSS_SIG)) { result = new DSSSignature(); }... | |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return ReferenceUriSchemesSupported.class; } |
public final String getName() | public String getName() | public final String getName() { return "reference-uri-schemes-supported"; } |
int index = getComponentIndex(sel); selectionModel.setSelectedIndex(index); | public void setSelected(Component sel) { } | |
return false; | return selectionModel.isSelected(); | public boolean isSelected() { return false; } |
public DecimalFormatSymbols (Locale loc) | public DecimalFormatSymbols () | public DecimalFormatSymbols (Locale loc) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } currencySymbol = safeGetString (res, "currencySymbol... |
ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } currencySymbol = safeGetString (res, "currencySymbol", "$"); decimalSeparator = safeGetChar (res, "decimalSeparator", '.'); digit =... | this (Locale.getDefault()); | public DecimalFormatSymbols (Locale loc) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } currencySymbol = safeGetString (res, "currencySymbol... |
public DecimalFormat (String pattern, DecimalFormatSymbols symbols) | public DecimalFormat () | public DecimalFormat (String pattern, DecimalFormatSymbols symbols) { this.symbols = symbols; applyPattern (pattern); } |
this.symbols = symbols; applyPattern (pattern); | this ("#,##0.###"); | public DecimalFormat (String pattern, DecimalFormatSymbols symbols) { this.symbols = symbols; applyPattern (pattern); } |
public final String format (double number) | public final String format (long number) | public final String format (double number) { StringBuffer sbuf = new StringBuffer(50); format (number, sbuf, null); return sbuf.toString(); } |
public abstract Document parse(InputSource source) throws SAXException, IOException; | public Document parse (File file) throws SAXException, IOException { if (file==null) { throw new IllegalArgumentException("File si 'null'"); } InputSource source; source = new InputSource (fileToURL (file)); source.setByteStream (new FileInputStream(file)); return parse (source); } | public abstract Document parse(InputSource source) throws SAXException, IOException; |
public NoSuchElementException(String detail) { super(detail); | public NoSuchElementException() { | public NoSuchElementException(String detail) { super(detail); } |
running = true; | public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ... | |
sleep(initialDelay); | synchronized (queueLock) { try { queueLock.wait(initialDelay); } catch (InterruptedException e) { } if (!running) return; | public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ... |
sleep(delay); | queueLock.wait(delay); | public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ... |
return; | public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ... | |
catch (Exception e) | } finally | public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ... |
if (isRunning()) | synchronized (queueLock) { if (waker != null) | public void start() { if (isRunning()) return; waker = new Waker(); waker.start(); } |
} | public void start() { if (isRunning()) return; waker = new Waker(); waker.start(); } | |
running = false; if (waker != null) waker.interrupt(); | public void stop() { running = false; if (waker != null) waker.interrupt(); synchronized (queueLock) { queue = 0; } } | |
if (waker != null) queueLock.notifyAll(); waker = null; | public void stop() { running = false; if (waker != null) waker.interrupt(); synchronized (queueLock) { queue = 0; } } | |
useByteOrderMark ? 2.0f : 4.0f, | useByteOrderMark ? 4.0f : 2.0f, | UTF_16Encoder (Charset cs, int byteOrder, boolean useByteOrderMark) { super (cs, 2.0f, useByteOrderMark ? 2.0f : 4.0f, byteOrder == BIG_ENDIAN ? new byte[] { (byte) 0xFF, (byte) 0xFD } : new byte[] { (byte) 0xFD, (byte) 0xFF }); this.byteOrder = byteOrder; this.us... |
this.byteOrder = byteOrder; | this.byteOrder = (byteOrder == BIG_ENDIAN) ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN; | UTF_16Encoder (Charset cs, int byteOrder, boolean useByteOrderMark) { super (cs, 2.0f, useByteOrderMark ? 2.0f : 4.0f, byteOrder == BIG_ENDIAN ? new byte[] { (byte) 0xFF, (byte) 0xFD } : new byte[] { (byte) 0xFD, (byte) 0xFF }); this.byteOrder = byteOrder; this.us... |
if (obj instanceof ObjID && this.objNum == ((ObjID) obj).objNum) | if (obj instanceof ObjID) | public boolean equals(Object obj) { if (obj instanceof ObjID && this.objNum == ((ObjID) obj).objNum) { return (true); } return (false); } |
return (true); | ObjID that = (ObjID) obj; return that.objNum == objNum && eq(that.space, space); | public boolean equals(Object obj) { if (obj instanceof ObjID && this.objNum == ((ObjID) obj).objNum) { return (true); } return (false); } |
return (false); | else return false; | public boolean equals(Object obj) { if (obj instanceof ObjID && this.objNum == ((ObjID) obj).objNum) { return (true); } return (false); } |
return ((int) objNum); | return space == null ? (int) objNum : space.hashCode() ^ (int) objNum; | public int hashCode() { return ((int) objNum); } |
return ("[objNum: " + objNum + ", " + space + "]"); | return (objNum + ":" + space); | public String toString() { return ("[objNum: " + objNum + ", " + space + "]"); } |
BranchElement rootElement = (BranchElement) createBranchElement(null, null); Element[] lines = new Element[1]; lines[0] = createLeafElement(rootElement, null, 0, 1); rootElement.replace(0, 0, lines); return rootElement; } | rootElement = createBranchElement(null, null); reindex(); return (AbstractElement) rootElement; } | protected AbstractDocument.AbstractElement createDefaultRoot() { BranchElement rootElement = (BranchElement) createBranchElement(null, null); Element[] lines = new Element[1]; lines[0] = createLeafElement(rootElement, null, 0, 1); rootElement.replace(0, 0, lines); return rootElement; } |
public UnknownEncoding(String why) | public UnknownEncoding() | public UnknownEncoding(String why) { super(why); } |
super(why); | public UnknownEncoding(String why) { super(why); } | |
else | public static Component getRoot(Component comp) { Applet app = null; Window win = null; while (comp != null) { if (win == null && comp instanceof Window) win = (Window) comp; else if (comp instanceof Applet) app = (Applet) comp; comp = comp.getParent(); } ... | |
byte[] result = new byte[] { | return new byte[] { | protected byte[] getResult() { // apply inverse mu to the context byte[] result = new byte[] { (byte)(H0 >>> 56), (byte)(H0 >>> 48), (byte)(H0 >>> 40), (byte)(H0 >>> 32), (byte)(H0 >>> 24), (byte)(H0 >>> 16), (byte)(H0 >>> 8), (byte) H0, (byte)(H1 >>> 56), (byte)(H1 >>> 48), (byte)(H1 >>> 40), ... |
return result; | protected byte[] getResult() { // apply inverse mu to the context byte[] result = new byte[] { (byte)(H0 >>> 56), (byte)(H0 >>> 48), (byte)(H0 >>> 40), (byte)(H0 >>> 32), (byte)(H0 >>> 24), (byte)(H0 >>> 16), (byte)(H0 >>> 8), (byte) H0, (byte)(H1 >>> 56), (byte)(H1 >>> 48), (byte)(H1 >>> 40), ... | |
valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Whirlpool().digest()))); | { String d = Util.toString(new Whirlpool().digest()); valid = Boolean.valueOf(DIGEST0.equals(d)); } | public boolean selfTest() { if (valid == null) valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Whirlpool().digest()))); return valid.booleanValue(); } |
public static String toString(long n) | public static String toString(byte[] ba) | public static String toString(long n) { char[] b = new char[16]; for (int i = 15; i >= 0; i--) { b[i] = HEX_DIGITS[(int) (n & 0x0FL)]; n >>>= 4; } return new String(b); } |
char[] b = new char[16]; for (int i = 15; i >= 0; i--) { b[i] = HEX_DIGITS[(int) (n & 0x0FL)]; n >>>= 4; } return new String(b); | return toString(ba, 0, ba.length); | public static String toString(long n) { char[] b = new char[16]; for (int i = 15; i >= 0; i--) { b[i] = HEX_DIGITS[(int) (n & 0x0FL)]; n >>>= 4; } return new String(b); } |
public abstract void addPropertyChangeListener(PropertyChangeListener listener); | void addPropertyChangeListener(PropertyChangeListener listener); | public abstract void addPropertyChangeListener(PropertyChangeListener listener); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.