bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public StyleSheet[] getStyleSheets() { return styleSheet; }
public StyleSheet[] getStyleSheets() { StyleSheet[] linkedSS; if (linked != null) { linkedSS = new StyleSheet[linked.size()]; linkedSS = (StyleSheet[]) linked.toArray(linkedSS); } else { linkedSS = null; } return linkedSS; }
35,597
public void importStyleSheet(URL url) { // FIXME: Not implemented }
try { InputStream in = url.openStream(); Reader r = new BufferedReader(new InputStreamReader(in)); CSSStyleSheetParserCallback cb = new CSSStyleSheetParserCallback(CSSStyle.PREC_AUTHOR_NORMAL); CSSParser parser = new CSSParser(r, cb); parser.parse(); } catch (IOException ex) { } try { InputStream in = url.openStream()...
35,598
public void loadRules(Reader in, URL ref) throws IOException { CSSStyleSheetParserCallback cb = new CSSStyleSheetParserCallback(); // FIXME: Handle ref. CSSParser parser = new CSSParser(in, cb); parser.parse(); }
public void loadRules(Reader in, URL ref) throws IOException { CSSStyleSheetParserCallback cb = new CSSStyleSheetParserCallback(CSSStyle.PREC_UA); // FIXME: Handle ref. CSSParser parser = new CSSParser(in, cb); parser.parse(); }
35,599
public void removeStyleSheet(StyleSheet ss) { if (styleSheet.length == 1 && styleSheet[0].equals(ss)) styleSheet = null; else { for (int i = 0; i < styleSheet.length; i++) { StyleSheet curr = styleSheet[i]; if (curr.equals(ss)) { Style...
public void removeStyleSheet(StyleSheet ss) { if (styleSheet.length == 1 && styleSheet[0].equals(ss)) styleSheet = null; else { for (int i = 0; i < styleSheet.length; i++) { StyleSheet curr = styleSheet[i]; if (curr.equals(ss)) { Style...
35,600
public void removeStyleSheet(StyleSheet ss) { if (styleSheet.length == 1 && styleSheet[0].equals(ss)) styleSheet = null; else { for (int i = 0; i < styleSheet.length; i++) { StyleSheet curr = styleSheet[i]; if (curr.equals(ss)) { Style...
public void removeStyleSheet(StyleSheet ss) { if (styleSheet.length == 1 && styleSheet[0].equals(ss)) styleSheet = null; else { for (int i = 0; i < styleSheet.length; i++) { StyleSheet curr = styleSheet[i]; if (curr.equals(ss)) { Style...
35,601
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS...
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS...
35,602
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS...
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS...
35,603
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS...
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS...
35,604
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS...
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS...
35,605
public AttributeSet translateHTMLToCSS(AttributeSet htmlAttrSet) { // FIXME: Really convert HTML to CSS here. AttributeSet cssAttr = htmlAttrSet.copyAttributes(); MutableAttributeSet cssStyle = addStyle(null, null); cssStyle.addAttributes(cssAttr); return cssStyle; }
publicAttributeSettranslateHTMLToCSS(AttributeSethtmlAttrSet){//FIXME:ReallyconvertHTMLtoCSShere.AttributeSetcssAttr=htmlAttrSet.copyAttributes();MutableAttributeSetcssStyle=addStyle(null,null);cssStyle.addAttributes(cssAttr);returncssStyle;}
35,606
public AttributeSet translateHTMLToCSS(AttributeSet htmlAttrSet) { // FIXME: Really convert HTML to CSS here. AttributeSet cssAttr = htmlAttrSet.copyAttributes(); MutableAttributeSet cssStyle = addStyle(null, null); cssStyle.addAttributes(cssAttr); return cssStyle; }
public AttributeSet translateHTMLToCSS(AttributeSet htmlAttrSet) { // FIXME: Really convert HTML to CSS here. AttributeSet cssAttr = htmlAttrSet.copyAttributes(); MutableAttributeSet cssStyle = addStyle(null, null); cssStyle.addAttributes(cssAttr); return cssStyle; }
35,607
public int getValue() { int intVal; if (value.contains("pt")) intVal = mapPoints(); else if (value.contains("px")) intVal = mapPixels(); else intVal = mapAbsolute(); // FIXME: Allow relative font values, ('larger' and 'smaller'). This // requires knowledge about the parent element's ...
public int getValue(int p) { int intVal; if (value.contains("pt")) intVal = mapPoints(); else if (value.contains("px")) intVal = mapPixels(); else intVal = mapAbsolute(); // FIXME: Allow relative font values, ('larger' and 'smaller'). This // requires knowledge about the parent eleme...
35,609
public int getValue() { int intVal; if (value.contains("pt")) intVal = mapPoints(); else if (value.contains("px")) intVal = mapPixels(); else intVal = mapAbsolute(); // FIXME: Allow relative font values, ('larger' and 'smaller'). This // requires knowledge about the parent element's ...
public int getValue() { int intVal; if (value.contains("pt")) intVal = mapPoints(); else if (value.contains("px")) intVal = mapPixels(); else intVal = mapAbsolute(); // FIXME: Allow relative font values, ('larger' and 'smaller'). This // requires knowledge about the parent element's ...
35,610
public final Class getCategory() { return DateTimeAtProcessing.class; }
public Class getCategory() { return DateTimeAtProcessing.class; }
35,611
public final String getName() { return "date-time-at-processing"; }
public String getName() { return "date-time-at-processing"; }
35,612
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.IDENTITYDB_CMD, true); result.setHeader(Messages.getString("IdentityDBCmd.7")); //$NON-NLS-1$ result.setFooter(Messages.getString("IdentityDBCmd.8")); //$NON-NLS-1$ Opt...
ParsergetParser(){log.entering(this.getClass().getName(),"getParser");//$NON-NLS-1$Parserresult=newClasspathToolParser(Main.IDENTITYDB_CMD,true);result.setHeader(Messages.getString("IdentityDBCmd.7"));//$NON-NLS-1$result.setFooter(Messages.getString("IdentityDBCmd.8"));//$NON-NLS-1$OptionGroupoptions=newOptionGroup(Mes...
35,613
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.IDENTITYDB_CMD, true); result.setHeader(Messages.getString("IdentityDBCmd.7")); //$NON-NLS-1$ result.setFooter(Messages.getString("IdentityDBCmd.8")); //$NON-NLS-1$ Opt...
if (Configuration.DEBUG) if (Configuration.DEBUG) Parserif (Configuration.DEBUG) getParser()if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) log.entering(this.getClass().getName(),if (Configuration.DEBUG) "getParser");...
35,614
void setup() throws Exception { setInputStreamParam(_idbFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); log.finer("-identitydb handler will use the following options:"); //$NON-NLS-1$ log.finer(" -file=" + _idbFileName); //$NON-NLS-1$ log.finer(" -storetype=" + storeT...
void setup() throws Exception { setInputStreamParam(_idbFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); log.finer("-identitydb handler will use the following options:"); //$NON-NLS-1$ log.finer(" -file=" + _idbFileName); //$NON-NLS-1$ log.finer(" -storetype=" + storeT...
35,615
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
public final synchronized CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basi...
35,617
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
35,618
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
35,619
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
public final synchronized ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basi...
35,620
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
35,621
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn...
35,622
protected void installDefaults(AbstractButton b) { String prefix = getPropertyPrefix(); LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); focusColor = UIManager.getColor(...
protected void installDefaults(AbstractButton b) { String prefix = getPropertyPrefix(); LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); b.setMargin(UIManager.getInse...
35,623
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = new Rectangle(); SwingUtilities.calculateInnerArea(b, area); g.setColor(b.getBackground().darker()); g.fillRect(area.x, area.y, area.width, area.height); } }
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled() && b.isOpaque()) { Rectangle area = new Rectangle(); SwingUtilities.calculateInnerArea(b, area); g.setColor(b.getBackground().darker()); g.fillRect(area.x, area.y, area.width, area.height); } }
35,624
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = new Rectangle(); SwingUtilities.calculateInnerArea(b, area); g.setColor(b.getBackground().darker()); g.fillRect(area.x, area.y, area.width, area.height); } }
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = new Rectangle(); SwingUtilities.calculateInnerArea(b, area); g.setColor(UIManager.getColor(getPropertyPrefix() + "shadow")); g.fillRect(area.x, area.y, area.width, area.height); ...
35,625
public void paint(Graphics g, JComponent jc) { // Do nothing. All the painting is handled by children. }
int divLoc = splitPane.getDividerLocation(); int valLoc = validLocation(divLoc); if (divLoc != valLoc) splitPane.setDividerLocation(valLoc); int divLoc = splitPane.getDividerLocation(); int valLoc = validLocation(divLoc); if (divLoc != valLoc) splitPane.setDividerLocation(valLoc); public int divLoc = splitPane.getDiv...
35,626
public abstract short member_visibility(int index) throws BadKind, Bounds;
public abstract short member_visibility(int index) throws BadKind, Bounds;
35,627
private Handler getHandler(String name) throws REException { if (name.equals("Lower") || name.equals("Upper") || // name.equals("ASCII") || name.equals("Alpha") || name.equals("Digit") || name.equals("Alnum") || name.equals("Punct") || name.equals("G...
private Handler getHandler(String name) throws REException { if (name.equals("Lower") || name.equals("Upper") || // name.equals("ASCII") || name.equals("Alpha") || name.equals("Digit") || name.equals("Alnum") || name.equals("Punct") || name.equals("G...
35,628
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.CERTREQ_CMD, true); result.setHeader(Messages.getString("CertReqCmd.25")); //$NON-NLS-1$ result.setFooter(Messages.getString("CertReqCmd.24")); //$NON-NLS-1$ OptionGrou...
ParsergetParser(){log.entering(this.getClass().getName(),"getParser");//$NON-NLS-1$Parserresult=newClasspathToolParser(Main.CERTREQ_CMD,true);result.setHeader(Messages.getString("CertReqCmd.25"));//$NON-NLS-1$result.setFooter(Messages.getString("CertReqCmd.24"));//$NON-NLS-1$OptionGroupoptions=newOptionGroup(Messages.g...
35,629
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.CERTREQ_CMD, true); result.setHeader(Messages.getString("CertReqCmd.25")); //$NON-NLS-1$ result.setFooter(Messages.getString("CertReqCmd.24")); //$NON-NLS-1$ OptionGrou...
if (Configuration.DEBUG) if (Configuration.DEBUG) Parserif (Configuration.DEBUG) getParser()if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) log.entering(this.getClass().getName(),if (Configuration.DEBUG) "getParser");...
35,630
void setup() throws Exception { setOutputStreamParam(_certReqFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-certreq handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" +...
void setup() throws Exception { setOutputStreamParam(_certReqFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-certreq handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" +...
35,631
void start() throws KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, UnrecoverableKeyException, InvalidKeyException, SignatureException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ // 1. get the key entry and certificate chain associated to ...
voidstart()throwsKeyStoreException,NoSuchAlgorithmException,IOException,UnsupportedCallbackException,UnrecoverableKeyException,InvalidKeyException,SignatureException{log.entering(this.getClass().getName(),"start");//$NON-NLS-1$//1.getthekeyentryandcertificatechainassociatedtoaliasKeyprivateKey=getAliasPrivateKey();Cert...
35,632
void start() throws KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, UnrecoverableKeyException, InvalidKeyException, SignatureException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ // 1. get the key entry and certificate chain associated to ...
if (Configuration.DEBUG) if (Configuration.DEBUG) voidif (Configuration.DEBUG) start()if (Configuration.DEBUG) throwsif (Configuration.DEBUG) KeyStoreException,if (Configuration.DEBUG) NoSuchAlgorithmException,if (Configuration.DEBUG) IOException,if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG...
35,633
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.STOREPASSWD_CMD, true); result.setHeader(Messages.getString("StorePasswdCmd.18")); //$NON-NLS-1$ result.setFooter(Messages.getString("StorePasswdCmd.17")); //$NON-NLS-1$ ...
ParsergetParser(){log.entering(this.getClass().getName(),"getParser");//$NON-NLS-1$Parserresult=newClasspathToolParser(Main.STOREPASSWD_CMD,true);result.setHeader(Messages.getString("StorePasswdCmd.18"));//$NON-NLS-1$result.setFooter(Messages.getString("StorePasswdCmd.17"));//$NON-NLS-1$OptionGroupoptions=newOptionGrou...
35,634
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.STOREPASSWD_CMD, true); result.setHeader(Messages.getString("StorePasswdCmd.18")); //$NON-NLS-1$ result.setFooter(Messages.getString("StorePasswdCmd.17")); //$NON-NLS-1$ ...
if (Configuration.DEBUG) if (Configuration.DEBUG) Parserif (Configuration.DEBUG) getParser()if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) log.entering(this.getClass().getName(),if (Configuration.DEBUG) "getParser");...
35,635
void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setNewKeystorePassword(_newPassword); log.finer("-storepasswd handler will use the following options:"); //$NON-NLS-1$ log.finer(" -storetype=" + storeType); //$NON-NLS-1$ log.finer(" -keystore=" + s...
void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setNewKeystorePassword(_newPassword); log.finer("-storepasswd handler will use the following options:"); //$NON-NLS-1$ log.finer(" -storetype=" + storeType); //$NON-NLS-1$ log.finer(" -keystore=" + s...
35,636
void start() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ saveKeyStore(newStorePasswordChars); log.exiting(getClass().getName(), "start"); //$NON-NLS-1$ }
voidstart()throwsKeyStoreException,NoSuchAlgorithmException,CertificateException,IOException{log.entering(this.getClass().getName(),"start");//$NON-NLS-1$saveKeyStore(newStorePasswordChars);log.exiting(getClass().getName(),"start");//$NON-NLS-1$}
35,637
void start() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ saveKeyStore(newStorePasswordChars); log.exiting(getClass().getName(), "start"); //$NON-NLS-1$ }
if (Configuration.DEBUG) if (Configuration.DEBUG) voidif (Configuration.DEBUG) start()if (Configuration.DEBUG) throwsif (Configuration.DEBUG) KeyStoreException,if (Configuration.DEBUG) NoSuchAlgorithmException,if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Config...
35,638
public boolean equals(Object o) { // No need to synchronize, entrySet().equals() does that. if (o == this) return true; if (!(o instanceof Map)) return false; return entrySet().equals(((Map) o).entrySet()); }
public boolean equals(Object o) { // No need to synchronize, entrySet().equals() does that. if (o == this) return true; if (!(o instanceof Map)) return false; return entrySet().equals(((Map) o).entrySet()); }
35,639
public synchronized int hashCode() { // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release the monitor, we directly use the // unsynchronized HashIterator instead. Iterator<Map.Entry<K, V>> itr = new HashIterator<Map.Entry<K, V>>(ENTRIES); int hashcode = 0...
public synchronized int hashCode() { // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release the monitor, we directly use the // unsynchronized HashIterator instead. Iterator<Map.Entry<K, V>> itr = new EntryIterator(); int hashcode = 0; for (int pos = siz...
35,640
public synchronized String toString() { // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release the monitor, we directly use the // unsynchronized HashIterator instead. Iterator<Map.Entry<? extends K, ? extends V>> entries = new HashIterator<Map.Entry<? ex...
public synchronized String toString() { // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release the monitor, we directly use the // unsynchronized HashIterator instead. Iterator<Map.Entry<? extends K, ? extends V>> entries = new HashIterator<Map.Entry<? ex...
35,641
public void run() { while (true) { Runnable r; synchronized (queue) { while (queue.size() == 0) { try { wait(); } catch (InterruptedException _) { ...
public void run() { while (true) { Runnable r; synchronized (queue) { while (queue.size() == 0) { try { queue.wait(); } catch (InterruptedException _) { ...
35,643
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
private int checkRule(int month) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of range"); return DOM_MODE; ...
35,644
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
private int checkRule(int month, int day, int dayOfWeek) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalA...
35,645
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
35,646
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
35,647
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
35,648
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
35,649
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra...
35,650
public void setEndRule(int month, int day, int dayOfWeek, int time) { this.endMode = checkRule(month, day, dayOfWeek); this.endMonth = month; this.endDay = day; this.endDayOfWeek = Math.abs(dayOfWeek); if (this.endTimeMode == WALL_TIME) this.endTime = time; else if (this.endTimeMode == STANDARD_...
public void setEndRule(int month, int day, int dayOfWeek, int time) { this.endMonth = month; this.endDay = day; this.endDayOfWeek = Math.abs(dayOfWeek); if (this.endTimeMode == WALL_TIME) this.endTime = time; else if (this.endTimeMode == STANDARD_TIME) // Convert from STANDARD to DST t...
35,652
public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMode = checkRule(month, day, dayOfWeek); this.startMonth = month; this.startDay = day; this.startDayOfWeek = Math.abs(dayOfWeek); if (this.startTimeMode == WALL_TIME || this.startTimeMode == STANDARD_TIME) this.star...
public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMonth = month; this.startDay = day; this.startDayOfWeek = Math.abs(dayOfWeek); if (this.startTimeMode == WALL_TIME || this.startTimeMode == STANDARD_TIME) this.startTime = time; else // Convert from UTC to S...
35,654
public void mousePressed(MouseEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); if ((e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0) { // It is important th...
public void mousePressed(MouseEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); if (e.getButton() == MouseEvent.BUTTON1) { // It is important that these transitions ...
35,656
public void mouseReleased(MouseEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); if ((e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0) { // It is important t...
public void mouseReleased(MouseEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); if (e.getButton() == MouseEvent.BUTTON1) { // It is important that these transitions...
35,657
public BasicCheckBoxMenuItemUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = UIManager.getIcon("CheckBoxMenuItem.checkIcon"); }
public BasicCheckBoxMenuItemUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = UIManager.getIcon("CheckBoxMenuItem.checkIcon"); }
35,658
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return method.invoke(object, args); }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return method.invoke(object, args); }
35,660
public static void main(String[] args) { IFoo origFoo = new FooImpl(); IFoo proxy = (IFoo) Proxy.newProxyInstance(ProxyTest.class.getClassLoader(), new Class[] { IFoo.class }, new Handler<IFoo>(origFoo)); proxy.foo(); }
public static void main(String[] args) throws IOException { IFoo origFoo = new FooImpl(); IFoo proxy = (IFoo) Proxy.newProxyInstance(ProxyTest.class.getClassLoader(), new Class[] { IFoo.class }, new Handler<IFoo>(origFoo)); proxy.foo(); }
35,661
public static void main(String[] args) { IFoo origFoo = new FooImpl(); IFoo proxy = (IFoo) Proxy.newProxyInstance(ProxyTest.class.getClassLoader(), new Class[] { IFoo.class }, new Handler<IFoo>(origFoo)); proxy.foo(); }
public static void main(String[] args) { IFoo origFoo = new FooImpl(); final ClassLoader loader = ProxyTest.class.getClassLoader(); IFoo proxy = (IFoo) Proxy.newProxyInstance(loader, new Class[] { IFoo.class }, new Handler<IFoo>(origFoo)); proxy.foo(); }
35,662
protected AccessibleJProgressBar(JProgressBar component) { super(component); }
protected AccessibleJProgressBar() { super(component); }
35,664
protected AccessibleJProgressBar(JProgressBar component) { super(component); }
protected AccessibleJProgressBar(JProgressBar component) { }
35,665
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJProgressBar(this); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJProgressBar(); return accessibleContext; }
35,666
public boolean visit(Object object) { final int gcColor = helper.getObjectColor(object); helper.atomicChangeObjectColor(object, gcColor, GC_WHITE); return true; }
public boolean visit(Object object) { final int gcColor = helper.getObjectColor(object); helper.atomicChangeObjectColor(object, gcColor, GC_WHITE); return true; }
35,667
public void layoutContainer(Container parent) { JComboBox cb = (JComboBox) parent; if (!cb.isEditable()) { Rectangle bounds = parent.getBounds(); arrowButton.setBounds(0, 0, bounds.width, bounds.height); } else superLayout(parent); }
public void layoutContainer(Container parent) { JComboBox cb = (JComboBox) parent; if (!cb.isEditable()) { Rectangle bounds = parent.getBounds(); arrowButton.setBounds(0, 0, bounds.width, bounds.height); } else superLayout(parent); }
35,669
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("editable")) editablePropertyChanged(e); super.propertyChange(e); }
public void propertyChange(PropertyChangeEvent e) { super.propertyChange(e); String name = e.getPropertyName(); if (name.equals("editable")) editablePropertyChanged(e); super.propertyChange(e); }
35,670
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("editable")) editablePropertyChanged(e); super.propertyChange(e); }
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("editable")) editablePropertyChanged(e); if (name.equals("enabled")) { if (arrowButton instanceof MetalComboBoxButton) { arrowButton.setFocusable(!comboBox.isEditable() && comboBox.isEnabled()); comboBox.repaint()...
35,671
public void configureEditor() { ComboBoxEditor cbe = comboBox.getEditor(); if (cbe != null) { cbe.getEditorComponent().setFont(comboBox.getFont()); cbe.setItem(comboBox.getSelectedItem()); cbe.addActionListener(comboBox); } }
public void configureEditor() { ComboBoxEditor cbe = comboBox.getEditor(); if (cbe != null) { cbe.getEditorComponent().setFont(comboBox.getFont()); cbe.setItem(comboBox.getSelectedItem()); cbe.addActionListener(comboBox); } }
35,672
protected void editablePropertyChanged(PropertyChangeEvent e) { if (arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; b.setIconOnly(comboBox.isEditable()); } if (comboBox.isEditable()) { arrowButton.setText(null); ...
protected void editablePropertyChanged(PropertyChangeEvent e) { if (arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; b.setIconOnly(comboBox.isEditable()); } if (comboBox.isEditable()) { arrowButton.setText(null); ...
35,673
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico...
public Dimension getMinimumSize(JComponent c) { if (!isMinimumSizeDirty) return new Dimension(cachedMinimumSize); Dimension d; if (!comboBox.isEditable() && arrowButton != null && arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getI...
35,674
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico...
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico...
35,675
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico...
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico...
35,676
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico...
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico...
35,677
public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager) { manager.layoutContainer(parent); }
public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager) { if (comboBox.isEditable()) manager.superLayout(parent); else if (arrowButton != null) { Insets comboInsets = comboBox.getInsets(); int width = comboBox.getWidth(); int height = comboBox.g...
35,678
public void unconfigureEditor() { ComboBoxEditor cbe = comboBox.getEditor(); if (cbe != null) { cbe.getEditorComponent().setFont(null); cbe.setItem(null); cbe.removeActionListener(comboBox); } }
public void unconfigureEditor() { ComboBoxEditor cbe = comboBox.getEditor(); if (cbe != null) { cbe.getEditorComponent().setFont(null); cbe.setItem(null); cbe.removeActionListener(comboBox); } }
35,679
protected BasicButtonListener createButtonListener(AbstractButton b) { return new BasicButtonListener(); }
protected BasicButtonListener createButtonListener(AbstractButton b) { return new BasicButtonListener(b); }
35,680
public Object clone() { return new Kernel(width, height, data); }
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); } }
35,681
public Node nextNode() throws DOMException { if (root == null) { throw new DOMException(DOMException.INVALID_STATE_ERR, "null root"); } Node ret; do { if (current.equals(root)) { ret = root.getFirstChild(); } else if (walk) { ...
public Node nextNode() throws DOMException { if (root == null) { throw new DOMException(DOMException.INVALID_STATE_ERR, "null root"); } Node ret; do { if (current.equals(root)) { ret = root.getFirstChild(); } else if (walk) { ...
35,682
private final void loadExtension(Extension ext) { final String id = ext.getDeclaringPluginDescriptor().getId(); final URL url; try { url = new URL("plugin:" + id + "!/"); final ClassLoader cl = ext.getDeclaringPluginDescriptor() .getPluginClassLoader(); ...
private final void loadExtension(Extension ext) { final String id = ext.getDeclaringPluginDescriptor().getId(); final URL url; try { url = new URL("plugin:" + id + "!/"); final ClassLoader cl = ext.getDeclaringPluginDescriptor() .getPluginClassLoader(); ...
35,683
public XMLWriter (Writer writer, String encoding) { setWriter (writer, encoding); }
public XMLWriter (Writer writer, String encoding) { setWriter (writer, encoding); }
35,684
public BoldAction() { super("TODO"); // TODO: Figure out correct name of this Action. }
public BoldAction() { super("font-bold"); // TODO: Figure out correct name of this Action. }
35,685
public ItalicAction() { super("TODO"); // TODO: Figure out correct name of this Action. }
public ItalicAction() { super("font-italic"); // TODO: Figure out correct name of this Action. }
35,686
public UnderlineAction() { super("TODO"); // TODO: Figure out name for this action. }
public UnderlineAction() { super("font-underline"); // TODO: Figure out name for this action. }
35,687
public static Throwable read(cdrBufInput input, ServiceContext[] contexts) { input.mark(Integer.MAX_VALUE); int h = input.read_long(); if (h == 0) { // This block reads exception info in the Sun specific format. // (currently we read the exception name only). try { ...
public static Throwable read(BufferredCdrInput input, ServiceContext[] contexts) { input.mark(Integer.MAX_VALUE); int h = input.read_long(); if (h == 0) { // This block reads exception info in the Sun specific format. // (currently we read the exception name only). try { ...
35,688
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("AreaAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. }
35,690
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("AreaAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. }
35,691
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("BaseAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("BaseAction.start not implemented"); }
35,692
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("BaseAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. baseTarget = (String) a.getAttribute(HTML.Attribute.TARGET); }
35,693
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("FormAction.end not implemented"); }
public void end(HTML.Tag t) { // FIXME: Implement. print ("FormAction.end not implemented"); }
35,695
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("FormAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. if (t == HTML.Tag.OPTION) { option = null; } else { if (t == HTML.Tag.TEXTAREA) { inTextArea = false; } else if (t == HTML.Tag.SELECT) { selectModel = null; numOptions = 0; } super.end(t); } }
35,696
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("FormAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("FormAction.start not implemented"); }
35,697
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("FormAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. if (t == HTML.Tag.INPUT) { String type = (String) a.getAttribute(HTML.Attribute.TYPE); if (type == null) { type = "text"; a.addAttribute(HTML.Attribute.TYPE, type); } setModel(type, ...
35,698
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("HeadAction.end not implemented: "+t); super.end(t); }
public void end(HTML.Tag t) { // FIXME: Implement. print ("HeadAction.end not implemented: "+t); super.end(t); }
35,699
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("HeadAction.end not implemented: "+t); super.end(t); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. if (styles != null) { int numStyles = styles.size(); for (int i = 0; i < numStyles; i++) { String style = (String) styles.get(i); getStyleSheet().addRule(style); } } super.end(t); }
35,700
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("HeadAction.start not implemented: "+t); super.start(t, a); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. super.start(t, a); }
35,701
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("IsindexAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("IsindexAction.start not implemented"); }
35,702
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("IsindexAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. blockOpen(HTML.Tag.IMPLIED, new SimpleAttributeSet()); addSpecialElement(t, a); blockClose(HTML.Tag.IMPLIED); }
35,703
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("LinkAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("LinkAction.start not implemented"); }
35,704
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("LinkAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. super.start(t, a); String type = (String) a.getAttribute(HTML.Attribute.TYPE); if (type == null) type = "text/css"; if (type.equals("text/css")) { String rel = (String) a.getAttribut...
35,705
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("MapAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. }
35,707
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("MapAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. }
35,708