bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static NameComponent[] extract(Any a) { try { return ((NameHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Name expected"); } }
public static NameComponent[] extract(Any a) { try { return ((NameHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Name expected"); bad.initCause(ex); throw bad; } }
18,964
final synchronized IRQResource claimResources(ResourceOwner owner, int irq) throws DriverException { try { final ResourceManager rm; try { rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); } catch (NameNotFoundException ex) { throw new DriverException("Cannot find ResourceManager: ", ex);...
final synchronized IRQResource claimResources(ResourceOwner owner, int irq) throws DriverException { try { final ResourceManager rm; try { rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); } catch (NameNotFoundException ex) { throw new DriverException("Cannot find ResourceManager: ", ex);...
18,965
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { metrics = g.getFontMetrics(); // FIXME: Selected text are not drawn yet. Element line = getElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset()); //drawSelectedText(g, , , , ); } ...
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { metrics = g.getFontMetrics(); // FIXME: Selected text are not drawn yet. Element line = getElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset() - 1); //drawSelectedText(g, , , , ); ...
18,976
public abstract void setResizable(boolean resizable);
void setResizable(boolean resizable);
18,977
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAPrivateKey)) { return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
public boolean equals(Object obj) if (obj == null) return false; } if (!(obj instanceof DSAPrivateKey)) return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
18,978
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAPrivateKey)) { return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAPrivateKey)) { return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
18,979
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAPrivateKey)) { return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
public boolean equals(Object obj) { if (obj == null) { return false; if (!(obj instanceof DSAPrivateKey)) { return false; DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX());
18,980
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("x=0x").append(DEBUG ? x.toString(16) : "**...*").appen...
public String toString() { if (str == null) { String ls = (String) AccessController.doPrivileged (new GetPropertyAction("line.separator")); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("x=0x").append(DEBUG ...
18,981
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("x=0x").append(DEBUG ? x.toString(16) : "**...*").appen...
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("x=0x").append(DEBUG ? x.toString(16) : "**...*").appen...
18,982
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.insertString(getBypass(), offset, text, attributes); else insertStringImpl(offset, text, attributes); }
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { if (text == null || text.length() == 0) return; if (documentFilter == null) insertStringImpl(offset, text, attributes); else documentFilter.insertString(getBypass(), offset, text, attributes); else...
18,983
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.insertString(getBypass(), offset, text, attributes); else insertStringImpl(offset, text, attributes); }
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.insertString(getBypass(), offset, text, attributes); else insertStringImpl(offset, text, attributes); }
18,984
public void remove(int offset, int length) throws BadLocationException { if (documentFilter != null) documentFilter.remove(getBypass(), offset, length); else removeImpl(offset, length); }
public void remove(int offset, int length) throws BadLocationException { if (documentFilter == null) removeImpl(offset, length); else documentFilter.remove(getBypass(), offset, length); else removeImpl(offset, length); }
18,985
public void remove(int offset, int length) throws BadLocationException { if (documentFilter != null) documentFilter.remove(getBypass(), offset, length); else removeImpl(offset, length); }
public void remove(int offset, int length) throws BadLocationException { if (documentFilter != null) documentFilter.remove(getBypass(), offset, length); else removeImpl(offset, length); }
18,986
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.replace(getBypass(), offset, length, text, attributes); else replaceImpl(offset, length, text, attributes); }
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { if (length == 0 && (text == null || text.length() == 0)) return; if (documentFilter == null) { remove(offset, length); insertString(offset, text, attributes); } else documentFilter...
18,988
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.replace(getBypass(), offset, length, text, attributes); else replaceImpl(offset, length, text, attributes); }
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.replace(getBypass(), offset, length, text, attributes); else replaceImpl(offset, length, text, attributes); }
18,989
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalLabelUI(); return instance; }
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalLabelUI(); return instance; }
18,990
public Signature(String signature, AbstractVmClassLoader loader) throws ClassNotFoundException { this.signature = signature; this.parts = split(signature.toCharArray(), loader); }
public Signature(String signature, VmClassLoader loader) throws ClassNotFoundException { this.signature = signature; this.parts = split(signature.toCharArray(), loader); }
18,994
private VmType[] split(char[] signature, AbstractVmClassLoader loader) throws ClassNotFoundException { ArrayList list = new ArrayList(); int ofs = 0; final int len = signature.length; if (signature[ofs] == '(') { ofs++; } while (ofs < len) { int start = ofs; char ch = signature[ofs++]; VmType vmClass; ...
private VmType[] split(char[] signature, VmClassLoader loader) throws ClassNotFoundException { ArrayList list = new ArrayList(); int ofs = 0; final int len = signature.length; if (signature[ofs] == '(') { ofs++; } while (ofs < len) { int start = ofs; char ch = signature[ofs++]; VmType vmClass; switch ...
18,995
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c);
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c);
18,997
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (r...
18,998
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
18,999
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
19,000
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInv...
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInv...
19,001
public void update(Observable observable, Object arg);
void update(Observable observable, Object arg);
19,003
public short[] getData(int bank) { return bankData[bank]; }
public short[] getData() { return bankData[bank]; }
19,004
public short[] getData(int bank) { return bankData[bank]; }
public short[] getData(int bank) { return data; }
19,005
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); for (int i = 0; i < count; i++) { View child = getView(i); forwardUpdateToView(child, ev, shape, vf); } }
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { View child = getView(i); forwardUpdateToView(child, ev, shape, vf); } }
19,006
public float getMaximumSpan(int axis) { if (getResizeWeight(axis) <= 0) return getPreferredSpan(axis); return Integer.MAX_VALUE; }
public float getMaximumSpan(int axis) { if (getResizeWeight(axis) <= 0) return getPreferredSpan(axis); return Integer.MAX_VALUE; }
19,008
public float getMinimumSpan(int axis) { if (getResizeWeight(axis) <= 0) return getPreferredSpan(axis); return Integer.MAX_VALUE; }
public float getMinimumSpan(int axis) { if (getResizeWeight(axis) <= 0) return getPreferredSpan(axis); return Integer.MAX_VALUE; }
19,009
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, Integer.valueOf(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPair...
19,010
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
public void initialize(int keysize, SecureRandom random) HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGenera...
19,011
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); attributes.put(RSAKeyPairGener...
19,012
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
19,013
public static Throwable systemException(int nr, int address) throws PragmaUninterruptible, PragmaLoadStatics, PragmaPrivilegedAction { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); //Unsafe.die(); //Unsafe.debug(nr); Unsafe.debug(address); final String hexAddress = NumberU...
public static Throwable systemException(int nr, int address) throws PragmaUninterruptible, PragmaLoadStatics, PragmaPrivilegedAction { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); //Unsafe.die(); //Unsafe.debug(nr); Unsafe.debug(address); final String hexAddress = NumberU...
19,014
public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { Component parent = findParent(component); if (parent == null) ...
public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { Component parent = findParent(component); if (parent == null) ...
19,015
public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { Component parent = findParent(component); if (parent == null) ...
public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { Component parent = findParent(component); if (parent == null) ...
19,016
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
19,017
private void patchNext (Recognizer theNext, Hashtable table) { // backpointers must not be repatched or followed if ((flags & F_LOOPNEXT) != 0) return; // XXX this table "shouldn't" be needed, right? // but some choice nodes looped if it isn't there. if (table != null && table.get (this) != null) ...
private void patchNext (Recognizer theNext, Hashtable table) { // backpointers must not be repatched or followed if ((flags & F_LOOPNEXT) != 0) return; // XXX this table "shouldn't" be needed, right? // but some choice nodes looped if it isn't there. if (table != null && table.get (this) != null) ...
19,018
public static boolean isUnicodeIdentifierStart(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << LETTER_NUMBER)...
public static boolean isUnicodeIdentifierStart(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << LETTER_NUMBER)...
19,019
public static boolean isUnicodeIdentifierPart(char ch) { int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) ...
public static boolean isUnicodeIdentifierPart(char ch) { int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) ...
19,020
public Dimension getExtentSize() { if (extentSize == null) return getPreferredSize(); else return extentSize; }
public Dimension getExtentSize() { if (extentSize == null) return toViewCoordinates(getSize()); else return extentSize; }
19,021
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
19,022
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
19,023
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
19,024
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
19,025
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
19,026
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
19,027
public void freeBlock(long blockNr) throws FileSystemException, IOException{ if(blockNr<0 || blockNr>=superblock.getBlocksCount()) throw new FileSystemException("Attempt to free nonexisting block ("+blockNr+")"); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); GroupDescriptor gde...
public void freeBlock(long blockNr) throws FileSystemException, IOException{ if(blockNr<0 || blockNr>=superblock.getBlocksCount()) throw new FileSystemException("Attempt to free nonexisting block ("+blockNr+")"); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); GroupDescriptor gde...
19,028
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
19,030
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
19,031
public BlockCache(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor, true); cacheListeners = new Vector(); }
public BlockCache(int initialCapacity, float loadFactor) { super(Math.min(MAX_SIZE, initialCapacity), loadFactor, true); cacheListeners = new Vector(); }
19,032
protected long getINodeNr() { return desc.getINodeNr(); }
protected int getINodeNr() { return desc.getINodeNr(); }
19,034
public VmClassType( String name, VmNormalClass superClass, AbstractVmClassLoader loader, boolean primitive, int typeSize) { super(name, superClass, loader, primitive, typeSize); }
public VmClassType( String name, VmNormalClass superClass, AbstractVmClassLoader loader, boolean primitive, int typeSize) { super(name, superClass, loader, primitive, typeSize); }
19,035
private void startTimer() { timer.schedule(task = new TimerTask() { Calendar calendar = new GregorianCalendar(); public void run() { calendar.setTimeInMillis(System.currentTimeMillis()); int h = calendar.get(Calendar.HOUR_OF_DAY); ...
private void startTimer() { timer.schedule(task = new TimerTask() { Calendar calendar = new GregorianCalendar(); public void run() { calendar.setTimeInMillis(System.currentTimeMillis()); int h = calendar.get(Calendar.HOUR_OF_DAY); ...
19,036
public void run() { calendar.setTimeInMillis(System.currentTimeMillis()); int h = calendar.get(Calendar.HOUR_OF_DAY); int m = calendar.get(Calendar.MINUTE); setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m); ...
public void run() { calendar.setTimeInMillis(System.currentTimeMillis()); int h = calendar.get(Calendar.HOUR_OF_DAY); int m = calendar.get(Calendar.MINUTE); setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m); ...
19,037
public Timer(boolean daemon) { this(daemon, Thread.NORM_PRIORITY); }
public Timer() { this(daemon, Thread.NORM_PRIORITY); }
19,038
public Timer(boolean daemon) { this(daemon, Thread.NORM_PRIORITY); }
public Timer(boolean daemon) { this(false); }
19,039
protected void setKeystorePasswordParam(String password) throws IOException, UnsupportedCallbackException { if (password != null) storePasswordChars = password.toCharArray(); else // ask the user to provide one { String prompt = Messages.getString("Command.24"); //$NON-NLS-1$ Passw...
private void setKeystorePasswordParam(String password) throws IOException, UnsupportedCallbackException { if (password != null) storePasswordChars = password.toCharArray(); else // ask the user to provide one { String prompt = Messages.getString("Command.24"); //$NON-NLS-1$ Passwor...
19,042
protected void setKeystoreTypeParam(String type) { log.finest("setKeystoreTypeParam(" + type + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (type == null || type.trim().length() == 0) storeType = KeyStore.getDefaultType(); else storeType = type.trim(); }
private void setKeystoreTypeParam(String type) { log.finest("setKeystoreTypeParam(" + type + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (type == null || type.trim().length() == 0) storeType = KeyStore.getDefaultType(); else storeType = type.trim(); }
19,043
protected void setKeystoreTypeParam(String type) { log.finest("setKeystoreTypeParam(" + type + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (type == null || type.trim().length() == 0) storeType = KeyStore.getDefaultType(); else storeType = type.trim(); }
protected void setKeystoreTypeParam(String type) { if (Configuration.DEBUG) log.fine("setKeystoreTypeParam(" + type + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (type == null || type.trim().length() == 0) storeType = KeyStore.getDefaultType(); else storeType = type.trim(); }
19,044
protected void setKeystoreURLParam(String url) throws IOException, KeyStoreException, UnsupportedCallbackException, NoSuchAlgorithmException, CertificateException { log.finest("setKeystoreURLParam(" + url + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (url == null || url.trim().length() == 0) { S...
private void setKeystoreURLParam(boolean createIfNotFound, String url, String password) throws IOException, KeyStoreException, UnsupportedCallbackException, NoSuchAlgorithmException, CertificateException { log.finest("setKeystoreURLParam(" + url + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (url == null || ...
19,045
protected void setKeystoreURLParam(String url) throws IOException, KeyStoreException, UnsupportedCallbackException, NoSuchAlgorithmException, CertificateException { log.finest("setKeystoreURLParam(" + url + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (url == null || url.trim().length() == 0) { S...
protected void setKeystoreURLParam(String url) throws IOException, KeyStoreException, UnsupportedCallbackException, NoSuchAlgorithmException, CertificateException { if (Configuration.DEBUG) log.fine("setKeystoreURLParam(" + url + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (url == null || url.trim().length(...
19,046
protected void setProviderClassNameParam(String className) { log.finest("setProviderClassNameParam(" + className + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (className != null && className.trim().length() > 0) { className = className.trim(); SecurityProviderInfo spi = ProviderUtil.addProvider(cla...
private void setProviderClassNameParam(String className) { log.finest("setProviderClassNameParam(" + className + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (className != null && className.trim().length() > 0) { className = className.trim(); SecurityProviderInfo spi = ProviderUtil.addProvider(class...
19,050
protected void setProviderClassNameParam(String className) { log.finest("setProviderClassNameParam(" + className + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (className != null && className.trim().length() > 0) { className = className.trim(); SecurityProviderInfo spi = ProviderUtil.addProvider(cla...
protected void setProviderClassNameParam(String className) { if (Configuration.DEBUG) log.fine("setProviderClassNameParam(" + className + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (className != null && className.trim().length() > 0) { className = className.trim(); SecurityProviderInfo spi = Provi...
19,051
public void addShutdownHook(Thread hook) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkPermission(new RuntimePermission("shutdownHooks")); if (hook.isAlive() || hook.getThreadGroup() == null) throw new IllegalArgumentException("The hook thread " + hook + " must...
public void addShutdownHook(Thread hook) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkPermission(new RuntimePermission("shutdownHooks")); if (hook.isAlive() || hook.getThreadGroup() == null) throw new IllegalArgumentException("The hook thread " + hook ...
19,054
public boolean removeShutdownHook(Thread hook) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkPermission(new RuntimePermission("shutdownHooks")); synchronized (libpath) { if (exitSequence != null) throw new IllegalStateException(); if (shu...
public boolean removeShutdownHook(Thread hook) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkPermission(new RuntimePermission("shutdownHooks")); synchronized (libpath) { if (exitSequence != null) throw new IllegalStateException(); ...
19,056
public boolean equals(final Object obj) { if (obj == null) { return false; } if (obj instanceof RSAPrivateKey) { final RSAPrivateKey that = (RSAPrivateKey) obj; return super.equals(that) && d.equals(that.getPrivateExponent()); } if (obj instanceof RSAPrivateCrtKey) ...
public boolean equals(final Object obj) if (obj == null) return false; } if (obj instanceof RSAPrivateKey) final RSAPrivateKey that = (RSAPrivateKey) obj; return super.equals(that) && d.equals(that.getPrivateExponent()); } if (obj instanceof RSAPrivateCrtKey) ...
19,057
public boolean equals(final Object obj) { if (obj == null) { return false; } if (obj instanceof RSAPrivateKey) { final RSAPrivateKey that = (RSAPrivateKey) obj; return super.equals(that) && d.equals(that.getPrivateExponent()); } if (obj instanceof RSAPrivateCrtKey) ...
public boolean equals(final Object obj) { if (obj == null) { return false; if (obj instanceof RSAPrivateKey) { final RSAPrivateKey that = (RSAPrivateKey) obj; return super.equals(that) && d.equals(that.getPrivateExponent()); if (obj instanceof RSAPrivateCrtKey) ...
19,058
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("d=0x").append(DEBUG ? d.toString(16) : "**...*...
public String toString() { if (str == null) { String ls = (String) AccessController.doPrivileged (new GetPropertyAction("line.separator")); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("d=0x").appen...
19,059
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("d=0x").append(DEBUG ? d.toString(16) : "**...*...
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("d=0x").append(DEBUG ? d.toString(16) : "**...*...
19,060
public final Class getCategory() { return PagesPerMinute.class; }
public Class getCategory() { return PagesPerMinute.class; }
19,061
public final String getName() { return "pages-per-minute"; }
public String getName() { return "pages-per-minute"; }
19,062
TableTextField() { setBorder(null); }
TableTextField() { setBorder(BorderFactory.createLineBorder(getGridColor(), 2)); }
19,064
public void scrollRectToVisible(Rectangle r) { // In private class we known that the rectangle data will not be // reused and we need not to clone it. r.translate(getX(), getY()); super.scrollRectToVisible(r); }
public void scrollRectToVisible(Rectangle r) { // In private class we known that the rectangle data will not be // reused and we need not to clone it. r.translate(getX(), getY()); super.scrollRectToVisible(r); }
19,065
private void moveToCellBeingEdited(Component component) { Rectangle r = getCellRect(editingRow, editingColumn, true); // Place the text field so that it would not touch the table // border. // TODO Figure out while 5 and which constant should here be. int xOffset = 5; r.x+=xOffset; r...
private void moveToCellBeingEdited(Component component) { Rectangle r = getCellRect(editingRow, editingColumn, true); // Place the text field so that it would not touch the table // border. // TODO Figure out while 5 and which constant should here be. int xOffset = 5; r.x+=xOffset; r...
19,066
public void updateUI() { setUI((TableUI) UIManager.getUI(this)); revalidate(); repaint(); }
public void updateUI() { setUI((TableUI) UIManager.getUI(this)); revalidate(); repaint(); }
19,067
static Applet createApplet(AppletTag tag) { Applet applet = null; try { ClassLoader loader = getClassLoader(tag.prependCodeBase(""), tag.getArchives()); String code = tag.getCode(); if (code.endsWith(".class")) code = code.substring(...
static Applet createApplet(AppletTag tag) { Applet applet = null; try { ClassLoader loader = getClassLoader(tag.prependCodeBase(""), tag.getArchives()); String code = tag.getCode(); if (code.endsWith(".class")) code = code.substring(...
19,068
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader(Messages.getString("Main.Usage")); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages.getString ...
19,069
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup(Messages.getString("Main.AppletTagOptions")); attributeGroup.add(new Optio...
19,070
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,071
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,072
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,073
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,074
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,075
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,076
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,077
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,078
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,079
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,080
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,081
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,082
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,083
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
19,084
static void printArguments(String[] args) { if (verbose) { System.out.println("raw arguments:"); for (int i = 0; i < args.length; i++) System.out.println(" " + args[i]); } }
static void printArguments(String[] args) { if (verbose) { System.out.println(Messages.getString("Main.RawArguments")); for (int i = 0; i < args.length; i++) System.out.println(" " + args[i]); } }
19,085
public int rowAtPoint(Point point) { if (point != null) { int y0 = getLocation().y; int nrows = getRowCount(); Dimension gap = getIntercellSpacing(); int height = getRowHeight() + (gap == null ? 0 : gap.height); int y = point.y; for (int i = 0; i < nrows; ++i) ...
public int rowAtPoint(Point point) { if (point != null) { int y0 = getLocation().y; int nrows = getRowCount(); Dimension gap = getIntercellSpacing(); int height = getRowHeight() + (gap == null ? 0 : gap.height); int y = point.y; for (int i = 0; i < nrows; ++i) ...
19,086
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalInternalFrameUI((JInternalFrame) component); return instance; }
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalInternalFrameUI instance; if (o == null) { instance = new MetalInternalFrameUI((JInternalFrame) component); return instance; }
19,088
protected AccessibleJDesktopPane(JDesktopPane component) { super(component); // TODO } // AccessibleJDesktopPane()
protected AccessibleJDesktopPane(JDesktopPane component) { super(component); // TODO } // AccessibleJDesktopPane()
19,090
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJDesktopPane(this); } // if return accessibleContext; } // getAccessibleContext()
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJDesktopPane(this); } // if return accessibleContext; } // getAccessibleContext()
19,091
public JInternalFrame[] getAllFrames() { return null; // TODO } // getAllFrames()
public JInternalFrame[] getAllFrames() { return null; // TODO } // getAllFrames()
19,092
public JInternalFrame[] getAllFramesInLayer(int layer) { return null; // TODO } // getAllFramesInLayer()
public JInternalFrame[] getAllFramesInLayer(int layer) { return null; // TODO } // getAllFramesInLayer()
19,093