bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); } | public byte[] getEncoded() { byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DHKeyPairRawCodec().encodePrivateKey(this); break; case IKeyPairCodec.PKCS8_FORMAT: result = new DHKeyPairPKCS8Codec().encodePrivateKey(this); break; default: throw new IllegalArgumentException("Unsupported e... | 28,402 |
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | 28,403 |
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | 28,404 |
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | 28,405 |
public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | 28,406 |
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; } | 28,408 |
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; ... | 28,410 |
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... | 28,411 |
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; ... | 28,412 |
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; ... | 28,413 |
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;... | 28,414 |
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;... | 28,415 |
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;... | 28,416 |
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;... | 28,417 |
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... | 28,418 |
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... | 28,419 |
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... | 28,420 |
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... | 28,421 |
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... | 28,422 |
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 ... | 28,423 |
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; ... | 28,424 |
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... | 28,425 |
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"); } } | 28,426 |
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... | 28,427 |
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... | 28,428 |
public static void yield() { VmProcessor.current().yield(); } | public static void yield() { VmProcessor.current().yield(false); } | 28,430 |
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(); ... | 28,431 |
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(); ... | 28,432 |
public UnknownError(String s) { super(s); } | public UnknownError(String s) { super(s); } | 28,433 |
public void updateUI() { setUI((OptionPaneUI) UIManager.getUI(this)); invalidate(); } | public void updateUI() { setUI((OptionPaneUI) UIManager.getUI(this)); } | 28,434 |
public JInternalFrame(String title) { this(title, false, false, false, false); } | public JInternalFrame() { this(title, false, false, false, false); } | 28,435 |
public JInternalFrame(String title) { this(title, false, false, false, false); } | public JInternalFrame(String title) { this(null, false, false, false, false); } | 28,436 |
public void setLayer(Integer layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } } | public void setLayer(int layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } } | 28,437 |
public void setLayer(Integer layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } } | public void setLayer(Integer layer) { JDesktopPane p = getDesktopPane(); if (p != null) { int pos = p.getPosition(this); p.setLayer(this, layer.intValue(), pos); } } | 28,438 |
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()); } | 28,439 |
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... | 28,464 |
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... | 28,466 |
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... | 28,467 |
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... | 28,468 |
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; commentBytes = comment.getBytes(); if (commentBytes.length > 0xffff) throw new IllegalArgumentException("Comment too long."); zipComment = commentBytes; } | 28,469 |
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... | 28,470 |
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... | 28,471 |
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.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... | 28,472 |
public final Class getCategory() { return JobStateReason.class; } | public Class getCategory() { return JobStateReason.class; } | 28,474 |
public final String getName() { return "job-state-reason"; } | public String getName() { return "job-state-reason"; } | 28,475 |
void mark() throws IOException; | void mark() throws IOException; | 28,476 |
T element(); | T element(); | 28,477 |
boolean offer(T value); | boolean offer(T value); | 28,478 |
T peek(); | T peek(); | 28,479 |
T poll(); | T poll(); | 28,480 |
T remove(); | T remove(); | 28,481 |
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... | 28,482 |
public boolean equals(Object obj) { return getTime() == ((Date) obj).getTime(); } | public boolean equals(Object obj) { return getTime() == ((Date) obj).getTime(); } | 28,483 |
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); } | 28,484 |
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 != ... | 28,485 |
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 != ... | 28,486 |
StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + ".... | StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + ".... | 28,487 |
StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + ".... | StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + ".... | 28,488 |
public AccessibleContext getAccessibleContext() { //Gets the AccessibleContext associated with this JToggleButton. return null; } | publicAccessibleContextgetAccessibleContext(){//GetstheAccessibleContextassociatedwiththisJToggleButton.returnnull;} | 28,489 |
public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "ToggleButtonUI"; } | publicStringgetUIClassID(){//ReturnsastringthatspecifiesthenameoftheL&Fclassthatrendersthiscomponent.return"ToggleButtonUI";} | 28,490 |
abstract protected void flushSpi() throws BackingStoreException; | abstract protected void flushSpi() throws BackingStoreException; | 28,491 |
abstract protected String getSpi(String key); | abstract protected String getSpi(String key); | 28,492 |
abstract protected String[] keysSpi() throws BackingStoreException; | abstract protected String[] keysSpi() throws BackingStoreException; | 28,493 |
abstract protected void putSpi(String key, String value); | abstract protected void putSpi(String key, String value); | 28,494 |
abstract protected void removeNodeSpi() throws BackingStoreException; | abstract protected void removeNodeSpi() throws BackingStoreException; | 28,495 |
abstract protected void removeSpi(String key); | abstract protected void removeSpi(String key); | 28,496 |
abstract protected void syncSpi() throws BackingStoreException; | abstract protected void syncSpi() throws BackingStoreException; | 28,497 |
public static long parseLong(String s) { return parseLong(s, 10, false); } | public static long parseLong(String str, int radix) { return parseLong(s, 10, false); } | 28,498 |
public static long parseLong(String s) { return parseLong(s, 10, false); } | public static long parseLong(String s) { return parseLong(str, radix, false); } | 28,499 |
public static String toString(long num) { return toString(num, 10); } | public static String toString(long num, int radix) { return toString(num, 10); } | 28,500 |
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) { buf... | 28,501 |
public BERValue(int tag, Object value) { super(tag, 0, value, null); } | public BERValue(int tag, Object value, byte[] encoded) { super(tag, 0, value, null); } | 28,502 |
public BERValue(int tag, Object value) { super(tag, 0, value, null); } | public BERValue(int tag, Object value) { super(tag, 0, value, encoded); indefinite = true; } | 28,503 |
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; } | 28,504 |
public Component getComponent() { return null; } | public Component getComponent() { return component; } | 28,506 |
public int getDragAction() { return 0; } | public int getDragAction() { return action; } | 28,507 |
public DragSource getDragSource() { return null; } | public DragSource getDragSource() { return dragSource; } | 28,508 |
public DragGestureRecognizer getSourceAsDragGestureRecognizer() { return (DragGestureRecognizer) source; } | public DragGestureRecognizer getSourceAsDragGestureRecognizer() { return (DragGestureRecognizer) getSource(); } | 28,509 |
public InputEvent getTriggerEvent() { return null; } | public InputEvent getTriggerEvent() { return dgr.getTriggerEvent(); } | 28,510 |
public Iterator iterator() { return null; } | public Iterator iterator() { return events.iterator(); } | 28,511 |
public Object[] toArray() { return null; } | public Object[] toArray() { return events.toArray(); } | 28,512 |
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); } | 28,513 |
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) { } | 28,514 |
public TransformerConfigurationException(String msg) { super(msg); } // TransformerConfigurationException() | public TransformerConfigurationException(String msg) { super(msg); } // TransformerConfigurationException() | 28,515 |
protected AccessibleJTextField(JTextField component) { super(component); // TODO } // AccessibleJTextField() | protected AccessibleJTextField(JTextField component) { super(component); // TODO } // AccessibleJTextField() | 28,516 |
public AccessibleStateSet getAccessibleStateSet() { return null; // TODO } // getAccessibleStateSet() | public AccessibleStateSet getAccessibleStateSet() { return null; // TODO } // getAccessibleStateSet() | 28,517 |
public void removeActionListener(ActionListener l) { actions.removeElement(l); } | public void removeActionListener(ActionListener l) { actions.removeElement(l); } | 28,518 |
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 ... | 28,519 |
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 ... | 28,520 |
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 ... | 28,521 |
public Object clone() { // This class is final, so no need to use native super.clone(). return new Locale(language, country, variant); } | public Object clone() { // This class is final, so no need to use native super.clone(). return new Locale(language, country, variant); } | 28,522 |
private String convertLanguage(String language) { if (language.equals("")) return language; language = language.toLowerCase(); int index = "he,id,yi".indexOf(language); if (index != -1) return "iw,in,ji".substring(index, index + 2); return language; } | private String convertLanguage(String language) { if (language.equals("")) return language; language = language.toLowerCase(); int index = "he,id,yi".indexOf(language); if (index != -1) return "iw,in,ji".substring(index, index + 2); return language; } | 28,523 |
private String convertLanguage(String language) { if (language.equals("")) return language; language = language.toLowerCase(); int index = "he,id,yi".indexOf(language); if (index != -1) return "iw,in,ji".substring(index, index + 2); return language; } | private String convertLanguage(String language) { if (language.equals("")) return language; language = language.toLowerCase(); int index = "he,id,yi".indexOf(language); if (index != -1) return "iw,in,ji".substring(index, index + 2); return language; } | 28,524 |
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)); } | 28,525 |
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)); } | 28,526 |
public static Locale[] getAvailableLocales() { /* * I only return those for which localized language or country * information exists. XXX - remove hard coded list, and implement more * locales (Sun's JDK 1.4 has 148 installed locales!). */ return new Locale[] { ENGLISH,... | public static Locale[] getAvailableLocales() { /* * I only return those for which localized language or country * information exists. XXX - remove hard coded list, and implement more * locales (Sun's JDK 1.4 has 148 installed locales!). */ return new Locale[] { ENGLISH,... | 28,527 |
public String getCountry() { return country; } | public String getCountry() { return country; } | 28,528 |
public static Locale getDefault() { return defaultLocale; } | public static Locale getDefault() { return defaultLocale; } | 28,529 |
public String getDisplayCountry() { return getDisplayCountry(defaultLocale); } | public final String getDisplayCountry() { return getDisplayCountry(defaultLocale); } | 28,530 |
public String getDisplayLanguage() { return getDisplayLanguage(defaultLocale); } | public final String getDisplayLanguage() { return getDisplayLanguage(defaultLocale); } | 28,531 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.