bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public FSEntryIterator(INode iNode) { //this.iNode = iNode; lastBlockIndex = -1; blockIndex = 0; //the byte index where the directory parsing has reached index=0; //the Ext2DirectoryRecord that has been read last current = null; Ext2Debugger.debug("FSEntryIterator()",2); }
public FSEntryIterator(INode iNode) { //this.iNode = iNode; lastBlockIndex = -1; blockIndex = 0; //the byte index where the directory parsing has reached index=0; //the Ext2DirectoryRecord that has been read last current = null; log.debug("FSEntryIterator()"); }
207
public boolean hasNext() { Ext2Debugger.debug("FSEntryIterator.hasNext()",3); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translat...
public boolean hasNext() { log.debug("FSEntryIterator.hasNext()"); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translateToOffset( ...
208
public boolean hasNext() { Ext2Debugger.debug("FSEntryIterator.hasNext()",3); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translat...
public boolean hasNext() { Ext2Debugger.debug("FSEntryIterator.hasNext()",3); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translat...
209
public Object next() { Ext2Debugger.debug("FSEntryIterator.next()",2); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFi...
public Object next() { log.debug("FSEntryIterator.next()"); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem())...
210
public Iterator iterator() { Ext2Debugger.debug("Ext2Directory.Iterator()",2); return new FSEntryIterator(iNode); }
public Iterator iterator() { log.debug("Ext2Directory.Iterator()"); return new FSEntryIterator(iNode); }
211
public UnsupportedOperationException(String s) { super(s); }
public UnsupportedOperationException(String s) { super(s); }
212
public Object copyObject(Object obj, javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
public Object copyObject(Object obj, ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
213
public Object copyObject(Object obj, javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
public Object copyObject(Object obj, javax.rmi.ORB orb) throws RemoteException { if (obj instanceof String) return obj; else if (obj == null) return null; else if (obj instanceof String[] || obj instanceof String[][] || obj instanceof String[][][]) { return ((Object[]) obj).clone(); } else if (obj instanceof ...
214
public Object[] copyObjects(Object obj[], javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
public Object[] copyObjects(Object[] obj, ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
215
public Object[] copyObjects(Object obj[], javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
public Object[] copyObjects(Object obj[], javax.rmi.ORB orb) throws RemoteException { return (Object[]) copyObject(obj, orb); }
216
public ValueHandler createValueHandler() { throw new Error("Not implemented for UtilDelegate"); }
public ValueHandler createValueHandler() { if (m_ValueHandler == null) m_ValueHandler = (ValueHandler) DelegateFactory.getInstance(DelegateFactory.VALUEHANDLER); return m_ValueHandler; }
217
public String getCodebase(Class clz) { throw new Error("Not implemented for UtilDelegate"); }
public String getCodebase(Class clz) { return RMIClassLoader.getClassAnnotation(clz); }
218
public Tie getTie(Remote target) { throw new Error("Not implemented for UtilDelegate"); }
public Tie getTie(Remote target) { synchronized (m_Targets) { Tie tie; TieTargetRecord r = ((TieTargetRecord) m_Targets.get(target)); if (r == null) { if (target instanceof Stub) { tie = StubDelegateImpl.getTieFromStub(target); registerTarget(tie, target); } else { String tieClassName = getTieClassName(target.ge...
219
public boolean isLocal(Stub stub) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
public boolean isLocal(Stub stub) throws RemoteException { try { return stub._is_local(); } catch (SystemException e) { RemoteException rex = new RemoteException(); rex.initCause(e); throw rex; } }
220
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e...
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e...
221
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e...
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (Exception e) { thr...
222
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e...
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e...
223
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e...
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e...
224
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e...
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e...
225
public RemoteException mapSystemException(SystemException ex) { throw new Error("Not implemented for UtilDelegate"); }
public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; case CompletionStatus._COMPLETED_YES: status = "Yes"; ...
227
public Object readAny(InputStream in) { throw new Error("Not implemented for UtilDelegate"); }
public Object readAny(InputStream input) { throw new Error("Not implemented for UtilDelegate"); }
229
public Object readAny(InputStream in) { throw new Error("Not implemented for UtilDelegate"); }
public Object readAny(InputStream in) { return input.read_any(); }
230
public void registerTarget(Tie tie, Remote target) { throw new Error("Not implemented for UtilDelegate"); }
public void registerTarget(Tie tie, Remote target) { synchronized (m_Ties) { synchronized (m_Targets) { TieTargetRecord r = (TieTargetRecord) m_Ties.get(tie); if (r == null) { r = new TieTargetRecord(tie); m_Ties.put(tie, r); } if (target != null) { r.add(target); m_Targets.put(target, r); }
231
public void unexportObject(Remote target) { throw new Error("Not implemented for UtilDelegate"); }
public void unexportObject(Remote target) { synchronized (m_Ties) { synchronized (m_Targets) { TieTargetRecord r = ((TieTargetRecord) m_Targets.get(target)); if (r != null) { if (target instanceof org.omg.CORBA.Object) r.tie.orb().disconnect((org.omg.CORBA.Object) target); if (r.unused()) { m_Targets.remove(targ...
233
public RemoteException wrapException(Throwable orig) { throw new Error("Not implemented for UtilDelegate"); }
public RemoteException wrapException(Throwable ex) throws RuntimeException { throw new Error("Not implemented for UtilDelegate"); }
234
public RemoteException wrapException(Throwable orig) { throw new Error("Not implemented for UtilDelegate"); }
public RemoteException wrapException(Throwable orig) { if (ex instanceof RuntimeException) throw (RuntimeException) ex; else if (ex instanceof Error) return new ServerError(ex.getMessage(), (Error) ex); else if (ex instanceof RemoteException) return new ServerException(ex.getMessage(), (Exception) ex); else if (e...
235
public void writeAbstractObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
public void writeAbstractObject(OutputStream output, Object object) { throw new Error("Not implemented for UtilDelegate"); }
236
public void writeAbstractObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
public void writeAbstractObject(OutputStream out, Object obj) { ((org.omg.CORBA_2_3.portable.OutputStream) output).write_abstract_interface(object); }
237
public void writeAny(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
public void writeAny(OutputStream output, Object object) { throw new Error("Not implemented for UtilDelegate"); }
238
public void writeAny(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
public void writeAny(OutputStream out, Object obj) { Any any = output.orb().create_any(); if (object == null) { generalTypeCode t = new generalTypeCode(TCKind.tk_abstract_interface); t.setId("IDL:omg.org/CORBA/AbstractBase:1.0"); t.setName(""); any.type(t); output.write_any(any); return; } else if (object instanc...
239
public void writeRemoteObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
public void writeRemoteObject(OutputStream an_output, Object object) { throw new Error("Not implemented for UtilDelegate"); }
240
public void writeRemoteObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
public void writeRemoteObject(OutputStream out, Object obj) { org.omg.CORBA_2_3.portable.OutputStream output = (org.omg.CORBA_2_3.portable.OutputStream) an_output; if (object == null) an_output.write_Object(null); else if (isTieRequired(object)) { Class fc = getExportedInterface(object); exportTie(output, objec...
241
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rm...
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rm...
242
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rm...
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rm...
243
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rm...
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rm...
244
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rm...
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rm...
245
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { if(delegate != null) return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null"); }
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null"); }
246
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { if(delegate != null) return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null"); }
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { if(delegate != null) return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null"); }
247
public boolean startsWith(String prefix) { return regionMatches(false, 0, prefix, 0, prefix.count); }
public boolean startsWith(String prefix, int toffset) { return regionMatches(false, 0, prefix, 0, prefix.count); }
248
public boolean startsWith(String prefix) { return regionMatches(false, 0, prefix, 0, prefix.count); }
public boolean startsWith(String prefix) { return regionMatches(false, toffset, prefix, 0, prefix.count); }
249
void unexportObject(Remote target);
void unexportObject(Remote target) throws NoSuchObjectException;
250
javax.rmi.ORB orb();
ORB orb();
251
void deactivate();
void deactivate() throws NoSuchObjectException;
252
public static boolean insertWithHelper(Any into, Object object) { try { String helperClassName = object.getClass().getName() + "Helper"; Class helperClass = Class.forName(helperClassName); Method insert = helperClass.getMethod("insert", new Class[] { Any.class, object...
public static boolean insertWithHelper(Any into, Object object) { try { String helperClassName = object.getClass().getName() + "Helper"; Class helperClass = forName(helperClassName); Method insert = helperClass.getMethod("insert", new Class[] { Any.class, object.getCl...
253
public abstract void insert_Value(Serializable x);
public abstract void insert_Value(Serializable x, TypeCode typecode);
254
private void doAttributes() { SessionAttributes sa = new SessionAttributes(propFileName, defaultProps, (Frame)me.frame); sa.addPropertyChangeListener(screen); sa.addPropertyChangeListener(this); sa.showIt(); defaultP...
private void doAttributes() { SessionAttributes sa = new SessionAttributes(propFileName, defaultProps, (Frame)me.getParentView((Session)this)); sa.addPropertyChangeListener(screen); sa.addPropertyChangeListener(this); sa....
255
private void doMeTransfer() { XTFRFile xtrf = new XTFRFile(me.frame,vt); }
private void doMeTransfer() { XTFRFile xtrf = new XTFRFile(me.getParentView((Session)this),vt); }
256
private void mapMeKeys() { KeyConfigure kc; if (macros.isMacrosExist()) { String[] macrosList = macros.getMacroList(); kc = new KeyConfigure(me.frame,macrosList,vt.getCodePage()); } else kc = new KeyConfigure(me.frame,null,vt.getCodePage()); }
private void mapMeKeys() { KeyConfigure kc; if (macros.isMacrosExist()) { String[] macrosList = macros.getMacroList(); kc = new KeyConfigure(me.getParentView((Session)this),macrosList,vt.getCodePage()); } else kc = new KeyConfigure(me.frame,null,vt.getCodePage()); }
257
private void mapMeKeys() { KeyConfigure kc; if (macros.isMacrosExist()) { String[] macrosList = macros.getMacroList(); kc = new KeyConfigure(me.frame,macrosList,vt.getCodePage()); } else kc = new KeyConfigure(me.frame,null,vt.getCodePage()); }
private void mapMeKeys() { KeyConfigure kc; if (macros.isMacrosExist()) { String[] macrosList = macros.getMacroList(); kc = new KeyConfigure(me.frame,macrosList,vt.getCodePage()); } else kc = new KeyConfigure(me.getParentView((Session)this),null,vt.getCodePage()); }
258
private void sendScreenEMail() { SendEMailDialog semd = new SendEMailDialog(me.frame,screen); }
private void sendScreenEMail() { SendEMailDialog semd = new SendEMailDialog(me.getParentView((Session)this),screen); }
259
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g...
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g...
260
public String toLowerCase() { return toLowerCase(Locale.getDefault()); }
public String toLowerCase(Locale loc) { return toLowerCase(Locale.getDefault()); }
261
public String toLowerCase() { return toLowerCase(Locale.getDefault()); }
public String toLowerCase() { boolean turkish = "tr".equals(loc.getLanguage()); int i = count; int x = offset - 1; while (--i >= 0) { char ch = value[++x]; if ((turkish && ch == '\u0049') || ch != Character.toLowerCase(ch)) break; } if (i < 0) return this; char[] newStr = (char[]) value.clone(); do { char ch =...
262
public int indexOf(String str) { return indexOf(str, 0); }
public int indexOf(int ch) { return indexOf(str, 0); }
263
public int indexOf(String str) { return indexOf(str, 0); }
public int indexOf(String str) { return indexOf(ch, 0); }
264
public final static String getKeyStrokeText(KeyEvent ke,boolean isAltGr) { if (!workStroke.equals(ke,isAltGr)) { workStroke.setAttributes(ke,isAltGr); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic; }
public final static String getKeyStrokeText(KeyEvent ke,boolean isAltGr) { if (!workStroke.equals(ke,isAltGr)) { workStroke.setAttributes(ke,isAltGr); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic; }
265
private static String getURIGroup(Matcher match, int group) { String matched = match.group(group); return matched.length() == 0 ? ((match.group(group - 1).length() == 0) ? null : "") : matched; }
private static String getURIGroup(Matcher match, int group) { String matched = match.group(group); return matched.length() == 0 ? ((match.group(group - 1).length() == 0) ? null : "") : matched; }
267
public static String valueOf(int i) { // See Integer to understand why we call the two-arg variant. return Integer.toString(i, 10); }
public static String valueOf(Object obj) { // See Integer to understand why we call the two-arg variant. return Integer.toString(i, 10); }
268
public static String valueOf(int i) { // See Integer to understand why we call the two-arg variant. return Integer.toString(i, 10); }
public static String valueOf(int i) { // See Integer to understand why we call the two-arg variant. return obj == null ? "null" : obj.toString(); }
269
public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); i...
public void getBytes(int srcBegin, int srcEnd, byte dst[], int dstBegin) { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count));...
270
public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); i...
public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); i...
271
public InternalError(String s) { super(s); }
public InternalError(String s) { super(s); }
272
public synchronized int indexOf(String str, int fromIndex) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
public int indexOf(String str) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
273
public synchronized int indexOf(String str, int fromIndex) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
public synchronized int indexOf(String str, int fromIndex) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
274
public synchronized String substring(int beginIndex, int endIndex) { int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; // Don't copy unless substring is smaller than 1/4 of the ...
public String substring(int beginIndex) { int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; // Don't copy unless substring is smaller than 1/4 of the buffer. boolean share_bu...
275
public synchronized String substring(int beginIndex, int endIndex) { int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; // Don't copy unless substring is smaller than 1/4 of the ...
public synchronized String substring(int beginIndex, int endIndex) { int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; // Don't copy unless substring is smaller than 1/4 of the ...
276
public String(byte[] data, int offset, int count, String encoding) throws UnsupportedEncodingException { if (offset < 0 || count < 0 || offset + count > data.length) throw new StringIndexOutOfBoundsException(); try { CharsetDecoder csd = Charset.forName(encoding).newDecoder(); csd.onMalfor...
public String(byte[] data, int offset, int count, String encoding) throws UnsupportedEncodingException { if (offset < 0 || count < 0 || offset + count > data.length) throw new StringIndexOutOfBoundsException(); try { CharsetDecoder csd = Charset.forName(encoding).newDecoder(); csd.onMalfor...
277
public String(byte[] data, int offset, int count, String encoding) throws UnsupportedEncodingException { if (offset < 0 || count < 0 || offset + count > data.length) throw new StringIndexOutOfBoundsException(); try { CharsetDecoder csd = Charset.forName(encoding).newDecoder(); csd.onMalfor...
public String(byte[] data, int offset, int count, String encoding) throws UnsupportedEncodingException { if (offset < 0 || count < 0 || offset + count > data.length) throw new StringIndexOutOfBoundsException(); try { CharsetDecoder csd = Charset.forName(encoding).newDecoder(); csd.onMalfor...
278
public boolean isComponentPartOfCurrentMenu(Component c) { MenuElement[] subElements; for (int i = 0; i < selectedPath.size(); i++) { subElements = ((MenuElement) selectedPath.get(i)).getSubElements(); for (int j = 0; j < subElements.length; j++) { if ((subElements[j].getComponent()).e...
public boolean isComponentPartOfCurrentMenu(Component c) { MenuElement[] subElements; for (int i = 0; i < selectedPath.size(); i++) { subElements = ((MenuElement) selectedPath.get(i)).getSubElements(); for (int j = 0; j < subElements.length; j++) { MenuElement me = subElements[j]; if (...
279
int distance(Rectangle r, int x, int y) { if (y < r.y) return r.y - y; else if (y > r.y + r.height) return y - (r.y + r.height); else return 0; }
int distance(Rectangle r, int x, int y) { if (y < r.y) return r.y - y; else if (y > r.y + r.height) return y - (r.y + r.height); else return 0; }
280
public void setRect(Rectangle2D r) { setRect(r.getX(), r.getY(), r.getWidth(), r.getHeight()); }
public void setRect(Rectangle2D r) { setRect(r.getX(), r.getY(), r.getWidth(), r.getHeight()); }
281
public static void calculateAlignedPositions(int allocated, SizeRequirements total, SizeRequirements[] children, int[] offsets, int[] spans) { calculateTiledPositions(allocated...
public static void calculateAlignedPositions(int allocated, SizeRequirements total, SizeRequirements[] children, int[] offsets, int[] spans) { calculateAlignedPositions(allocat...
282
public void setDividerLocation(int location) { if (ui != null && location != getDividerLocation()) { int oldLocation = getDividerLocation(); ((SplitPaneUI) ui).setDividerLocation(this, location); firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location); } }
public void setDividerLocation(double proportionalLocation) { if (ui != null && location != getDividerLocation()) { int oldLocation = getDividerLocation(); ((SplitPaneUI) ui).setDividerLocation(this, location); firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location); } }
283
public void setDividerLocation(int location) { if (ui != null && location != getDividerLocation()) { int oldLocation = getDividerLocation(); ((SplitPaneUI) ui).setDividerLocation(this, location); firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location); } }
public void setDividerLocation(int location) { if (ui != null && location != getDividerLocation()) { int oldLocation = getDividerLocation(); ((SplitPaneUI) ui).setDividerLocation(this, location); firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location); } }
284
public PlainDatagramSocketImpl() { }
public PlainDatagramSocketImpl() throws IOException { }
285
protected synchronized void bind(int port, InetAddress addr) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
protected synchronized void bind(int port, InetAddress addr) throws SocketException { // @vm-specific no natives //TODO implement me try { impl.bind(new InetSocketAddress(addr, port)); } catch (SocketException se) { throw se; } catch (IOException ioe) { SocketException se = new SocketException(); s...
287
protected synchronized void close() { // @vm-specific no natives //TODO implement me throw new RuntimeException("Not implemented"); }
protected synchronized void close() { // @vm-specific no natives //TODO implement me throw new RuntimeException("Not implemented"); }
288
protected synchronized void create() throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
protected synchronized void create() throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
289
public synchronized Object getOption(int option_id) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
public synchronized Object getOption(int option_id) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
290
protected synchronized int getTimeToLive() throws IOException { Object obj = getOption(IP_TTL); if (! (obj instanceof Integer)) throw new IOException("Internal Error"); return ((Integer) obj).intValue(); }
protected synchronized int getTimeToLive() throws IOException { Object obj = getOption(IP_TTL); if (! (obj instanceof Integer)) throw new IOException("Internal Error"); return ((Integer) obj).intValue(); }
291
protected synchronized void join(InetAddress addr) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
protected synchronized void join(InetAddress addr) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
292
public void joinGroup(SocketAddress address, NetworkInterface netIf) { throw new InternalError ("PlainDatagramSocketImpl::joinGroup is not implemented"); }
public void joinGroup(SocketAddress address, NetworkInterface netIf) { throw new InternalError ("PlainDatagramSocketImpl::joinGroup is not implemented"); }
293
protected synchronized void leave(InetAddress addr) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
protected synchronized void leave(InetAddress addr) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
294
public void leaveGroup(SocketAddress address, NetworkInterface netIf) { throw new InternalError ("PlainDatagramSocketImpl::leaveGroup is not implemented"); }
public void leaveGroup(SocketAddress address, NetworkInterface netIf) { throw new InternalError ("PlainDatagramSocketImpl::leaveGroup is not implemented"); }
295
protected void receive(DatagramPacket packet) throws IOException { synchronized(RECEIVE_LOCK) { receive0(packet); } }
protected void receive(DatagramPacket packet) throws IOException { synchronized(RECEIVE_LOCK) { receive0(packet); } }
296
protected void send(DatagramPacket packet) throws IOException { synchronized(SEND_LOCK) { sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); } }
protected void send(DatagramPacket packet) throws IOException { synchronized(SEND_LOCK) { sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); } }
297
public synchronized void setOption(int option_id, Object val) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
public synchronized void setOption(int option_id, Object val) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
298
protected synchronized void setTimeToLive(int ttl) throws IOException { setOption(IP_TTL, new Integer(ttl)); }
protected synchronized void setTimeToLive(int ttl) throws IOException { impl.setTimeToLive(ttl); }
299
public NullPointerException() { super(); }
public NullPointerException() { super(); }
300
public void setSocketAddress(SocketAddress address) throws IllegalArgumentException { if (address == null) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress) address; this.address = tmp.getAddress(); this.port = tmp.getPort(); }
public void setSocketAddress(SocketAddress address) throws IllegalArgumentException { if (address == null) throw new IllegalArgumentException("address may not be null"); InetSocketAddress tmp = (InetSocketAddress) address; this.address = tmp.getAddress(); this.port = tmp.getPort(); }
301
public Action[] getActions () { throw new InternalError ("not implemented"); }
public Action[] getActions () { return super.getActions(); }
303
protected void processFocusEvent (FocusEvent evt) { throw new InternalError ("not implemented"); }
protected void processFocusEvent (FocusEvent evt) { super.processFocusEvent(evt); }
304
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
305
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...
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...
307
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...
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...
308
public static Border getTextFieldBorder() { if (textFieldBorder == null) textFieldBorder = new TextFieldBorder(); return textFieldBorder; }
public static Border getTextFieldBorder() { if (textFieldBorder == null) { Border inner = getMarginBorder(); Border outer = new TextFieldBorder(); textFieldBorder = new BorderUIResource.CompoundBorderUIResource(outer, inner); } return textFieldBorder; }
309
public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } ret...
public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } ret...
310
public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } ret...
public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } ret...
311
public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = editingIcon.getIconWidth(); else eOffset = 0; Rectangle bounds = getBounds(); Com...
public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = editingIcon.getIconWidth(); else eOffset = 0; Rectangle bounds = getBounds(); Com...
312
public void paint(Graphics g) { if (editingIcon != null) { // From the previous version, the left margin is taken as half // of the icon width. editingIcon.paintIcon(this, g, 0, 0); } super.paint(g); }
public void paint(Graphics g) { if (editingIcon != null) { // From the previous version, the left margin is taken as half // of the icon width. int y = Math.max(0, (getHeight() - editingIcon.getIconHeight()) / 2); editingIcon.paintIcon(this, g, 0, y); } Color c = g...
313