bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected GnuDHKey(BigInteger q, BigInteger p, BigInteger g) { super(); this.q = q; this.p = p; this.g = g; }
protected GnuDHKey(int defaultFormat, BigInteger q, BigInteger p, BigInteger g) { super(); this.q = q; this.p = p; this.g = g; }
17,838
protected VmThread(VmIsolatedStatics isolatedStatics, int slotSize) { this.threadState = RUNNING; this.stackSize = DEFAULT_STACK_SLOTS * slotSize; this.id = (1 << ObjectFlags.THREAD_ID_SHIFT); this.name = "BootThread"; MonitorManager.testThreadId(this.id); this.isolatedStat...
protected VmThread(VmIsolatedStatics isolatedStatics, int slotSize) { this.threadState = RUNNING; this.stackSize = DEFAULT_STACK_SLOTS * slotSize; this.id = (1 << ObjectFlags.THREAD_ID_SHIFT); MonitorManager.testThreadId(this.id); this.isolatedStatics = isolatedStatics; ...
17,840
private final void doStop() { final VmProcessor proc = VmMagic.currentProcessor(); final VmThread current = proc.getCurrentThread(); proc.getScheduler().unregisterThread(this); // Go into low level stuff proc.disableReschedule(true, null); this.threadState = STOPPED; ...
private final void doStop() { final VmProcessor proc = VmMagic.currentProcessor(); final VmThread current = proc.getCurrentThread(); proc.getScheduler().unregisterThread(this); // Go into low level stuff proc.disableReschedule(true); this.threadState = STOPPED; if (c...
17,841
private final void doStop() { final VmProcessor proc = VmMagic.currentProcessor(); final VmThread current = proc.getCurrentThread(); proc.getScheduler().unregisterThread(this); // Go into low level stuff proc.disableReschedule(true, null); this.threadState = STOPPED; ...
private final void doStop() { final VmProcessor proc = VmMagic.currentProcessor(); final VmThread current = proc.getCurrentThread(); proc.getScheduler().unregisterThread(this); // Go into low level stuff proc.disableReschedule(true, null); this.threadState = STOPPED; ...
17,842
private final void doStop() { final VmProcessor proc = VmMagic.currentProcessor(); final VmThread current = proc.getCurrentThread(); proc.getScheduler().unregisterThread(this); // Go into low level stuff proc.disableReschedule(true, null); this.threadState = STOPPED; ...
private final void doStop() { final VmProcessor proc = VmMagic.currentProcessor(); final VmThread current = proc.getCurrentThread(); proc.getScheduler().unregisterThread(this); // Go into low level stuff proc.disableReschedule(true, null); this.threadState = STOPPED; ...
17,843
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
17,844
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
17,845
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
17,846
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
17,847
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
17,848
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
17,849
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i...
17,850
public final void resume() { checkAccess(); if (threadState != SUSPENDED) { throw new IllegalThreadStateException("Not suspended"); } else { final VmProcessor proc = VmProcessor.current(); threadState = RUNNING; // FIXME make multi cpu safe ...
public final void resume() { checkAccess(); if (threadState != SUSPENDED) { throw new IllegalThreadStateException("Not suspended"); } else { final VmProcessor proc = VmProcessor.current(); threadState = RUNNING; // FIXME make multi cpu safe ...
17,851
public final void sleep(long millis, int nanos) throws InterruptedException { if (currentThread() != this) { return; } if (threadState != RUNNING) { return; } // Test interrupted status if (this.interrupted) { this.interrupted = false; ...
public final void sleep(long millis, int nanos) throws InterruptedException { if (currentThread() != this) { return; } if (threadState != RUNNING) { return; } // Test interrupted status if (this.interrupted) { this.interrupted = false; ...
17,852
public final void start() { switch (threadState) { case CREATED: { // Screen.debug("thread.start"); final VmScheduler scheduler = VmMagic.currentProcessor() .getScheduler(); stack = VmSystem.allocStack(stackSize); Unsafe.initThread(this, s...
public final void start() { switch (threadState) { case CREATED: { // Screen.debug("thread.start"); final VmScheduler scheduler = VmMagic.currentProcessor() .getScheduler(); stack = VmSystem.allocStack(stackSize); Unsafe.initThread(this, s...
17,853
final void unsecureResume() { final VmProcessor proc = VmMagic.currentProcessor(); if (threadState == SUSPENDED) { threadState = RUNNING; // FIXME make multi cpu safe proc.getScheduler().addToReadyQueue(this, false); } }
final void unsecureResume() { final VmProcessor proc = VmMagic.currentProcessor(); if (threadState == SUSPENDED) { threadState = RUNNING; // FIXME make multi cpu safe proc.getScheduler().addToReadyQueue(this, false, "thread.unsecureResume"); } }
17,854
final void unsecureSuspend() { if (threadState != RUNNING) { throw new IllegalThreadStateException("Not running"); } else { final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); this.threadState = SUSPENDED; proc...
final void unsecureSuspend() { if (threadState != RUNNING) { throw new IllegalThreadStateException("Not running"); } else { final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true); this.threadState = SUSPENDED; proc.suspe...
17,855
final void unsecureSuspend() { if (threadState != RUNNING) { throw new IllegalThreadStateException("Not running"); } else { final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); this.threadState = SUSPENDED; proc...
final void unsecureSuspend() { if (threadState != RUNNING) { throw new IllegalThreadStateException("Not running"); } else { final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); this.threadState = SUSPENDED; proc...
17,856
public static void yield() { VmProcessor.current().yield(); }
public static void yield() { VmProcessor.current().yield(false); }
17,858
final void registerThread(VmThread thread) { if (Vm.isWritingImage()) { allThreadsQueue.add(thread); } else { allThreadsLock.lock(); try { allThreadsQueue.add(thread); } finally { allThreadsLock.unlock(); } } ...
final void registerThread(VmThread thread) { if (Vm.isWritingImage()) { allThreadsQueue.add(thread, "Vm"); } else { allThreadsLock.lock(); try { allThreadsQueue.add(thread, "Vm"); } finally { allThreadsLock.unlock(); ...
17,859
public void updateUI() { setUI((OptionPaneUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((OptionPaneUI) UIManager.getUI(this)); }
17,860
public JInternalFrame(String title) { this(title, false, false, false, false); }
public JInternalFrame() { this(title, false, false, false, false); }
17,861
public JInternalFrame(String title) { this(title, false, false, false, false); }
public JInternalFrame(String title) { this(null, false, false, false, false); }
17,862
public void pack() { try { if (isIcon()) setIcon(false); else if (isMaximum()) setMaximum(false); } catch (PropertyVetoException e) { // Do nothing if they don't want to be restored first. } doLayout(); }
public void pack() { try { if (isIcon()) setIcon(false); else if (isMaximum()) setMaximum(false); } catch (PropertyVetoException e) { // Do nothing if they don't want to be restored first. } setSize(getPreferredSize()); }
17,863
protected Border createNonRolloverBorder() { return new EtchedBorder(); }
protected Border createNonRolloverBorder() { Border b = UIManager.getBorder("ToolBar.nonrolloverBorder"); if (b == null) { b = new CompoundBorder( new ButtonBorder(UIManager.getColor("Button.shadow"), UIManager.getColor("Button.darkShadow"), UIManager.getColor("Button.light"), UIManager.getColor("Button.highligh...
17,886
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); wri...
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); wri...
17,888
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); wri...
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); wri...
17,889
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (en...
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (en...
17,890
public void setComment(String comment) { byte[] commentBytes; commentBytes = comment.getBytes(); if (commentBytes.length > 0xffff) throw new IllegalArgumentException("Comment too long."); zipComment = commentBytes; }
public void setComment(String comment) { byte[] commentBytes; try { commentBytes = comment.getBytes("UTF-8"); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } if (commentBytes.length > 0xffff) throw new IllegalArgumentException("Comment too long."); zipComment = commentBytes; }
17,891
public long getTime() { if ((known & KNOWN_TIME) == 0) return -1; // The extra bytes might contain the time (posix/unix extension) parseExtra (); int sec = 2 * (dostime & 0x1f); int min = (dostime >> 5) & 0x3f; int hrs = (dostime >> 11) & 0x1f; int day = (dostime >> 16) & 0x1f; int mon = ((dostime >> 2...
public long getTime() { if ((known & KNOWN_TIME) == 0) return -1; // The extra bytes might contain the time (posix/unix extension) int sec = 2 * (dostime & 0x1f); int min = (dostime >> 5) & 0x3f; int hrs = (dostime >> 11) & 0x1f; int day = (dostime >> 16) & 0x1f; int mon = ((dostime >> 21) & 0xf) - 1;...
17,892
public long getTime() { if ((known & KNOWN_TIME) == 0) return -1; // The extra bytes might contain the time (posix/unix extension) parseExtra (); int sec = 2 * (dostime & 0x1f); int min = (dostime >> 5) & 0x3f; int hrs = (dostime >> 11) & 0x1f; int day = (dostime >> 16) & 0x1f; int mon = ((dostime >> 2...
public long getTime() { if ((known & KNOWN_TIME) == 0) return -1; // The extra bytes might contain the time (posix/unix extension) parseExtra (); int sec = 2 * (dostime & 0x1f); int min = (dostime >> 5) & 0x3f; int hrs = (dostime >> 11) & 0x1f; int day = (dostime >> 16) & 0x1f; int mon = ((dostime >> 2...
17,893
public void setTime(long time) { Calendar cal = getCalendar(); synchronized (cal) { cal.setTime(new Date(time)); dostime = (cal.get(Calendar.YEAR) - 1980 & 0x7f) << 25 | (cal.get(Calendar.MONTH) + 1) << 21 | (cal.get(Calendar.DAY_OF_MONTH)) << 16 | (cal.get(Calendar.HOUR_OF_DAY)) << 11 | (cal.get(Ca...
public void setTime(long time) { Calendar cal = getCalendar(); synchronized (cal) { cal.setTimeInMillis(time); dostime = (cal.get(Calendar.YEAR) - 1980 & 0x7f) << 25 | (cal.get(Calendar.MONTH) + 1) << 21 | (cal.get(Calendar.DAY_OF_MONTH)) << 16 | (cal.get(Calendar.HOUR_OF_DAY)) << 11 | (cal.get(Cale...
17,894
public final Class getCategory() { return JobStateReason.class; }
public Class getCategory() { return JobStateReason.class; }
17,896
public final String getName() { return "job-state-reason"; }
public String getName() { return "job-state-reason"; }
17,897
void mark() throws IOException;
void mark() throws IOException;
17,898
T element();
E element();
17,899
boolean offer(T value);
boolean offer(E e);
17,900
T peek();
E peek();
17,901
T poll();
E poll();
17,902
T remove();
E remove();
17,903
public static Timestamp valueOf(String str) { int nanos = 0; int dot = str.indexOf('.'); if (dot != -1) { if (str.lastIndexOf('.') != dot) throw new IllegalArgumentException(str); int len = str.length() - dot - 1; if (len < 1 || len > 9) throw new IllegalArgumentException(str); nanos = Integer.pars...
public static Timestamp valueOf(String str) { int nanos = 0; int dot = str.indexOf('.'); if (dot != -1) { if (str.lastIndexOf('.') != dot) throw new IllegalArgumentException(str); int len = str.length() - dot - 1; if (len < 1 || len > 9) throw new IllegalArgumentException(str); nanos = Integer.pars...
17,904
public boolean equals(Object obj) { return getTime() == ((Date) obj).getTime(); }
public boolean equals(Object obj) { return getTime() == ((Date) obj).getTime(); }
17,905
public String toString() { refresh_components(); return days[day] + " " + months[month] + " " + fixed_int(date) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + tzname[isdst ? 1 : 0] + " " + (1900 + year); }
public String toString() { refresh_components(); return days[day] + " " + months[month] + " " + fixed_int(date) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + tzname[isdst ? 1 : 0] + " " + (1900 + year); }
17,906
public StringBuffer format (long number, StringBuffer dest, FieldPosition fieldPos) { // If using exponential notation, we just format as a double. if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != ...
public StringBuffer format (double number, StringBuffer dest, FieldPosition fieldPos) { // If using exponential notation, we just format as a double. if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix !...
17,907
public StringBuffer format (long number, StringBuffer dest, FieldPosition fieldPos) { // If using exponential notation, we just format as a double. if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != ...
public StringBuffer format (long number, StringBuffer dest, FieldPosition fieldPos) { // If using exponential notation, we just format as a double. if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != ...
17,908
abstract protected void flushSpi() throws BackingStoreException;
protected abstract void flushSpi() throws BackingStoreException;
17,909
abstract protected String getSpi(String key);
protected abstract String getSpi(String key);
17,910
abstract protected String[] keysSpi() throws BackingStoreException;
protected abstract String[] keysSpi() throws BackingStoreException;
17,911
abstract protected void putSpi(String key, String value);
protected abstract void putSpi(String key, String value);
17,912
abstract protected void removeNodeSpi() throws BackingStoreException;
protected abstract void removeNodeSpi() throws BackingStoreException;
17,913
abstract protected void removeSpi(String key);
protected abstract void removeSpi(String key);
17,914
abstract protected void syncSpi() throws BackingStoreException;
protected abstract void syncSpi() throws BackingStoreException;
17,915
public static long parseLong(String s) { return parseLong(s, 10, false); }
public static long parseLong(String str, int radix) { return parseLong(s, 10, false); }
17,916
public static long parseLong(String s) { return parseLong(s, 10, false); }
public static long parseLong(String s) { return parseLong(str, radix, false); }
17,917
public static String toString(long num) { return toString(num, 10); }
public static String toString(long num, int radix) { return toString(num, 10); }
17,918
public static String toString(long num) { return toString(num, 10); }
public static String toString(long num) { if ((int) num == num) return Integer.toString((int) num, radix); if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) radix = 10; char[] buffer = new char[65]; int i = 65; boolean isNeg = false; if (num < 0) { isNeg = true; num = -num; if (num < 0) { buff...
17,919
public BERValue(int tag, Object value) { super(tag, 0, value, null); }
public BERValue(int tag, Object value, byte[] encoded) { super(tag, 0, value, null); }
17,920
public BERValue(int tag, Object value) { super(tag, 0, value, null); }
public BERValue(int tag, Object value) { super(tag, 0, value, encoded); indefinite = true; }
17,921
public DragGestureEvent(DragGestureRecognizer dgr, int action, Point origin, List events) { super(dgr); if (origin == null || events == null) throw new IllegalArgumentException(); this.origin = origin; this.action = action; }
public DragGestureEvent(DragGestureRecognizer dgr, int action, Point origin, List events) { super(dgr); if (origin == null || events == null || dgr == null) throw new IllegalArgumentException(); this.origin = origin; this.action = action; }
17,922
public Component getComponent() { return null; }
public Component getComponent() { return component; }
17,924
public int getDragAction() { return 0; }
public int getDragAction() { return action; }
17,925
public DragSource getDragSource() { return null; }
public DragSource getDragSource() { return dragSource; }
17,926
public DragGestureRecognizer getSourceAsDragGestureRecognizer() { return (DragGestureRecognizer) source; }
public DragGestureRecognizer getSourceAsDragGestureRecognizer() { return (DragGestureRecognizer) getSource(); }
17,927
public InputEvent getTriggerEvent() { return null; }
public InputEvent getTriggerEvent() { return dgr.getTriggerEvent(); }
17,928
public Iterator iterator() { return null; }
public Iterator iterator() { return events.iterator(); }
17,929
public Object[] toArray() { return null; }
public Object[] toArray() { return events.toArray(); }
17,930
public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl) { startDrag(trigger, dragCursor, dragImage, imageOffset, trans, dsl, null); }
public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl, FlavorMap map) { startDrag(trigger, dragCursor, dragImage, imageOffset, trans, dsl, null); }
17,931
public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl) { startDrag(trigger, dragCursor, dragImage, imageOffset, trans, dsl, null); }
public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl) { }
17,932
public TransformerConfigurationException(String msg) { super(msg); } // TransformerConfigurationException()
public TransformerConfigurationException(String msg) { super(msg); } // TransformerConfigurationException()
17,933
protected AccessibleJTextField(JTextField component) { super(component); // TODO } // AccessibleJTextField()
protected AccessibleJTextField(JTextField component) { super(component); // TODO } // AccessibleJTextField()
17,934
public void removeActionListener(ActionListener l) { actions.removeElement(l); }
public void removeActionListener(ActionListener l) { actions.removeElement(l); }
17,935
public Locale(String language, String country, String variant) { // During bootstrap, we already know the strings being passed in are // the correct capitalization, and not null. We can't call // String.toUpperCase during this time, since that depends on the // default locale. if ...
public Locale(String language, String country, String variant) { // During bootstrap, we already know the strings being passed in are // the correct capitalization, and not null. We can't call // String.toUpperCase during this time, since that depends on the // default locale. if ...
17,936
public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; Locale l = (Locale) obj; return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); }
public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; Locale l = (Locale) obj; return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); }
17,937
public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; Locale l = (Locale) obj; return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); }
public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; Locale l = (Locale) obj; return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); }
17,938
public String getDisplayCountry() { return getDisplayCountry(defaultLocale); }
public final String getDisplayCountry() { return getDisplayCountry(defaultLocale); }
17,939
public String getDisplayLanguage() { return getDisplayLanguage(defaultLocale); }
public final String getDisplayLanguage() { return getDisplayLanguage(defaultLocale); }
17,940
public String getDisplayName() { return getDisplayName(defaultLocale); }
public final String getDisplayName() { return getDisplayName(defaultLocale); }
17,941
public String getDisplayVariant() { return getDisplayVariant(defaultLocale); }
public final String getDisplayVariant() { return getDisplayVariant(defaultLocale); }
17,942
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
17,943
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
17,944
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
17,945
public DateFormatSymbols (Locale locale) throws MissingResourceException { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale, ClassLoader.getSystemClassLoader()); ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternC...
public DateFormatSymbols (Locale locale) throws MissingResourceException { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale, ClassLoader.getSystemClassLoader()); ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternC...
17,946
private String[] formatsForKey(ResourceBundle res, String key) { String[] values = new String [formatPrefixes.length]; for (int i = 0; i < formatPrefixes.length; i++) { values[i] = res.getString(formatPrefixes[i]+key); } return values; }
private String[] formatsForKey(ResourceBundle res, String key) { String[] values = new String [formatPrefixes.length]; for (int i = 0; i < formatPrefixes.length; i++) { values[i] = res.getString(formatPrefixes[i]+key); } return values; }
17,947
public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; if (axis == Y_AXIS) { if (getViewCount() == 0) return 0.0F; float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F...
public float getAlignment(int axis) { if (axis == X_AXIS) return super.getAlignment(axis); if (axis == Y_AXIS) { if (getViewCount() == 0) return super.getAlignment(axis); float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AX...
17,948
public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; if (axis == Y_AXIS) { if (getViewCount() == 0) return 0.0F; float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F...
public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; if (axis == Y_AXIS) { if (getViewCount() == 0) return 0.0F; float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F...
17,949
public void paint(Graphics g, Shape a) { Rectangle rect = (Rectangle) a; // FIXME: not fully implemented getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.he...
public void paint(Graphics g, Shape a) { Rectangle rect = (Rectangle) a; // FIXME: not fully implemented getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.he...
17,950
protected StyleSheet getStyleSheet() { StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; }
protected StyleSheet getStyleSheet() { StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; }
17,952
public AttributeSet getAttributes() { return getStyleSheet().getViewAttributes(this); }
public AttributeSet getAttributes() { if (attributes == null) attributes = getStyleSheet().getViewAttributes(this); return attributes; }
17,953
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where < 0) throw new BadLocationException("The where argument cannot be smaller" + " than the zero",...
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where < 0) throw new BadLocationException("The where argument cannot be smaller" + " than the zero",...
17,955
public UndoableEdit remove(int where, int nitems) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + nitems) > length) thro...
public UndoableEdit remove(int where, int nitems) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + nitems) > length) thro...
17,956
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
17,957
public IllegalAccessError() { super(); }
public IllegalAccessError() { super(); }
17,958
public int getLayer() { JDesktopPane pane = getDesktopPane(); if (pane != null) return pane.getLayer(this); return -1; }
public int getLayer() { JDesktopPane pane = getDesktopPane(); if (pane != null) return pane.getLayer((Component) this); return -1; }
17,959
protected AccessibleJComponent(JComponent component) {}
protected AccessibleJComponent() {}
17,960
public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); }
public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); }
17,962
public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); }
public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); }
17,963
private void debug(String s) { if (Configuration.DEBUG) System.out.println(s); }
private void debug(String s) { if (DEBUG) System.out.println(s); }
17,964
private void dumpTable() { int start_range = 0; if (!Configuration.DEBUG) return; System.out.println("Dumping internal table:"); for (int i = 0; i < ranges.length; i++) { System.out.print("\t" + start_range + " => " + ranges[i] + ":"); if (attributes[i] == null) System.out.println("null")...
private void dumpTable() { int start_range = 0; if (!DEBUG) return; System.out.println("Dumping internal table:"); for (int i = 0; i < ranges.length; i++) { System.out.print("\t" + start_range + " => " + ranges[i] + ":"); if (attributes[i] == null) System.out.println("null"); else { ...
17,965
public _NamingContextStub(Delegate delegate) { super(); _set_delegate(delegate); }
public _NamingContextStub() { super(); _set_delegate(delegate); }
17,966
public _NamingContextStub(Delegate delegate) { super(); _set_delegate(delegate); }
public _NamingContextStub(Delegate delegate) { super(); }
17,967