rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
static UIDefaults getLookAndFeelDefaults() { return getLookAndFeel().getDefaults(); } | public static UIDefaults getLookAndFeelDefaults() { return getLookAndFeel().getDefaults(); } | static UIDefaults getLookAndFeelDefaults() // Returns the default values for this look and feel. { return getLookAndFeel().getDefaults(); } |
static String getString(Object key) { return (String) getLookAndFeel().getDefaults().get(key); } | public static String getString(Object key) { return (String) getLookAndFeel().getDefaults().get(key); } | static String getString(Object key) // Returns a string from the defaults table. { return (String) getLookAndFeel().getDefaults().get(key); } |
static String getSystemLookAndFeelClassName() { return getCrossPlatformLookAndFeelClassName(); } | public static String getSystemLookAndFeelClassName() { return getCrossPlatformLookAndFeelClassName(); } | static String getSystemLookAndFeelClassName() // Returns the name of the LookAndFeel class that implements the native systems look and feel if there is one, otherwise the name of the default cross platform LookAndFeel class. { return getCrossPlatformLookAndFeelClassName(); } |
if (currentKeyboardFocusManagers.get (currentGroup) == null) setCurrentKeyboardFocusManager (null); | public static KeyboardFocusManager getCurrentKeyboardFocusManager () { ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); return (KeyboardFocusManager) currentKeyboardFocusManagers.get (currentGroup); } | |
dispatchEvent (e); | target.dispatchEvent (e); } | public final void redispatchEvent (Component target, AWTEvent e) { e.setSource (target); dispatchEvent (e); } |
if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right, size.height - insets.bottom - insets.top); Component[] children = parent.getComponents(); boolean[] laidOut ... | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | |
{ int preferredWidthAll = 0; for (int index = 0; index < children.length; index++) { preferredWidthAll += children[index].getPreferredSize().width; } double widthFactor = (double) innerSize.width / (double) preferredWidthAll; int widthRemain = innerSize.width; for (int index = 0; index < children.length; index++) { ... | layoutAlgorithm(parent, HORIZONTAL, VERTICAL); | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... |
{ int preferredHeightAll = 0; for (int index = 0; index < children.length; index++) { preferredHeightAll += children[index].getPreferredSize().height; } double heightFactor = (double) innerSize.height / (double) preferredHeightAll; int heightRemain = innerSize.height; for (int index = 0; index < children.length; ind... | layoutAlgorithm(parent, VERTICAL, HORIZONTAL); | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... |
Component[] children = parent.getComponents(); | Component[] children = AWTUtilities.getVisibleChildren(parent); | public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; Component[] children = parent.getComponents(); if (isHorizontalI... |
Component[] children = parent.getComponents(); | Component[] children = AWTUtilities.getVisibleChildren(parent); | public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; Component[] children = parent.getComponents(); if (isHorizontalI... |
Component[] children = parent.getComponents(); | Component[] children = AWTUtilities.getVisibleChildren(parent); | public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; Component[] children = parent.getComponents(); if (isHorizontalIn(parent)) { x = insets.left... |
synchronized (this.getClass()) | synchronized (Connection.class) | public String getHeaderField(String field) { try { if (!connected) connect(); if (field.equals("content-type")) return guessContentTypeFromName(getJarEntry().getName()); else if (field.equals("content-length")) return Long.toString(getJarEntry().getSize()); else if (field.equals("last-mod... |
connection = HTTPConnection.Pool.instance.get(host, port, secure); | connection = HTTPConnection.Pool.instance.get(host, port, secure, getConnectTimeout(), 0); | HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { connection = HTTPConnection.Pool.instance.get(host, port, secure); } else { connection = new HTTPConnection(host, port, secure); } retu... |
connection = new HTTPConnection(host, port, secure); | connection = new HTTPConnection(host, port, secure, 0, getConnectTimeout()); | HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { connection = HTTPConnection.Pool.instance.get(host, port, secure); } else { connection = new HTTPConnection(host, port, secure); } retu... |
boolean secure) | boolean secure, int connectionTimeout, int timeout) | synchronized HTTPConnection get(String host, int port, boolean secure) { String ttl = SystemProperties.getProperty("classpath.net.http.keepAliveTTL"); connectionTTL = (ttl != null && ttl.length() > 0) ? 1000 * Math.max(... |
c = new HTTPConnection(host, port, secure); | c = new HTTPConnection(host, port, secure, connectionTimeout, timeout); | synchronized HTTPConnection get(String host, int port, boolean secure) { String ttl = SystemProperties.getProperty("classpath.net.http.keepAliveTTL"); connectionTTL = (ttl != null && ttl.length() > 0) ? 1000 * Math.max(... |
public HTTPConnection(String hostname, int port, boolean secure, int connectionTimeout, int timeout) | public HTTPConnection(String hostname) | public HTTPConnection(String hostname, int port, boolean secure, int connectionTimeout, int timeout) { this.hostname = hostname; this.port = port; this.secure = secure; this.connectionTimeout = connectionTimeout; this.timeout = timeout; majorVersion = minorVersion = 1; han... |
this.hostname = hostname; this.port = port; this.secure = secure; this.connectionTimeout = connectionTimeout; this.timeout = timeout; majorVersion = minorVersion = 1; handshakeCompletedListeners = new ArrayList(2); | this(hostname, HTTP_PORT, false, 0, 0); | public HTTPConnection(String hostname, int port, boolean secure, int connectionTimeout, int timeout) { this.hostname = hostname; this.port = port; this.secure = secure; this.connectionTimeout = connectionTimeout; this.timeout = timeout; majorVersion = minorVersion = 1; han... |
this.wb = (DefaultWriteBarrier) heapManager.getWriteBarrier(); | this.writeBarrier = (DefaultWriteBarrier) heapManager.getWriteBarrier(); | public GCManager(DefaultHeapManager heapManager, VmArchitecture arch, VmStatics statics) { this.debug = Vm.getVm().isDebugMode(); this.heapManager = heapManager; this.wb = (DefaultWriteBarrier) heapManager.getWriteBarrier(); this.helper = heapManager.getHelper(); this.m... |
helper.disableReschedule(); | helper.stopThreadsAtSafePoint(); | final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); // Mark helper.disableReschedule(); heapManager.setGcActive(true); t... |
wb.setActive(true); | if (writeBarrier != null) { writeBarrier.setActive(true); } | final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); // Mark helper.disableReschedule(); heapManager.setGcActive(true); t... |
wb.setActive(false); | if (writeBarrier != null) { writeBarrier.setActive(false); } | final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); // Mark helper.disableReschedule(); heapManager.setGcActive(true); t... |
helper.enableReschedule(); | helper.restartThreads(); | final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); // Mark helper.disableReschedule(); heapManager.setGcActive(true); t... |
wb.resetChanged(); | if (writeBarrier != null) { writeBarrier.resetChanged(); } | private final void markHeap(VmBootHeap bootHeap, VmAbstractHeap firstHeap) { final long startTime = VmSystem.currentKernelMillis(); long markedObjects = 0; boolean firstIteration = true; do { // Do an iteration reset markStack.reset(); wb.resetChanged(); ... |
} while (markStack.isOverflow() || wb.isChanged()); | if (writeBarrier != null) { wbChanged = writeBarrier.isChanged(); } } while (markStack.isOverflow() || wbChanged); | private final void markHeap(VmBootHeap bootHeap, VmAbstractHeap firstHeap) { final long startTime = VmSystem.currentKernelMillis(); long markedObjects = 0; boolean firstIteration = true; do { // Do an iteration reset markStack.reset(); wb.resetChanged(); ... |
scrollRectToVisible(getUI().getCellBounds(this, i, i)); | Rectangle r = getUI().getCellBounds(this, i, i); if (r != null) scrollRectToVisible(r); | public void ensureIndexIsVisible(int i) { scrollRectToVisible(getUI().getCellBounds(this, i, i)); } |
throw new Error("Not implemented"); | if (manager!=null) return manager.toString(); else return "null manager"; | public String remoteToString() { throw new Error("Not implemented"); } |
if (Configuration.DEBUG) | Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.KEYPASSWD_CMD, true); result.setHeader(Messages.getString("KeyPasswdCmd.23")); //$NON-NLS-1$ result.setFooter(Messages.getString("KeyPasswdCmd.22")); //$NON-NLS-1$ Opti... | |
log.finer("-keypasswd handler will use the following options:"); log.finer(" -alias=" + alias); log.finer(" -new=" + _newPassword); log.finer(" -storetype=" + storeType); log.finer(" -keystore=" + storeURL); log.finer(" -provider=" + provider); log.finer(" -v=" + verbose); | if (Configuration.DEBUG) { log.fine("-keypasswd handler will use the following options:"); log.fine(" -alias=" + alias); log.fine(" -new=" + _newPassword); log.fine(" -storetype=" + storeType); log.fine(" -keystore=" + storeURL); log.fine(" -provider=" + provider); log.fine(" -v=" + verbose); } | void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-keypasswd handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias); //$NON-NLS-1$ log.finer(" -n... |
if (Configuration.DEBUG) | void start() throws KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, UnrecoverableKeyException, CertificateException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ // 1. get the key entry and certificate chain associated to alias Key privat... | |
valueClass = Object.class; | public DefaultFormatter() { commitsOnValidEdit = true; overwriteMode = true; allowsInvalid = true; valueClass = Object.class; } | |
{ | public byte[] engineGenerateSeed(int numBytes) { if (numBytes < 1) { return new byte[0]; } byte[] result = new byte[numBytes]; this.engineNextBytes(result); return result; } | |
} | public byte[] engineGenerateSeed(int numBytes) { if (numBytes < 1) { return new byte[0]; } byte[] result = new byte[numBytes]; this.engineNextBytes(result); return result; } | |
if (!adaptee.isInitialised()) { | if (! adaptee.isInitialised()) | public void engineNextBytes(byte[] bytes) { if (!adaptee.isInitialised()) { this.engineSetSeed(new byte[0]); } try { adaptee.nextBytes(bytes, 0, bytes.length); } catch (LimitReachedException ignored) { } } |
} | public void engineNextBytes(byte[] bytes) { if (!adaptee.isInitialised()) { this.engineSetSeed(new byte[0]); } try { adaptee.nextBytes(bytes, 0, bytes.length); } catch (LimitReachedException ignored) { } } | |
setSelectionModel(new DefaultListSelectionModel()); | setSelectionModel(createSelectionModel()); | public DefaultTableColumnModel() { tableColumns = new Vector(); setSelectionModel(new DefaultListSelectionModel()); columnMargin = 1; columnSelectionAllowed = false; } |
fireColumnAdded(new TableColumnModelEvent(this,0,tableColumns.size())); | public void addColumn(TableColumn col) { tableColumns.add(col); invalidateWidthCache(); } | |
return null; | return new DefaultListSelectionModel(); | protected ListSelectionModel createSelectionModel() { return null; // TODO } |
protected void fireColumnAdded(TableColumnModelEvent value0) | protected void fireColumnAdded(TableColumnModelEvent e) | protected void fireColumnAdded(TableColumnModelEvent value0) { // TODO } |
TableColumnModelListener[] listeners = getColumnModelListeners(); for (int i=0; i< listeners.length; i++) listeners[i].columnAdded(e); | protected void fireColumnAdded(TableColumnModelEvent value0) { // TODO } | |
EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnMarginChanged(changeEvent); | protected void fireColumnMarginChanged() { // TODO } | |
protected void fireColumnMoved(TableColumnModelEvent value0) | protected void fireColumnMoved(TableColumnModelEvent e) | protected void fireColumnMoved(TableColumnModelEvent value0) { // TODO } |
TableColumnModelListener[] listeners = getColumnModelListeners(); for (int i=0; i< listeners.length; i++) listeners[i].columnMoved(e); | protected void fireColumnMoved(TableColumnModelEvent value0) { // TODO } | |
protected void fireColumnRemoved(TableColumnModelEvent value0) | protected void fireColumnRemoved(TableColumnModelEvent e) | protected void fireColumnRemoved(TableColumnModelEvent value0) { // TODO } |
TableColumnModelListener[] listeners = getColumnModelListeners(); for (int i=0; i< listeners.length; i++) listeners[i].columnRemoved(e); | protected void fireColumnRemoved(TableColumnModelEvent value0) { // TODO } | |
public int getColumnIndex(Object obj) | public int getColumnIndex(Object identifier) | public int getColumnIndex(Object obj) { return tableColumns.indexOf(obj, 0); } |
return tableColumns.indexOf(obj, 0); | return tableColumns.indexOf(identifier, 0); | public int getColumnIndex(Object obj) { return tableColumns.indexOf(obj, 0); } |
public EventListener[] getListeners(Class klass) | public EventListener[] getListeners(Class listenerType) | public EventListener[] getListeners(Class klass) { return listenerList.getListeners(klass); } |
return listenerList.getListeners(klass); | return listenerList.getListeners(listenerType); | public EventListener[] getListeners(Class klass) { return listenerList.getListeners(klass); } |
fireColumnAdded(new TableColumnModelEvent(this,i,j)); | public void moveColumn(int i, int j) { Object tmp = tableColumns.get(i); tableColumns.set(i, tableColumns.get(j)); tableColumns.set(j, tmp); } | |
public void propertyChange(PropertyChangeEvent value0) | public void propertyChange(PropertyChangeEvent evt) | public void propertyChange(PropertyChangeEvent value0) { // TODO } |
if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); | public void propertyChange(PropertyChangeEvent value0) { // TODO } | |
int index = getColumnIndex(col); fireColumnRemoved(new TableColumnModelEvent(this,index,0)); | public void removeColumn(TableColumn col) { tableColumns.remove(col); invalidateWidthCache(); } | |
fireColumnMarginChanged(); | public void setColumnMargin(int m) { columnMargin = m; } | |
public void setColumnSelectionAllowed(boolean a) | public void setColumnSelectionAllowed(boolean flag) | public void setColumnSelectionAllowed(boolean a) { columnSelectionAllowed = a; } |
columnSelectionAllowed = a; | columnSelectionAllowed = flag; | public void setColumnSelectionAllowed(boolean a) { columnSelectionAllowed = a; } |
public void valueChanged(ListSelectionEvent value0) | public void valueChanged(ListSelectionEvent e) | public void valueChanged(ListSelectionEvent value0) { fireColumnSelectionChanged(value0); } |
fireColumnSelectionChanged(value0); | fireColumnSelectionChanged(e); | public void valueChanged(ListSelectionEvent value0) { fireColumnSelectionChanged(value0); } |
y2 = colHead.getPreferredSize().height; | y2 = y1 + colHead.getPreferredSize().height; | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... |
x2 = rowHead.getPreferredSize().width; | x2 = x1 + rowHead.getPreferredSize().width; | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... |
rowHead = scrollPane.getRowHeader(); colHead = scrollPane.getColumnHeader(); | public void syncWithScrollPane(JScrollPane scrollPane) { viewport = scrollPane.getViewport(); vsb = scrollPane.getVerticalScrollBar(); hsb = scrollPane.getHorizontalScrollBar(); vsbPolicy = scrollPane.getVerticalScrollBarPolicy(); hsbPolicy = scrollPane.getHorizontalScrollBarPolicy(); lowerLeft = sc... | |
int l0 = 0; while (l0 < a0) { l0 += 1; | int l0 = 1; while (l0 < 10) { l0 += 5; | public static int simpleWhile(int a0) { int l0 = 0; while (l0 < a0) { l0 += 1; } return l0; } |
ORB orb = Restricted_ORB.Singleton; | ORB orb = OrbRestricted.Singleton; | public static TypeCode type() { ORB orb = Restricted_ORB.Singleton; return orb.create_alias_tc(id(), "Object Id", orb.create_string_tc(0)); } |
ActivationGroupDesc getActivationGroupDesc (ActivationGroupID id) throws ActivationException, UnknownGroupException, RemoteException; | ActivationGroupDesc getActivationGroupDesc(ActivationGroupID groupId) throws ActivationException, UnknownGroupException, RemoteException; | ActivationGroupDesc getActivationGroupDesc (ActivationGroupID id) throws ActivationException, UnknownGroupException, RemoteException; |
ActivationGroupDesc setActivationGroupDesc (ActivationGroupID id, ActivationGroupDesc desc) | ActivationGroupDesc setActivationGroupDesc(ActivationGroupID groupId, ActivationGroupDesc groupDesc) | ActivationGroupDesc setActivationGroupDesc (ActivationGroupID id, ActivationGroupDesc desc) throws ActivationException, UnknownGroupException, RemoteException; |
if(length<getLength()) { long blockNr = length / blockSize; long blockOffset = length % blockSize; long nextBlock; if(blockOffset==0) nextBlock=blockNr; else nextBlock=blockNr+1; for(long i=iNode.getAllocatedBlockCount()-1; i>=nextBlock; i--) { log.debug("setLength(): freeing up block "+i+" of inode"); try{ iNode.f... | iNode.incLocked(); } synchronized(iNode) { try{ if(length<getLength()) { long blockNr = length / blockSize; long blockOffset = length % blockSize; long nextBlock; if(blockOffset==0) nextBlock=blockNr; else nextBlock=blockNr+1; for(long i=iNode.getAllocatedBlockCount()-1; i>=nextBlock; i--) { log.debug("setLengt... | public void setLength(long length) throws IOException { if(!canWrite()) throw new ReadOnlyFileSystemException("FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); //if length<getLength(), then the file is truncated if(length<getLength()) { long blockNr = length / ... |
iNode.setSize(length); iNode.setMtime(System.currentTimeMillis()/1000); return; } if(length>getLength()) { long len = length - getLength(); long blocksAllocated = getLengthInBlocks(); long bytesAllocated = getLength(); long bytesCovered=0; while( bytesCovered < len ) { long blockIndex = (bytesAllocated+bytesCov... | } | public void setLength(long length) throws IOException { if(!canWrite()) throw new ReadOnlyFileSystemException("FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); //if length<getLength(), then the file is truncated if(length<getLength()) { long blockNr = length / ... |
synchronized(iNode) { if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+len>src.length) throw new IOException("src is shorter than what you want to write"); log.debug("write(fileOffset="+fileOffset+", src, off, le... | synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } try{ synchronized(iNode) { if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+len>src.length) throw new... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); //a single inode may be represented by more than one Ext2File instances, //but each will use the same instance of the underlying inode (see Ext2FileSystem.getI... |
byte[] dest; if( !( (blockOffset==0)&&(copyLength==blockSize) ) && (blockIndex < blocksAllocated)) dest = iNode.getDataBlock(blockIndex); else dest = new byte[(int)blockSize]; | log.debug("write(fileOffset="+fileOffset+", src, off, len="+len+")"); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); //a single inode may be represented by more than one Ext2File instances, //but each will use the same instance of the underlying inode (see Ext2FileSystem.getI... |
System.arraycopy( src, (int)(off+bytesWritten), dest, (int)blockOffset, (int)copyLength); if(blockIndex >= blocksAllocated) { try{ iNode.allocateDataBlock(blockIndex); }catch(FileSystemException fe) { throw new IOException("Internal filesystem exception",fe); | final long blockSize = iNode.getExt2FileSystem().getBlockSize(); long blocksAllocated = iNode.getAllocatedBlockCount(); long bytesWritten=0; while( bytesWritten < len ) { long blockIndex = (fileOffset+bytesWritten) / blockSize; long blockOffset = (fileOffset+bytesWritten) % blockSize; long copyLength = Math.min(len-by... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); //a single inode may be represented by more than one Ext2File instances, //but each will use the same instance of the underlying inode (see Ext2FileSystem.getI... |
blocksAllocated++; | iNode.writeDataBlock(blockIndex, dest); bytesWritten += copyLength; | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); //a single inode may be represented by more than one Ext2File instances, //but each will use the same instance of the underlying inode (see Ext2FileSystem.getI... |
iNode.writeDataBlock(blockIndex, dest); | iNode.setSize( fileOffset+len ); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); //a single inode may be represented by more than one Ext2File instances, //but each will use the same instance of the underlying inode (see Ext2FileSystem.getI... |
bytesWritten += copyLength; | iNode.setMtime(System.currentTimeMillis()/1000); iNode.decLocked(); return; | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); //a single inode may be represented by more than one Ext2File instances, //but each will use the same instance of the underlying inode (see Ext2FileSystem.getI... |
iNode.setSize( fileOffset+len ); iNode.setMtime(System.currentTimeMillis()/1000); | }catch(Throwable t) { iNode.decLocked(); throw new IOException(t); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); //a single inode may be represented by more than one Ext2File instances, //but each will use the same instance of the underlying inode (see Ext2FileSystem.getI... |
PrivateKey result = new GnuRSAPrivateKey(Registry.PKCS8_ENCODING_ID, n, e, d, p, q, dP, dQ, qInv); | PrivateKey result = new GnuRSAPrivateKey(Registry.PKCS8_ENCODING_ID, n, e, d, p, q, dP, dQ, qInv); if (Configuration.DEBUG) | public PrivateKey decodePrivateKey(byte[] input) { log.entering(this.getClass().getName(), "decodePrivateKey()", input); if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, n, e, d, p, q, dP, dQ, qInv; DERReader der = new DERReader(input); t... |
ArrayList algorithmID = new ArrayList(1); | ArrayList algorithmID = new ArrayList(2); | public byte[] encodePrivateKey(PrivateKey key) { log.entering(this.getClass().getName(), "encodePrivateKey()", key); if (! (key instanceof GnuRSAPrivateKey)) throw new InvalidParameterException("Wrong key type"); GnuRSAPrivateKey pk = (GnuRSAPrivateKey) key; BigInteger n = pk.getN(); BigInteger e... |
if (Configuration.DEBUG) | public byte[] encodePrivateKey(PrivateKey key) { log.entering(this.getClass().getName(), "encodePrivateKey()", key); if (! (key instanceof GnuRSAPrivateKey)) throw new InvalidParameterException("Wrong key type"); GnuRSAPrivateKey pk = (GnuRSAPrivateKey) key; BigInteger n = pk.getN(); BigInteger e... | |
"InternalFrame.borderDarkShadow", new ColorUIResource(shadow), "InternalFrame.borderHighlight", new ColorUIResource(highLight), "InternalFrame.borderLight", new ColorUIResource(light), "InternalFrame.borderShadow", new ColorUIResource(shadow), | "InternalFrame.borderDarkShadow", new ColorUIResource(Color.BLACK), "InternalFrame.borderHighlight", new ColorUIResource(Color.WHITE), "InternalFrame.borderLight", new ColorUIResource(Color.LIGHT_GRAY), "InternalFrame.borderShadow", new ColorUIResource(Color.GRAY), | 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... |
"Tree.closedIcon", new IconUIResource(new ImageIcon(getClass().getResource( "/gnu/javax/swing/plaf/gtk/icons/TreeClosed.png"))), | 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... | |
"Tree.leafIcon", new IconUIResource(new ImageIcon(getClass().getResource( "/gnu/javax/swing/plaf/gtk/icons/TreeLeaf.png"))), | 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... | |
"Tree.openIcon", new IconUIResource(new ImageIcon(getClass().getResource( "/gnu/javax/swing/plaf/gtk/icons/TreeOpen.png"))), | 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... | |
"Tree.rowHeight", new Integer(16), | "Tree.rowHeight", new Integer(19), | 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... |
fireSelectionValueChanged(lo, hi, valueIsAdjusting); | fireValueChanged(lo, hi, valueIsAdjusting); | public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); ... |
fireSelectionValueChanged(0, sz, valueIsAdjusting); | fireValueChanged(0, sz, valueIsAdjusting); | public void clearSelection() { int sz = sel.size(); sel.clear(); fireSelectionValueChanged(0, sz, valueIsAdjusting); } |
fireSelectionValueChanged(lo, hi, valueIsAdjusting); | fireValueChanged(lo, hi, valueIsAdjusting); | public void removeSelectionInterval(int index0, int index1) { int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.clear(lo, hi+1); fireSelectionValueChanged(lo, hi, valueIsAdjusting); } |
fireSelectionValueChanged(beg, end, valueIsAdjusting); | fireValueChanged(beg, end, valueIsAdjusting); | public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.max(anchorSelectionIndex, oldLeadIndex); int S1 = Math.min(anch... |
fireSelectionValueChanged(lo, hi, valueIsAdjusting); | fireValueChanged(lo, hi, valueIsAdjusting); | public void setSelectionInterval(int index0, int index1) { sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); fireSelectionValueChanged(lo, hi, valueIsAdjusting); } |
ListIterator iter = _filters.listIterator (); | Iterator iter = _filters.iterator (); | public boolean matches (Event theEvent) { boolean matches = true; // Loop through filters; all must match // Note that we must allow EVERY filter to evaluate. This way // things like CountFilter will work. ListIterator iter = _filters.listIterator (); while (iter.hasNext ()) { IEventFilter fil... |
if (tabRuns[run] == 0) return tabCount - 1; | int lastTab; if (runCount == 1) lastTab = tabCount - 1; | protected int lastTabInRun(int tabCount, int run) { if (tabRuns[run] == 0) return tabCount - 1; else return tabRuns[run] - 1; } |
return tabRuns[run] - 1; | { int nextRun; if (run == runCount - 1) nextRun = 0; else nextRun = run + 1; if (tabRuns[nextRun] == 0) lastTab = tabCount - 1; else lastTab = tabRuns[nextRun] - 1; } return lastTab; | protected int lastTabInRun(int tabCount, int run) { if (tabRuns[run] == 0) return tabCount - 1; else return tabRuns[run] - 1; } |
public void dumpData(PrintStream out) { | public void dumpData(Logger out) { | public void dumpData(PrintStream out) { for (int i = 0; i <= MESSAGE_DESCRIPTOR_SIZE - 1; i += 4) { out.println( "0x" + NumberUtils.hex( Address.as32bit(mem.getAddress()) + offset + i) + " : 0x" + NumberUtils.hex((byte) i) + " : 0x" + NumberUtils.hex(mem.getInt(offset + i))); } } |
out.println( | out.debug( | public void dumpData(PrintStream out) { for (int i = 0; i <= MESSAGE_DESCRIPTOR_SIZE - 1; i += 4) { out.println( "0x" + NumberUtils.hex( Address.as32bit(mem.getAddress()) + offset + i) + " : 0x" + NumberUtils.hex((byte) i) + " : 0x" + NumberUtils.hex(mem.getInt(offset + i))); } } |
Class cls = cl.loadClass(ARG_CLASS.getValue(cmdLine)); | Class<?> cls = cl.loadClass(ARG_CLASS.getValue(cmdLine)); | public void execute( ParsedArguments cmdLine, InputStream in, PrintStream out, PrintStream err) throws Exception { final ClassLoader parent_cl = Thread.currentThread().getContextClassLoader(); JCClassLoader cl = new JCClassLoader(parent_cl, new String[]{"./"}); Class cls = cl.loadClass(ARG_CLASS... |
PageFormat() { | public PageFormat() { | PageFormat(){ this.paper = new Paper(); this.orientation = PORTRAIT;} |
clone() { | public Object clone() { | clone(){ try { return(super.clone()); } catch(CloneNotSupportedException e) { return(null); }} |
return(null); | return (null); } | clone(){ try { return(super.clone()); } catch(CloneNotSupportedException e) { return(null); }} |
} | clone(){ try { return(super.clone()); } catch(CloneNotSupportedException e) { return(null); }} | |
getHeight() { return(paper.getHeight()); } | public double getHeight() { return paper.getHeight(); } | getHeight(){ return(paper.getHeight());} |
{ return(paper.getImageableHeight()); } | { return paper.getImageableHeight(); } | public double getImageableHeight(){ return(paper.getImageableHeight());} |
getImageableWidth() { return(paper.getImageableWidth()); } | public double getImageableWidth() { return paper.getImageableWidth(); } | getImageableWidth(){ return(paper.getImageableWidth());} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.