rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public void run() { if(isDisposed()) { return; } m_testIsRunning = false;// updateProgressBar(m_progressBar.getSelection() + 1, false); if(hasErrors()) { fNextAction.setEnabled(true); fPrevAction.setEnabled(true); } }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/TestRunnerViewPart.java/buggy/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java
private void refreshCounters() {// m_counterPanel.setSuiteCount(m_suiteCount);// m_counterPanel.setTestCount(m_testCount);// m_counterPanel.setMethodTotalCount(m_methodTotalCount); m_counterPanel.setMethodCount(m_methodCount); m_counterPanel.setPassedCount(m_passedCount); m_counterPanel.setFailedCou...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/TestRunnerViewPart.java/buggy/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java
public void run() { if(isDisposed()) { return; } m_counterPanel.reset(); m_failureTraceComponent.clear(); fProgressBar.reset(testCount);// m_progressBar.setSelection(0);// m_progressBar.setMaximum(0); clearStatus(); for(Enumer...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/TestRunnerViewPart.java/buggy/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java
private void resetProgressBar(final int total) { fProgressBar.reset(total); fProgressBar.setMaximum(total, total);// m_progressBar.setForeground(fOKColor);// m_progressBar.setMinimum(0);// m_progressBar.setMaximum(total);// m_progressBar.setSelection(0); }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/TestRunnerViewPart.java/buggy/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java
protected void selectFirstFailure() {// OldTestRunInfo firstFailure = (OldTestRunInfo) fFailures.get(0);// if((firstFailure != null) && (m_activeRunTab.getSelectedTestId() == null)) {// m_activeRunTab.setSelectedTest(firstFailure.getTestId());// handleTestSelected(firstFailure.getTestId());// } }
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/TestRunnerViewPart.java/buggy/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java
public void startTestRunListening(IJavaProject project, String subName, int port, ILaunch launch) { m_LastLaunch = launch; m_workingProject = project; m_hasFailures= false; aboutToLaunch(subName...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/939c2626f5ef7c6550d3a506ac6dd14b7667f498/TestRunnerViewPart.java/buggy/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java
String key = osName.replace (' ', '_');
String key = osName.replace (' ', '_');
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/TargetFactory.java/buggy/src/lib/com/izforge/izpack/util/TargetFactory.java
input = getClass ().getResourceAsStream (key);
input = getClass ().getResourceAsStream (key);
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/TargetFactory.java/buggy/src/lib/com/izforge/izpack/util/TargetFactory.java
InputStreamReader streamReader = null;
InputStreamReader streamReader = null;
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/TargetFactory.java/buggy/src/lib/com/izforge/izpack/util/TargetFactory.java
streamReader = new InputStreamReader (input);
streamReader = new InputStreamReader (input);
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/TargetFactory.java/buggy/src/lib/com/izforge/izpack/util/TargetFactory.java
line = line.trim (); if (!line.equals (""))
line = line.trim (); if (!line.equals (""))
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/TargetFactory.java/buggy/src/lib/com/izforge/izpack/util/TargetFactory.java
}
}
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/TargetFactory.java/buggy/src/lib/com/izforge/izpack/util/TargetFactory.java
_graph = parseFile( _graphmlFileName );
_graphList.add( parseFile( _graphmlFileName ) );
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { _graph = parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( Fil...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1c40fdf74f5a59382009b042fdf38791cad4db11/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { _graph = parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( Fil...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1c40fdf74f5a59382009b042fdf38791cad4db11/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
analyseSubGraphs();
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { _graph = parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( Fil...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1c40fdf74f5a59382009b042fdf38791cad4db11/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
analyseSubGraphs();
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { _graph = parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( Fil...
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/1c40fdf74f5a59382009b042fdf38791cad4db11/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
label = new JLabel(" - " + a.getName() + " <" + a.getEmail() + ">",
String email = (a.getEmail() != null) ? (" <" + a.getEmail() + ">") : ""; label = new JLabel(" - " + a.getName() + email,
public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(0, 0, 0, 0); gbConstra...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6f40ecd5b1867dc144086f0070c210d4c6e581ec/HelloPanel.java/clean/src/lib/com/izforge/izpack/panels/HelloPanel.java
str = parent.langpack.getString("HelloPanel.url") + idata.info.getAppURL(); appURLLabel = new JLabel(str, parent.icons.getImageIcon("bookmark"), JLabel.TRAILING); centerPanel.add(appURLLabel);
if (idata.info.getAppURL() != null) { str = parent.langpack.getString("HelloPanel.url") + idata.info.getAppURL(); appURLLabel = new JLabel(str, parent.icons.getImageIcon("bookmark"), JLabel.TRAILING); centerPanel.add(appURLLabel); }
public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(0, 0, 0, 0); gbConstra...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6f40ecd5b1867dc144086f0070c210d4c6e581ec/HelloPanel.java/clean/src/lib/com/izforge/izpack/panels/HelloPanel.java
if (!pf.isBackReference())
if (!pf.isBackReference() && !((Pack)packs.get(i)).loose)
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/670d2dce35e3033459b7343ab34ed921bd2331ed/Unpacker.java/clean/src/lib/com/izforge/izpack/installer/Unpacker.java
ObjectInputStream pis = objIn;
InputStream pis = objIn;
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/670d2dce35e3033459b7343ab34ed921bd2331ed/Unpacker.java/clean/src/lib/com/izforge/izpack/installer/Unpacker.java
int maxBytes = (pf.length() - bytesCopied < buffer.length ? (int) (pf.length() - bytesCopied) : buffer.length);
int maxBytes = (int)Math.min(pf.length() - bytesCopied, buffer.length);
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/670d2dce35e3033459b7343ab34ed921bd2331ed/Unpacker.java/clean/src/lib/com/izforge/izpack/installer/Unpacker.java
} else
} else {
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/b15145af6d6f9ba96e23003cbfd73a062ef168be/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
setForeground(list.getForeground()); setBackground(list.getBackground()); }
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/b15145af6d6f9ba96e23003cbfd73a062ef168be/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
ImageIcon icon = new ImageIcon(this.getClass().getResource("/res/flag." + iso3));
ImageIcon icon; icon = new ImageIcon(this.getClass().getResource("/res/flag." + iso3));
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/b15145af6d6f9ba96e23003cbfd73a062ef168be/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
grayIcons.put( iso3, new ImageIcon(GrayFilter.createDisabledImage(icon.getImage())));
icon = new ImageIcon(GrayFilter.createDisabledImage(icon.getImage())); grayIcons.put(iso3, icon);
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/b15145af6d6f9ba96e23003cbfd73a062ef168be/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
public synchronized Object borrowObject(Object key) throws Exception { long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new C...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/66db2c7e42d00783cf44264a3119df58c2eaca9c/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
clear();
clearOldest();
public synchronized Object borrowObject(Object key) throws Exception { long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new C...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/66db2c7e42d00783cf44264a3119df58c2eaca9c/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
try { super.clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); }
public Object clone () throws OutOfMemoryError { try { super.clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); } ShortcutData result = new ShortcutData (); result.type = type; result.iconIndex = iconIndex; result.initialState = in...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d11fc845a2a89fc77729603e3e46364815b8de54/ShortcutData.java/buggy/src/lib/com/izforge/izpack/panels/ShortcutData.java
public boolean validateObject(Object obj) { return true; }
public boolean validateObject(Object obj) { return valid; }
public boolean validateObject(Object obj) { return true; }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/feea8a0d3c7e4912fe7929bd4f393db752cfaacf/TestGenericObjectPool.java/clean/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java
try { result = new String( currentUserLinkPath, "UTF-16" ); } catch (UnsupportedEncodingException e) { e.printStackTrace(); }
result = currentUserLinkPath;
public String getLinkPath(int userType) { String result = null; if (userType == CURRENT_USER) { try { result = new String( currentUserLinkPath, "UTF-16" ); } catch (UnsupportedEncodingException e) { // TODO ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de51f6f2bd8a33daaffc3ddf3fa1cb9e0a050e97/ShellLink.java/buggy/src/lib/com/izforge/izpack/util/os/ShellLink.java
try { result = new String(allUsersLinkPath, "UTF-16"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); }
result = allUsersLinkPath;
public String getLinkPath(int userType) { String result = null; if (userType == CURRENT_USER) { try { result = new String( currentUserLinkPath, "UTF-16" ); } catch (UnsupportedEncodingException e) { // TODO ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de51f6f2bd8a33daaffc3ddf3fa1cb9e0a050e97/ShellLink.java/buggy/src/lib/com/izforge/izpack/util/os/ShellLink.java
String result = null; try { result = new String(allUsersLinkPath, "UTF-16"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return result;
return allUsersLinkPath;
public String getallUsersLinkPath() { String result = null; try { result = new String(allUsersLinkPath, "UTF-16"); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } return r...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de51f6f2bd8a33daaffc3ddf3fa1cb9e0a050e97/ShellLink.java/buggy/src/lib/com/izforge/izpack/util/os/ShellLink.java
String result =null; try { result = new String( currentUserLinkPath, "UTF-16"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return result;
return currentUserLinkPath;
public String getcurrentUserLinkPath() { String result =null; try { result = new String( currentUserLinkPath, "UTF-16"); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } r...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de51f6f2bd8a33daaffc3ddf3fa1cb9e0a050e97/ShellLink.java/buggy/src/lib/com/izforge/izpack/util/os/ShellLink.java
private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException
private void setAllLinkPaths() throws IllegalArgumentException
private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not....
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de51f6f2bd8a33daaffc3ddf3fa1cb9e0a050e97/ShellLink.java/buggy/src/lib/com/izforge/izpack/util/os/ShellLink.java
if (userType == CURRENT_USER && new String(currentUserLinkPath, "UTF-16").length() == 0)
if (userType == CURRENT_USER && currentUserLinkPath.length() == 0)
private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not....
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de51f6f2bd8a33daaffc3ddf3fa1cb9e0a050e97/ShellLink.java/buggy/src/lib/com/izforge/izpack/util/os/ShellLink.java
else if (userType == ALL_USERS && new String( allUsersLinkPath, "UTF-16").length() == 0)
else if (userType == ALL_USERS && allUsersLinkPath.length() == 0)
private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not....
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de51f6f2bd8a33daaffc3ddf3fa1cb9e0a050e97/ShellLink.java/buggy/src/lib/com/izforge/izpack/util/os/ShellLink.java
if ( new String(allUsersLinkPath, "UTF-16").length() == 0 && new String(currentUserLinkPath, "UTF-16").length() == 0) { throw (new IllegalArgumentException(
if ( allUsersLinkPath.length() == 0 && currentUserLinkPath.length() == 0) { throw (new IllegalArgumentException(
private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not....
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de51f6f2bd8a33daaffc3ddf3fa1cb9e0a050e97/ShellLink.java/buggy/src/lib/com/izforge/izpack/util/os/ShellLink.java
try {
if (!_pool.empty()) {
public synchronized Object borrowObject() throws Exception { assertOpen(); Object obj = null; try { obj = _pool.pop(); } catch(EmptyStackException e) { if(null == _factory) { throw new NoSuchElementException(); } else { obj =...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/1507bef69094d633f516cf26fcb94e5e2a6ddb7a/StackObjectPool.java/clean/src/java/org/apache/commons/pool/impl/StackObjectPool.java
} catch(EmptyStackException e) {
} else {
public synchronized Object borrowObject() throws Exception { assertOpen(); Object obj = null; try { obj = _pool.pop(); } catch(EmptyStackException e) { if(null == _factory) { throw new NoSuchElementException(); } else { obj =...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/1507bef69094d633f516cf26fcb94e5e2a6ddb7a/StackObjectPool.java/clean/src/java/org/apache/commons/pool/impl/StackObjectPool.java
VariableSubstitutor substitutor = new VariableSubstitutor (idata.getVariableValueMap ());
VariableSubstitutor substitutor = new VariableSubstitutor (idata.getVariables());
private void analyzeShortcutSpec () { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } // ---------------------------------------------------- // find out if we should simulate a not supported // scenario // ---------------------------------------------------- XMLEl...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
if ((me.getModifiers() & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK) model.setSelectedDisplay(d, true); else model.setSelectedDisplay(d);
if (!(previousDisplay instanceof ImageNode)) b = false; model.setSelectedDisplay(d, b);
public void mousePressed(MouseEvent me) { ImageDisplay d = findParentDisplay(me.getSource()); d.moveToFront(); if (d instanceof ImageNode) { if ((me.getModifiers() & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK) model.setSelectedDisplay(d, true); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/445be8ae816c5aaec8bc9161f5886936bea85ea3/BrowserControl.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/browser/BrowserControl.java
packager.setVariables(getVariables(data));
Properties varMap = getVariables(data); packager.setVariables(varMap);
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (!base.canRead() || !base.isDirectory()) throw new CompilerException("Invalid base directory: " + base); // Usefull variables...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (!base.canRead() || !base.isDirectory()) throw new CompilerException("Invalid base directory: " + base); // Usefull variables...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
boolean keepFile = false;
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
if ("true".equalsIgnoreCase(val)) keepFile = true;
boolean keepFile = "true".equalsIgnoreCase(val);
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
this.varMap = new VariableValueMapImpl(); Properties retVal = null;
Properties retVal = new Properties();
protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl(); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Iterator i...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
retVal = new Properties();
protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl(); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Iterator i...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
varMap.setVariable( requireAttribute(var, "name"), requireAttribute(var, "value"));
protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl(); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Iterator i...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
String _n = pathFile.getName(); if (_n.startsWith("izpack-keepme") && _n.endsWith(".tmp")) pathFile.delete();
public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); Li...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/91994653572a3171781f1edfa5a2651f3a9a49fb/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
while(!_cancelled) { long sleeptime = 0L; synchronized(GenericKeyedObjectPool.this) { sleeptime = _timeBetweenEvictionRunsMillis; } try { Thread.sleep(sleeptime); } catch(Exception e) { ; } try { evict(); } catch(Exception e) { ; } try { ensureMinIdle(); } catch (Exception e) { ; }
try { evict(); } catch(Exception e) { } try { ensureMinIdle(); } catch (Exception e) {
public void run() { while(!_cancelled) { long sleeptime = 0L; synchronized(GenericKeyedObjectPool.this) { sleeptime = _timeBetweenEvictionRunsMillis; } try { Thread.sleep(sleeptime); } cat...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
private int calculateDefecit(Object key) { int objectDefecit = 0; //Calculate no of objects needed to be created, in order to have //the number of pooled objects < maxActive(); objectDefecit = getMinIdle() - getNumIdle(key); if (getMaxActive() > 0) { int growLim...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
private int calculateDefecit(Object key) { int objectDefecit = 0; //Calculate no of objects needed to be created, in order to have //the number of pooled objects < maxActive(); objectDefecit = getMinIdle() - getNumIdle(key); if (getMaxActive() > 0) { int growLim...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
public synchronized void clearOldest() { // build sorted map of idle objects TreeMap map = new TreeMap(); for (Iterator keyiter = _poolMap.keySet().iterator(); keyiter.hasNext();) { Object key = keyiter.next(); LinkedList list = (LinkedList) _poolMap.get(key); f...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
public synchronized void clearOldest() { // build sorted map of idle objects TreeMap map = new TreeMap(); for (Iterator keyiter = _poolMap.keySet().iterator(); keyiter.hasNext();) { Object key = keyiter.next(); LinkedList list = (LinkedList) _poolMap.get(key); f...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
private synchronized void ensureMinIdle() throws Exception { Iterator iterator = _poolMap.keySet().iterator(); //Check if should sustain the pool if (_minIdle > 0) { // Loop through all elements in _poolList // Find out the total number of max active and max idle for th...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
public synchronized void evict() throws Exception { Object key = null; if (_recentlyEvictedKeys == null) { _recentlyEvictedKeys = new HashSet(_poolMap.size()); } Set remainingKeys = new HashSet(_poolMap.keySet()); remainingKeys.removeAll(_recentlyEvictedKeys); It...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
public synchronized void evict() throws Exception { Object key = null; if (_recentlyEvictedKeys == null) { _recentlyEvictedKeys = new HashSet(_poolMap.size()); } Set remainingKeys = new HashSet(_poolMap.keySet()); remainingKeys.removeAll(_recentlyEvictedKeys); It...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
_evictor = new Evictor(delay); Thread t = new Thread(_evictor); t.setDaemon(true); t.start();
_evictor = new Evictor(); GenericObjectPool.EVICTION_TIMER.schedule(_evictor, delay, delay);
protected synchronized void startEvictor(long delay) { if(null != _evictor) { _evictor.cancel(); _evictor = null; } if(delay > 0) { _evictor = new Evictor(delay); Thread t = new Thread(_evictor); t.setDaemon(true); t.start(); ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
ch = this.read(); if (ch != 0x0A) {
ch = this.currentPbReader.read(); if (ch != 0x0A && ch > 0) {
public char read() throws IOException { int ch = this.currentPbReader.read(); while (ch < 0) { if (this.pbreaders.empty()) { throw new IOException("Unexpected EOF"); } this.currentPbReader.close(); this.currentPbR...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d02144ed077bac9ec761e3a25202cb333420aa66/StdXMLReader.java/buggy/src/lib/net/n3/nanoxml/StdXMLReader.java
return (char) 0x0A;
public char read() throws IOException { int ch = this.currentPbReader.read(); while (ch < 0) { if (this.pbreaders.empty()) { throw new IOException("Unexpected EOF"); } this.currentPbReader.close(); this.currentPbR...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d02144ed077bac9ec761e3a25202cb333420aa66/StdXMLReader.java/buggy/src/lib/net/n3/nanoxml/StdXMLReader.java
return (char) 0x0A;
public char read() throws IOException { int ch = this.currentPbReader.read(); while (ch < 0) { if (this.pbreaders.empty()) { throw new IOException("Unexpected EOF"); } this.currentPbReader.close(); this.currentPbR...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d02144ed077bac9ec761e3a25202cb333420aa66/StdXMLReader.java/buggy/src/lib/net/n3/nanoxml/StdXMLReader.java
result.append( "OS_NAME=" + OS_NAME + NL );
result.append("OS_NAME=").append(OS_NAME).append(NL);
public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/OsVersion.java/clean/src/lib/com/izforge/izpack/util/OsVersion.java
result.append( getLinuxDistribution() + NL );
result.append(getLinuxDistribution()).append(NL);
public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/OsVersion.java/clean/src/lib/com/izforge/izpack/util/OsVersion.java
result.append( FileUtil.getFileContent( getReleaseFileName() ) + NL );
result.append(FileUtil.getFileContent(getReleaseFileName())).append(NL);
public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/OsVersion.java/clean/src/lib/com/izforge/izpack/util/OsVersion.java
result.append( System.getProperty( OSNAME ) + SP + System.getProperty( "sun.os.patch.level", "" ) + NL );
result.append(System.getProperty(OSNAME)).append(SP).append(System.getProperty("sun.os.patch.level", "")).append(NL);
public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/OsVersion.java/clean/src/lib/com/izforge/izpack/util/OsVersion.java
String result = new String();
String result = "";
private static String getReleaseFileName() { String result = new String(); File[] etcList = new File("/etc").listFiles(); if( etcList != null ) for (int idx = 0; idx < etcList.length; idx++) { File etcEntry = etcList[idx]; if (etcEntry.isFile()) ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/OsVersion.java/clean/src/lib/com/izforge/izpack/util/OsVersion.java