bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public long getDate() { return (getHeaderFieldDate("date", 0)); }
public long getDate() { return (getHeaderFieldDate("date", 0)); }
1,002
public static boolean getDefaultAllowUserInteraction() { return (def_allow_user_inter); }
public static boolean getDefaultAllowUserInteraction() { return (def_allow_user_inter); }
1,003
public static String getDefaultRequestProperty(String key) { return ((String) def_req_props.get(key.toLowerCase())); }
public static String getDefaultRequestProperty(String key) { return ((String) def_req_props.get(key.toLowerCase())); }
1,004
public boolean getDefaultUseCaches() { return (def_use_caches); }
public boolean getDefaultUseCaches() { return (def_use_caches); }
1,005
public boolean getDoInput() { return (doInput); }
public boolean getDoInput() { return (doInput); }
1,006
public boolean getDoOutput() { return (doOutput); }
public boolean getDoOutput() { return (doOutput); }
1,007
public long getExpiration() { return (getHeaderFieldDate("expires", 0)); }
public long getExpiration() { return (getHeaderFieldDate("expires", 0)); }
1,008
public static FileNameMap getFileNameMap() { return (fileNameMap); }
public static FileNameMap getFileNameMap() { return (fileNameMap); }
1,009
public String getHeaderField(String name) { for (int i = 0;; i++) { String key = getHeaderFieldKey(i); if (key == null) return (null); if (key.toLowerCase().equals(name.toLowerCase())) return (getHeaderField(i)); } }
public String getHeaderField(String name) { for (int i = 0;; i++) { String key = getHeaderFieldKey(i); if (key == null) return (null); if (key.toLowerCase().equals(name.toLowerCase())) return (getHeaderField(i)); } }
1,010
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale....
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale....
1,011
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale....
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale....
1,013
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale....
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale....
1,014
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale....
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale....
1,015
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); }
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); }
1,016
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); }
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); }
1,017
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); }
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } try { return Integer.parseInt(value); } catch (NumberFormatException e) { r...
1,018
public String getHeaderFieldKey(int index) { return (null); }
public String getHeaderFieldKey(int index) { return (null); }
1,019
public long getIfModifiedSince() { return (ifModifiedSince); }
public long getIfModifiedSince() { return (ifModifiedSince); }
1,020
public InputStream getInputStream() throws IOException { return (null); }
public InputStream getInputStream() throws IOException { return (null); }
1,021
public long getLastModified() { return (getHeaderFieldDate("last-modified", 0)); }
public long getLastModified() { return (getHeaderFieldDate("last-modified", 0)); }
1,022
public OutputStream getOutputStream() throws IOException { return (null); }
public OutputStream getOutputStream() throws IOException { return (null); }
1,023
public Permission getPermission() throws IOException { return (new java.security.AllPermission()); }
public Permission getPermission() throws IOException { return (new java.security.AllPermission()); }
1,024
public Map getRequestProperties() { return Collections.unmodifiableMap(req_props); }
public Map getRequestProperties() { return Collections.unmodifiableMap(req_props); }
1,025
public String getRequestProperty(String key) { return ((String) req_props.get(key.toLowerCase())); }
public String getRequestProperty(String key) { return ((String) req_props.get(key.toLowerCase())); }
1,026
public URL getURL() { return (url); }
public URL getURL() { return (url); }
1,027
public boolean getUseCaches() { return (useCaches); }
public boolean getUseCaches() { return (useCaches); }
1,028
public static String guessContentTypeFromName(String filename) { return (fileNameMap.getContentTypeFor(filename.toLowerCase())); }
public static String guessContentTypeFromName(String filename) { return (fileNameMap.getContentTypeFor(filename.toLowerCase())); }
1,029
public static String guessContentTypeFromStream(InputStream is) throws IOException { return ("application/octet-stream"); }
public static String guessContentTypeFromStream(InputStream is) throws IOException { return ("application/octet-stream"); }
1,030
public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); factory = fac; }
public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); factory = fac; }
1,031
public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); factory = fac; }
public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); SecurityManager s = System.getSecurityManager(); if (s != null) s.checkSetFactory(); URLConnection.factory = factory; }
1,032
public static synchronized void setDefaultAllowUserInteraction(boolean allow) { def_allow_user_inter = allow; }
public static synchronized void setDefaultAllowUserInteraction(boolean allow) { def_allow_user_inter = allow; }
1,033
public static synchronized void setDefaultRequestProperty(String key, String value) { def_req_props.put(key.toLowerCase(), value); }
public static synchronized void setDefaultRequestProperty(String key, String value) { def_req_props.put(key.toLowerCase(), value); }
1,034
public synchronized void setDefaultUseCaches(boolean use) { def_use_caches = use; }
public synchronized void setDefaultUseCaches(boolean use) { def_use_caches = use; }
1,035
public void setDoInput(boolean input) { doInput = input; }
public void setDoInput(boolean input) { if (connected) throw new IllegalStateException("Already connected"); doInput = input; }
1,036
public void setDoOutput(boolean output) { doOutput = output; }
public void setDoOutput(boolean output) { if (connected) throw new IllegalStateException("Already connected"); doOutput = output; }
1,037
public static void setFileNameMap(FileNameMap fileNameMap) { URLConnection.fileNameMap = fileNameMap; }
public static void setFileNameMap(FileNameMap fileNameMap) { URLConnection.fileNameMap = fileNameMap; }
1,038
public void setIfModifiedSince(long modified_since) { ifModifiedSince = modified_since; }
public void setIfModifiedSince(long modified_since) { ifModifiedSince = modified_since; }
1,039
public void setRequestProperty(String key, String value) { req_props.put(key.toLowerCase(), value); }
public void setRequestProperty(String key, String value) { req_props.put(key.toLowerCase(), value); }
1,040
public void setUseCaches(boolean use_caches) { useCaches = use_caches; }
public void setUseCaches(boolean use_caches) { useCaches = use_caches; }
1,041
public String toString() { return (url.toString()); }
public String toString() { return (url.toString()); }
1,042
createContentHandler(String mime_type);
ContentHandler createContentHandler(String mimeType);
1,043
public MimeTypeMapper() { }
public MimeTypeMapper() { ; }
1,044
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,045
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,046
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,047
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,048
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,049
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,050
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,051
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,052
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,053
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,054
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1,055
getContentTypeFor(String filename);
String getContentTypeFor(String filename);
1,056
public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(loc...
public SimpleDateFormat() { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(locale); numberFormat.setGrou...
1,057
public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(loc...
public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); numberFormat = NumberFormat.getInstance(locale); numberFormat.s...
1,058
protected SystemException(String a_reason, int a_minor, CompletionStatus a_completed ) { super(a_reason); minor = a_minor; completed = a_completed; }
protected SystemException(String a_reason, int a_minor, CompletionStatus a_completed ) { super(a_reason + " Minor: " + Integer.toHexString(a_minor) + " (" + (a_minor & 0xFFF) + "). Completed: "+a_completed); minor = a_minor; completed = a_completed; }
1,059
public DDC1ParseException(String s) { super(s); }
public DDC1ParseException(String s) { super(s); }
1,060
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl...
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl...
1,061
public void mousePressed (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); }
public void mousePressed (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); }
1,062
public void mouseReleased (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); }
public void mouseReleased (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); }
1,063
getIconImage(){ return(icon);}
getIconImage(){ return(icon);}
1,064
public void setPreferredWidth(int preferredWidth) { if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; }
public void setPreferredWidth(int preferredWidth) { if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; firePropertyChange("preferredWidth", oldPrefWidth, this.preferredWidth); }
1,065
public boolean send() throws Exception, AddressException, MessagingException { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it ...
public boolean send() throws Exception { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Multipart mp = new MimeMultipart();...
1,066
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M...
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. Mut...
1,067
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M...
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); else if (dataModel instanceof MutableComboBoxModel) { // Iterates over all items and removes each. M...
1,068
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M...
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M...
1,069
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M...
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M...
1,070
public abstract void generateCodeFor(VarReturnQuad quad);
public abstract void generateCodeFor(ConditionalBranchQuad quad);
1,073
FileURLLoader(URLClassLoader classloader, URL url) { super(classloader, url); dir = new File(baseURL.getFile()); }
FileURLLoader(URLClassLoader classloader, URL url, URL absoluteUrl) { super(classloader, url); dir = new File(baseURL.getFile()); }
1,074
FileURLLoader(URLClassLoader classloader, URL url) { super(classloader, url); dir = new File(baseURL.getFile()); }
FileURLLoader(URLClassLoader classloader, URL url) { super(classloader, url); dir = new File(baseURL.getFile()); }
1,075
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exte...
public JarURLLoader(URLClassLoader classloader, URL baseURL, URL absoluteUrl) { super(classloader, baseURL); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); ...
1,076
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exte...
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL, absoluteUrl); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); s...
1,077
private void addURLImpl(URL newUrl) { synchronized (this) { if (newUrl == null) return; // Silently ignore... // Reset the toString() value. thisString = null; // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loa...
private void addURLImpl(URL newUrl) { synchronized (this) { if (newUrl == null) return; // Silently ignore... // Reset the toString() value. thisString = null; // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loa...
1,078
private void addURLImpl(URL newUrl) { synchronized (this) { if (newUrl == null) return; // Silently ignore... // Reset the toString() value. thisString = null; // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loa...
private void addURLImpl(URL newUrl) { synchronized (this) { if (newUrl == null) return; // Silently ignore... // Reset the toString() value. thisString = null; // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loa...
1,079
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
1,080
public FileSystemException(String message, Throwable cause) { super(message, cause); }
public FileSystemException(String message, Throwable cause) { super(message, cause); }
1,081
public BlockReservation(boolean successful, long block, int preallocCount, long freeBlocksCount) { this.successful = successful; this.block = block; this.preallocCount = preallocCount; this.freeBlocksCount = freeBlocksCount; }
public BlockReservation(boolean successful, long block, int preallocCount) { this.successful = successful; this.block = block; this.preallocCount = preallocCount; this.freeBlocksCount = freeBlocksCount; }
1,082
public BlockReservation(boolean successful, long block, int preallocCount, long freeBlocksCount) { this.successful = successful; this.block = block; this.preallocCount = preallocCount; this.freeBlocksCount = freeBlocksCount; }
public BlockReservation(boolean successful, long block, int preallocCount, long freeBlocksCount) { this.successful = successful; this.block = block; this.preallocCount = preallocCount; }
1,083
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent()
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent()
1,084
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent()
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent()
1,085
public File createFileObject(File directory, String filename) { return null; // TODO } // createFileObject()
public File createFileObject(File directory, String filename) { return null; // TODO } // createFileObject()
1,087
public abstract File createNewFolder(File file) throws IOException;
public abstract File createNewFolder(File containingDir) throws IOException;
1,088
public static FileSystemView getFileSystemView() { return null; // TODO } // getFileSystemView()
public static FileSystemView getFileSystemView() { return null; // TODO } // getFileSystemView()
1,089
public File[] getFiles(File directory, boolean fileHiding) { return null; // TODO } // getFiles()
public File[] getFiles(File directory, boolean fileHiding) { return null; // TODO } // getFiles()
1,090
public File getHomeDirectory() { return null; // TODO } // getHomeDirectory()
public File getHomeDirectory() { return null; // TODO } // getHomeDirectory()
1,091
public File getParentDirectory(File directory) { return null; // TODO } // getParentDirectory()
public File getParentDirectory(File directory) { return null; // TODO } // getParentDirectory()
1,092
public abstract File[] getRoots();
public File[] getRoots() { return null; }
1,093
public abstract boolean isHiddenFile(File file);
public boolean isHiddenFile(File f) { return f.isHidden(); }
1,094
public abstract boolean isRoot(File file);
public boolean isRoot(File f) { return false; }
1,095
public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); }
public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); }
1,096
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create sessions panel createSessionsPanel(); // create emulator options panel createEmulatorOptionsPanel(); // create the button options ...
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create sessions panel createSessionsPanel(); // create emulator options panel createEmulatorOptionsPanel(); // create the button options ...
1,097
public final boolean hasFeature(int feature) { return ((this.features & feature) == feature); }
public final boolean hasFeature(int feature) { return ((this.features & feature) == feature); }
1,099
public MemoryResource claimMemoryResource(ResourceOwner owner, Address start, int size, int mode) throws ResourceNotFreeException;
public MemoryResource claimMemoryResource(ResourceOwner owner, Address start, Extent size, int mode) throws ResourceNotFreeException;
1,100
protected DoubleWordItem(int kind, int offsetToFP, Register lsb, Register msb) { super(kind, offsetToFP); this.lsb = lsb; this.msb = msb; }
protected DoubleWordItem(int kind, int offsetToFP, Register lsb, Register msb) { super(kind, offsetToFP); this.lsb = lsb; this.msb = msb; }
1,101
protected final Item clone(EmitterContext ec) { final DoubleWordItem res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: res = L1AHelper.requestDoubleWordRegisters(ec, getType()); final Register lsb = res.getLsbRegister(); final Register msb = res.getMsbRegister(); os...
protected final Item clone(EmitterContext ec) { final DoubleWordItem res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: res = L1AHelper.requestDoubleWordRegisters(ec, getType()); final Register lsb = res.getLsbRegister(); final Register msb = res.getMsbRegister(); os...
1,102
protected final Item clone(EmitterContext ec) { final DoubleWordItem res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: res = L1AHelper.requestDoubleWordRegisters(ec, getType()); final Register lsb = res.getLsbRegister(); final Register msb = res.getMsbRegister(); os...
protected final Item clone(EmitterContext ec) { final DoubleWordItem res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: res = L1AHelper.requestDoubleWordRegisters(ec, getType()); final Register lsb = res.getLsbRegister(); final Register msb = res.getMsbRegister(); os...
1,103
protected final Item clone(EmitterContext ec) { final DoubleWordItem res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: res = L1AHelper.requestDoubleWordRegisters(ec, getType()); final Register lsb = res.getLsbRegister(); final Register msb = res.getMsbRegister(); os...
protected final Item clone(EmitterContext ec) { final DoubleWordItem res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: res = L1AHelper.requestDoubleWordRegisters(ec, getType()); final Register lsb = res.getLsbRegister(); final Register msb = res.getMsbRegister(); os...
1,104
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: os.writePUSH(FP, getM...
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: os.writePUSH(FP, getM...
1,105
final void release(EmitterContext ec) { //assertCondition(!ec.getVStack().contains(this), "Cannot release while on vstack"); final X86RegisterPool pool = ec.getPool(); switch (getKind()) { case Kind.REGISTER: pool.release(lsb); pool.release(msb); break; case Kind.LOCAL: // nothing to do break; case Kin...
final void release(EmitterContext ec) { //assertCondition(!ec.getVStack().contains(this), "Cannot release while on vstack"); final X86RegisterPool pool = ec.getPool(); switch (getKind()) { case Kind.REGISTER: pool.release(lsb); pool.release(msb); break; case Kind.LOCAL: // nothing to do break; case Kin...
1,106