bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public final String getName() { return "printer-location"; }
public String getName() { return "printer-location"; }
18,836
public short acceptNode(Node n) { if (n.getNodeType() != Node.ELEMENT_NODE) { return NodeFilter.FILTER_SKIP; } if (nodeNames != null && !acceptName(n.getLocalName())) { return NodeFilter.FILTER_SKIP; } if (attributeNames != null && !acceptAttributes(n.getAttributes())) ...
public short acceptNode(Node n) { if (n.getNodeType() != Node.ELEMENT_NODE) { return NodeFilter.FILTER_SKIP; } String localName = n.getLocalName(); if (localName == null) { localName = n.getNodeName(); } if (nodeNames != null && !acceptName(localName)) { return NodeFilter.FILTER_SK...
18,837
public FillTest(String fname, int kilos) throws FileNotFoundException, IOException{ byte[] bbuf=new byte[1024]; for(int i=0; i<1024; i++) bbuf[i]=(byte)(i%8+65); FileOutputStream fos = new FileOutputStream(fname, false); int written=0; while(written<kilos) { System.out.print("."); fos.write(bbuf, 0, 1024)...
public FillTest(String fname, int kilos) throws FileNotFoundException, IOException{ byte[] bbuf=new byte[1024]; for(int i=0; i<1024; i++) bbuf[i]=(byte)(i%8+65); FileOutputStream fos = new FileOutputStream(fname, false); int written=0; while(written<kilos) { System.out.print("."); fos.write(bbuf, 0, 1024)...
18,840
public FillTest(String fname, int kilos) throws FileNotFoundException, IOException{ byte[] bbuf=new byte[1024]; for(int i=0; i<1024; i++) bbuf[i]=(byte)(i%8+65); FileOutputStream fos = new FileOutputStream(fname, false); int written=0; while(written<kilos) { System.out.print("."); fos.write(bbuf, 0, 1024)...
public FillTest(String fname, int kilos) throws FileNotFoundException, IOException{ byte[] bbuf=new byte[1024]; for(int i=0; i<1024; i++) bbuf[i]=(byte)(i%8+65); FileOutputStream fos = new FileOutputStream(fname, false); int written=0; while(written<kilos) { System.out.print("."); fos.write(bbuf, 0, 1024)...
18,841
protected LogManager() { if (logManager != null) throw new IllegalStateException( "there can be only one LogManager; use LogManager.getLogManager()"); logManager = this; loggers = new java.util.HashMap(); rootLogger = new Logger("", null); addLogger(rootLogger); /* Make sure that Lo...
protected LogManager() { if (logManager != null) throw new IllegalStateException( "there can be only one LogManager; use LogManager.getLogManager()"); logManager = this; loggers = new java.util.HashMap(); rootLogger = new Logger("", null); addLogger(rootLogger); /* Make sure that Lo...
18,842
public synchronized boolean addLogger(Logger logger) { /* To developers thinking about to remove the 'synchronized' * declaration from this method: Please read the comment * in java.util.logging.Logger.getLogger(String, String) * and make sure that whatever you change wrt. synchronization * does n...
publicsynchronizedbooleanaddLogger(Loggerlogger){/*Todevelopersthinkingabouttoremovethe'synchronized'*declarationfromthismethod:Pleasereadthecomment*injava.util.logging.Logger.getLogger(String,String)*andmakesurethatwhateveryouchangewrt.synchronization*doesnotendangerthread-safetyofLogger.getLogger.*Thecurrentimplement...
18,843
public synchronized boolean addLogger(Logger logger) { /* To developers thinking about to remove the 'synchronized' * declaration from this method: Please read the comment * in java.util.logging.Logger.getLogger(String, String) * and make sure that whatever you change wrt. synchronization * does n...
public synchronized boolean addLogger(Logger logger) { /* To developers thinking about to remove the 'synchronized' * declaration from this method: Please read the comment * in java.util.logging.Logger.getLogger(String, String) * and make sure that whatever you change wrt. synchronization * does n...
18,844
public synchronized boolean addLogger(Logger logger) { /* To developers thinking about to remove the 'synchronized' * declaration from this method: Please read the comment * in java.util.logging.Logger.getLogger(String, String) * and make sure that whatever you change wrt. synchronization * does n...
public synchronized boolean addLogger(Logger logger) { /* To developers thinking about to remove the 'synchronized' * declaration from this method: Please read the comment * in java.util.logging.Logger.getLogger(String, String) * and make sure that whatever you change wrt. synchronization * does n...
18,845
public synchronized boolean addLogger(Logger logger) { /* To developers thinking about to remove the 'synchronized' * declaration from this method: Please read the comment * in java.util.logging.Logger.getLogger(String, String) * and make sure that whatever you change wrt. synchronization * does n...
public synchronized boolean addLogger(Logger logger) { /* To developers thinking about to remove the 'synchronized' * declaration from this method: Please read the comment * in java.util.logging.Logger.getLogger(String, String) * and make sure that whatever you change wrt. synchronization * does n...
18,846
public void checkAccess() throws SecurityException { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(controlPermission); }
public void checkAccess() throws SecurityException { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(controlPermission); }
18,847
static final Object createInstance(String className, Class ofClass) { Class klass; if ((className == null) || (className.length() == 0)) return null; try { klass = Class.forName(className); if (!ofClass.isAssignableFrom(klass)) return null; return klass.newInstance(); } catch ...
static final Object createInstance(String className, Class ofClass) { Class klass; if ((className == null) || (className.length() == 0)) return null; try { klass = Class.forName(className); if (!ofClass.isAssignableFrom(klass)) return null; return klass.newInstance(); } catch ...
18,848
static boolean getBooleanProperty(String name, boolean defaultValue) { try { return (new Boolean(getLogManager().getProperty(name))) .booleanValue(); } catch (Exception ex) { return defaultValue; } }
static boolean getBooleanProperty(String name, boolean defaultValue) { try { return (new Boolean(getLogManager().getProperty(name))) .booleanValue(); } catch (Exception ex) { return defaultValue; } }
18,849
static final Object getInstanceProperty(String propertyName, Class ofClass, Class defaultClass) { Class klass = getClassProperty(propertyName, defaultClass); if (klass == null) return null; try { Object obj = klass.newInstance(); if (ofClass.isInstance(obj)) return obj; } ...
static final Object getInstanceProperty(String propertyName, Class ofClass, Class defaultClass) { Class klass = getClassProperty(propertyName, defaultClass); if (klass == null) return null; try { Object obj = klass.newInstance(); if (ofClass.isInstance(obj)) return obj; } ...
18,850
public synchronized void readConfiguration() throws IOException, SecurityException { String path; InputStream inputStream; path = System.getProperty("java.util.logging.config.file"); if ((path == null) || (path.length() == 0)) { String url = (System.getProperty("gnu.classpath.home.url")...
public synchronized void readConfiguration() throws IOException, SecurityException String path; InputStream inputStream; path = System.getProperty("java.util.logging.config.file"); if ((path == null) || (path.length() == 0)) String url = (System.getProperty("gnu.classpath.home.url") ...
18,851
public synchronized void readConfiguration() throws IOException, SecurityException { String path; InputStream inputStream; path = System.getProperty("java.util.logging.config.file"); if ((path == null) || (path.length() == 0)) { String url = (System.getProperty("gnu.classpath.home.url")...
public synchronized void readConfiguration() throws IOException, SecurityException { String path; InputStream inputStream; path = System.getProperty("java.util.logging.config.file"); if ((path == null) || (path.length() == 0)) { String url = (System.getProperty("gnu.classpath.home.url")...
18,852
public synchronized void reset() throws SecurityException { /* Throw a SecurityException if the caller does not have the * permission to control the logging infrastructure. */ checkAccess(); properties = new Properties(); Iterator iter = loggers.values().iterator(); while (iter.hasNext()) ...
public synchronized void reset() throws SecurityException { /* Throw a SecurityException if the caller does not have the * permission to control the logging infrastructure. */ checkAccess(); properties = new Properties(); Iterator iter = loggers.values().iterator(); while (iter.hasNext()) ...
18,853
public LoginException (String message) { super (message); }
public LoginException() { super (message); }
18,854
public LoginException (String message) { super (message); }
public LoginException (String message) { }
18,855
public static CompletionStatus from_int(int completion) { try { return states [ completion ]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid completion status " + completion); bad.minor = Minor.Enumeration; throw ...
public static CompletionStatus from_int(int completion) { try { return states[completion]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid completion status " + completion); bad.minor = Minor.Enumeration; throw bad...
18,856
protected SAXTransformerFactory() { }
protected SAXTransformerFactory() { }
18,857
public void close() throws IOException { super.close(); //mark the filesystem clean superblock.setState(Ext2Constants.EXT2_VALID_FS); }
public void close() throws IOException { super.close(); //mark the filesystem clean superblock.setState(Ext2Constants.EXT2_VALID_FS); }
18,858
public byte[] getBlock(long nr) throws IOException{ //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //check if the block has already been retrieved if(blockCache.containsKey(key)) ...
publicif(isClosed()) throw new IOException("FS closed"); byte[]if(isClosed()) throw new IOException("FS closed"); getBlock(longif(isClosed()) throw new IOException("FS closed"); nr)if(isClosed()) throw new IOException("FS closed"); throwsif(isClosed()) throw new IOException("FS closed"); IOException{ //log.debug("blo...
18,859
public void stateChanged(ChangeEvent e) { // System.err.println(this + ".stateChanged()"); calculatePreferredSize(); layoutContainer(scrollbar); getThumbBounds(); scrollbar.repaint(); }
public void stateChanged(ChangeEvent e) { // System.err.println(this + ".stateChanged()"); calculatePreferredSize(); layoutContainer(scrollbar); getThumbBounds(); scrollbar.repaint(); }
18,861
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o...
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o...
18,862
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o...
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o...
18,863
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(200, null); scrollTimer.setRepeats(true); installComponents(); installDefaults(); configureScrollBarColors(...
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(200, null); scrollTimer.setRepeats(true); installComponents(); installDefaults(); configureScrollBarColors(...
18,865
public void paint(Graphics g, JComponent c) { layoutContainer(scrollbar); paintTrack(g, c, getTrackBounds()); paintThumb(g, c, getThumbBounds()); if (trackHighlight == INCREASE_HIGHLIGHT) paintIncreaseHighlight(g); else if (trackHighlight == DECREASE_HIGHLIGHT) paintDecreaseHighlight(g); }
public void paint(Graphics g, JComponent c) { paintTrack(g, c, getTrackBounds()); paintThumb(g, c, getThumbBounds()); if (trackHighlight == INCREASE_HIGHLIGHT) paintIncreaseHighlight(g); else if (trackHighlight == DECREASE_HIGHLIGHT) paintDecreaseHighlight(g); }
18,866
public JScrollBar createHorizontalScrollBar() { return new JScrollBar(SwingConstants.HORIZONTAL); }
public JScrollBar createHorizontalScrollBar() { return new ScrollBar(SwingConstants.HORIZONTAL); }
18,867
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
18,868
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
18,869
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
18,870
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
18,871
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
18,872
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ...
18,873
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod...
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod...
18,874
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod...
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vp != null && event.getSource() == vp) { ...
18,875
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod...
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod...
18,876
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod...
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod...
18,877
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod...
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod...
18,878
public JScrollBar createVerticalScrollBar() { return new JScrollBar(SwingConstants.VERTICAL); }
public JScrollBar createVerticalScrollBar() { return new ScrollBar(SwingConstants.VERTICAL); }
18,879
protected DocumentBuilderFactory() { } // DocumentBuilderFactory()
protected DocumentBuilderFactory() { } // DocumentBuilderFactory()
18,881
public void setCoalescing(boolean value) { coalescing = value; } // setCoalescing()
public void setCoalescing(boolean value) { coalescing = value; } // setCoalescing()
18,882
public void setIgnoringComments(boolean value) { ignoreComments = value; } // setIgnoringComments()
public void setIgnoringComments(boolean value) { ignoreComments = value; } // setIgnoringComments()
18,883
public void setIgnoringElementContentWhitespace(boolean value) { whitespace = value; } // setIgnoringElementContentWhitespace()
public void setIgnoringElementContentWhitespace(boolean value) { whitespace = value; } // setIgnoringElementContentWhitespace()
18,884
public void setValidating(boolean value) { validating = value; } // setValidating()
public void setValidating(boolean value) { validating = value; } // setValidating()
18,885
private static String decodeName(int platform, int encoding, int language, ByteBuffer buffer, int offset, int len) { byte[] byteBuf; String charsetName; int oldPosition; charsetName = getCharsetName(platform, language, encoding); if (charsetName == null) return n...
private static String decodeName(int platform, int encoding, int language, ByteBuffer buffer, int offset, int len) { byte[] byteBuf; String charsetName; int oldPosition; charsetName = getCharsetName(platform, language, encoding); if (charsetName == null) return n...
18,887
private static String decodeName(int platform, int encoding, int language, ByteBuffer buffer, int offset, int len) { byte[] byteBuf; String charsetName; int oldPosition; charsetName = getCharsetName(platform, language, encoding); if (charsetName == null) return n...
private static String decodeName(int platform, int encoding, int language, ByteBuffer buffer, int offset, int len) { byte[] byteBuf; String charsetName; int oldPosition; charsetName = getCharsetName(platform, language, encoding); if (charsetName == null) return n...
18,888
public synchronized boolean equals(Object o) { if (this == o) return true; if (!(o instanceof SimpleTimeZone)) return false; SimpleTimeZone zone = (SimpleTimeZone) o; if (zone.hashCode() != hashCode() || !getID().equals(zone.getID()) || rawOffset != zone.rawOffset || useDaylight != zone.useDayl...
public synchronized boolean equals(Object o) { if (this == o) return true; if (!(o instanceof SimpleTimeZone)) return false; SimpleTimeZone zone = (SimpleTimeZone) o; if (zone.hashCode() != hashCode() || !getID().equals(zone.getID()) || rawOffset != zone.rawOffset || useDaylight != zone.useDayl...
18,889
public boolean hasSameRules(TimeZone other) { if (this == other) return true; if (!(other instanceof SimpleTimeZone)) return false; SimpleTimeZone zone = (SimpleTimeZone) other; if (zone.hashCode() != hashCode() || rawOffset != zone.rawOffset || useDaylight != zone.useDaylight) return fals...
public boolean hasSameRules(TimeZone other) { if (this == other) return true; if (!(other instanceof SimpleTimeZone)) return false; SimpleTimeZone zone = (SimpleTimeZone) other; if (zone.hashCode() != hashCode() || rawOffset != zone.rawOffset || useDaylight != zone.useDaylight) return fals...
18,891
private boolean isBefore(int calYear, int calMonth, int calDayOfMonth, int calDayOfWeek, int calMillis, int mode, int month, int day, int dayOfWeek, int millis) { // This method is called by Calendar, so we mustn't use that class. // We have to do all calculations by hand. // check the months...
private boolean isBefore(int calYear, int calMonth, int calDayOfMonth, int calDayOfWeek, int calMillis, int mode, int month, int day, int dayOfWeek, int millis) { // This method is called by Calendar, so we mustn't use that class. // We have to do all calculations by hand. // check the months...
18,892
private void readObject(java.io.ObjectInputStream input) throws java.io.IOException, ClassNotFoundException { input.defaultReadObject(); if (serialVersionOnStream == 0) { // initialize the new fields to default values. dstSavings = 60 * 60 * 1000; endMode = DOW_IN_MONTH_MODE; startMode = DOW_IN_MONTH_M...
private void readObject(java.io.ObjectInputStream input) throws java.io.IOException, ClassNotFoundException { input.defaultReadObject(); if (serialVersionOnStream == 0) { // initialize the new fields to default values. dstSavings = 60 * 60 * 1000; endMode = DOW_IN_MONTH_MODE; startMode = DOW_IN_MONTH_M...
18,893
public void setEndRule(int month, int day, int dayOfWeek, int time) { this.endMode = checkRule(month, day, dayOfWeek); this.endMonth = month; // FIXME: XXX: JDK 1.2 allows negative values and has 2 new variations // of this method. this.endDay = Math.abs(day); this.endDayOfWeek = Math.abs(dayOfWeek...
public void setEndRule(int month, int day, int dayOfWeek, int time) { this.endMode = checkRule(month, day, dayOfWeek); this.endMonth = month; // FIXME: XXX: JDK 1.2 allows negative values and has 2 new variations // of this method. this.endDay = day; this.endDayOfWeek = Math.abs(dayOfWeek); this.e...
18,894
public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMode = checkRule(month, day, dayOfWeek); this.startMonth = month; // FIXME: XXX: JDK 1.2 allows negative values and has 2 new variations // of this method. this.startDay = Math.abs(day); this.startDayOfWeek = Math.abs...
public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMode = checkRule(month, day, dayOfWeek); this.startMonth = month; // FIXME: XXX: JDK 1.2 allows negative values and has 2 new variations // of this method. this.startDay = day; this.startDayOfWeek = Math.abs(dayOfWeek);...
18,896
public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMode = checkRule(month, day, dayOfWeek); this.startMonth = month; // FIXME: XXX: JDK 1.2 allows negative values and has 2 new variations // of this method. this.startDay = Math.abs(day); this.startDayOfWeek = Math.abs...
public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMode = checkRule(month, day, dayOfWeek); this.startMonth = month; // FIXME: XXX: JDK 1.2 allows negative values and has 2 new variations // of this method. this.startDay = Math.abs(day); this.startDayOfWeek = Math.abs...
18,897
public String toString() { // the test for useDaylight is an incompatibility to jdk1.2, but // I think this shouldn't hurt. return getClass().getName() + "[" + "id=" + getID() + ",offset=" + rawOffset + ",dstSavings=" + dstSavings + ",useDaylight=" + useDaylight + (useDaylight ? ",...
public String toString() { // the test for useDaylight is an incompatibility to jdk1.2, but // I think this shouldn't hurt. return getClass().getName() + "[" + "id=" + getID() + ",offset=" + rawOffset + ",dstSavings=" + dstSavings + ",useDaylight=" + useDaylight + (useDaylight ? ",...
18,898
protected SinkChannel (SelectorProvider provider) { super (provider); }
protected SinkChannel(SelectorProvider provider) { super (provider); }
18,899
protected SinkChannel (SelectorProvider provider) { super (provider); }
protected SinkChannel (SelectorProvider provider) { super(provider); }
18,900
public long write(ByteBuffer[] srcs) throws IOException;
public long write(ByteBuffer[] srcs) throws IOException;
18,901
protected SourceChannel (SelectorProvider provider) { super (provider); }
protected SourceChannel(SelectorProvider provider) { super (provider); }
18,902
protected SourceChannel (SelectorProvider provider) { super (provider); }
protected SourceChannel (SelectorProvider provider) { super(provider); }
18,903
public long read(ByteBuffer[] srcs) throws IOException;
public long read(ByteBuffer[] srcs) throws IOException;
18,904
getMaxExpansion(int value){ //************ Implement me!!!!!!!!! return(5);}
getMaxExpansion(int value){ //************ Implement me!!!!!!!!! return(5);}
18,905
getOffset(){ return(pos);}
getOffset(){ return(pos);}
18,906
previous(){ --pos; if (pos < 0) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));}
previous(){ --pos; if (pos < 0) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));}
18,907
previous(){ --pos; if (pos < 0) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));}
previous(){ --pos; if (pos < 0) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));}
18,908
setOffset(int offset){ if (offset < 0) throw new IllegalArgumentException("Negative offset: " + offset); if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) throw new IllegalArgumentException("Offset too large: " + ...
setOffset(int offset){ if (offset < 0) throw new IllegalArgumentException("Negative offset: " + offset); if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) throw new IllegalArgumentException("Offset too large: " + ...
18,909
setOffset(int offset){ if (offset < 0) throw new IllegalArgumentException("Negative offset: " + offset); if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) throw new IllegalArgumentException("Offset too large: " + ...
setOffset(int offset){ if (offset < 0) throw new IllegalArgumentException("Negative offset: " + offset); if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) throw new IllegalArgumentException("Offset too large: " + ...
18,910
setOffset(int offset){ if (offset < 0) throw new IllegalArgumentException("Negative offset: " + offset); if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) throw new IllegalArgumentException("Offset too large: " + ...
setOffset(int offset){ if (offset < 0) throw new IllegalArgumentException("Negative offset: " + offset); if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) throw new IllegalArgumentException("Offset too large: " + ...
18,911
setText(String str){ this.str = str; pos = 0;}
setText(String str){ this.str = str; pos = 0;}
18,912
public static String[] read(InputStream input) { WStringSeqHolder h = new WStringSeqHolder(); h._read(input); return h.value; }
public static String[] read(InputStream input) { WStringSeqHolder h = new WStringSeqHolder(); h._read(input); return h.value; }
18,913
public static void write(OutputStream output, String[] value) { WStringSeqHolder h = new WStringSeqHolder(value); h._write(output); }
public static void write(OutputStream output, String[] value) { WStringSeqHolder h = new WStringSeqHolder(value); h._write(output); }
18,914
public WStringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public WStringSeqHolder() { value = initial_value; typecode.setLength(value.length); }
18,915
public WStringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public WStringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); }
18,916
public BigDecimal (BigInteger num, int scale) throws NumberFormatException { if (scale < 0) throw new NumberFormatException ("scale of " + scale + " is < 0"); this.intVal = num; this.scale = scale; }
public BigDecimal (BigInteger num) { if (scale < 0) throw new NumberFormatException ("scale of " + scale + " is < 0"); this.intVal = num; this.scale = scale; }
18,917
public BigDecimal (BigInteger num, int scale) throws NumberFormatException { if (scale < 0) throw new NumberFormatException ("scale of " + scale + " is < 0"); this.intVal = num; this.scale = scale; }
public BigDecimal (BigInteger num, int scale) throws NumberFormatException { if (scale < 0) throw new NumberFormatException ("scale of " + scale + " is < 0"); this.intVal = num; this.scale = scale; }
18,918
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { String str = progressBar.getString(); int full = getAmountFull(b, width, height); Point placement = getStringPlacement(g, progressBar.getString(), ...
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { String str = progressBar.getString(); int full = getAmountFull(b, width, height); Point placement = getStringPlacement(g, progressBar.getString(), ...
18,919
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { String str = progressBar.getString(); int full = getAmountFull(b, width, height); Point placement = getStringPlacement(g, progressBar.getString(), ...
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { String str = progressBar.getString(); int full = getAmountFull(b, width, height); Point placement = getStringPlacement(g, progressBar.getString(), ...
18,920
public Font deriveFont (AffineTransform a){ if (a == null) throw new IllegalArgumentException ("Affine transformation is null"); return peer.deriveFont (this, a);}
public Font deriveFont (AffineTransform a){ if (a == null) throw new IllegalArgumentException ("Affine transformation is null"); return peer.deriveFont (this, a);}
18,921
public Font deriveFont (AffineTransform a){ if (a == null) throw new IllegalArgumentException ("Affine transformation is null"); return peer.deriveFont (this, a);}
public Font deriveFont (AffineTransform a){ if (a == null) throw new IllegalArgumentException ("Affine transformation is null"); return peer.deriveFont (this, a);}
18,922
protected AbstractSelectableChannel (SelectorProvider provider) { this.provider = provider; }
protected AbstractSelectableChannel(SelectorProvider provider) { this.provider = provider; }
18,923
public final Object blockingLock () { return LOCK; }
public final Object blockingLock() { return LOCK; }
18,924
public final SelectableChannel configureBlocking (boolean block) throws IOException { synchronized (LOCK) { blocking = true; implConfigureBlocking (block); } return this; }
public final SelectableChannel configureBlocking(boolean blocking) throws IOException { synchronized (LOCK) { blocking = true; implConfigureBlocking (block); } return this; }
18,925
public final SelectableChannel configureBlocking (boolean block) throws IOException { synchronized (LOCK) { blocking = true; implConfigureBlocking (block); } return this; }
public final SelectableChannel configureBlocking (boolean block) throws IOException { synchronized (blockingLock()) { blocking = true; implConfigureBlocking (block); } return this; }
18,926
public final SelectableChannel configureBlocking (boolean block) throws IOException { synchronized (LOCK) { blocking = true; implConfigureBlocking (block); } return this; }
public final SelectableChannel configureBlocking (boolean block) throws IOException { synchronized (LOCK) { blocking = true; implConfigureBlocking (block); } return this; }
18,927
protected final void implCloseChannel () throws IOException { implCloseSelectableChannel (); }
protected final void implCloseChannel() throws IOException { implCloseSelectableChannel (); }
18,928
protected final void implCloseChannel () throws IOException { implCloseSelectableChannel (); }
protected final void implCloseChannel () throws IOException { implCloseSelectableChannel(); }
18,929
protected abstract void implCloseSelectableChannel () throws IOException;
protected abstract void implCloseSelectableChannel () throws IOException;
18,930
protected abstract void implConfigureBlocking (boolean block) throws IOException;
protected abstract void implConfigureBlocking(boolean blocking) throws IOException;
18,931
public final boolean isRegistered() { return registered > 0; }
public final boolean isRegistered() { return ! keys.isEmpty(); }
18,932
public final SelectionKey keyFor(Selector selector) { try { return register (selector, 0, null); } catch (Exception e) { return null; } }
public final SelectionKey keyFor(Selector selector) { try { synchronized (blockingLock()) { return locate(selector); } } catch (Exception e) { return null; } }
18,933
private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }...
private SelectionKey locate(Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } } ...
18,934
private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }...
private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }...
18,935
private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }...
private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }...
18,936
private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }...
private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }...
18,937
private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }...
private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return null; } ...
18,938
public final SelectorProvider provider () { return provider; }
public final SelectorProvider provider() { return provider; }
18,939
public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ...
public final SelectionKey register(Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ...
18,940
public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ...
public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (! isOpen()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ...
18,941
public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ...
public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); if ((ops & ~validOps()) != 0) throw new IllegalArgumentException(); SelectionKey key = null; AbstractSelector selector = (AbstractSelector) se...
18,942
public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ...
public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (blockingLock()) { k = locate (selecto...
18,943