rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
Debug.log("can install pack with id " + packid + "?");
Debug.trace("can install pack with id " + packid + "?");
public boolean canInstallPack(String packid, Properties variables) { Debug.log("can install pack with id " + packid + "?"); if (!this.packconditions.containsKey(packid)) { Debug.log("no condition, can install pack"); return true; } Debug.log("there is a condition");...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("no condition, can install pack");
Debug.trace("no condition, can install pack");
public boolean canInstallPack(String packid, Properties variables) { Debug.log("can install pack with id " + packid + "?"); if (!this.packconditions.containsKey(packid)) { Debug.log("no condition, can install pack"); return true; } Debug.log("there is a condition");...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("there is a condition");
Debug.trace("there is a condition");
public boolean canInstallPack(String packid, Properties variables) { Debug.log("can install pack with id " + packid + "?"); if (!this.packconditions.containsKey(packid)) { Debug.log("no condition, can install pack"); return true; } Debug.log("there is a condition");...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("can install pack optional with id " + packid + "?");
Debug.trace("can install pack optional with id " + packid + "?");
public boolean canInstallPackOptional(String packid, Properties variables) { Debug.log("can install pack optional with id " + packid + "?"); if (!this.optionalpackconditions.containsKey(packid)) { Debug.log("not in optionalpackconditions."); return false; } else { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("not in optionalpackconditions.");
Debug.trace("not in optionalpackconditions.");
public boolean canInstallPackOptional(String packid, Properties variables) { Debug.log("can install pack optional with id " + packid + "?"); if (!this.optionalpackconditions.containsKey(packid)) { Debug.log("not in optionalpackconditions."); return false; } else { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("optional install possible");
Debug.trace("optional install possible");
public boolean canInstallPackOptional(String packid, Properties variables) { Debug.log("can install pack optional with id " + packid + "?"); if (!this.optionalpackconditions.containsKey(packid)) { Debug.log("not in optionalpackconditions."); return false; } else { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("can show panel with id " + panelid + " ?");
Debug.trace("can show panel with id " + panelid + " ?");
public boolean canShowPanel(String panelid, Properties variables) { Debug.log("can show panel with id " + panelid + " ?"); if (!this.panelconditions.containsKey(panelid)) { Debug.log("no condition, show panel"); return true; } Debug.log("there is a condition"); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("no condition, show panel");
Debug.trace("no condition, show panel");
public boolean canShowPanel(String panelid, Properties variables) { Debug.log("can show panel with id " + panelid + " ?"); if (!this.panelconditions.containsKey(panelid)) { Debug.log("no condition, show panel"); return true; } Debug.log("there is a condition"); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("there is a condition");
Debug.trace("there is a condition");
public boolean canShowPanel(String panelid, Properties variables) { Debug.log("can show panel with id " + panelid + " ?"); if (!this.panelconditions.containsKey(panelid)) { Debug.log("no condition, show panel"); return true; } Debug.log("there is a condition"); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("Element " + element + " has to specify an attribute " + attribute);
Debug.trace("Element " + element + " has to specify an attribute " + attribute);
protected boolean checkAttribute(String val, String attribute, String element) { if ((val != null) && (val.length() > 0)) { return true; } else { Debug.log("Element " + element + " has to specify an attribute " + attribute); return false; } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("Condition (" + id + ") not found.");
Debug.trace("Condition (" + id + ") not found.");
public boolean isConditionTrue(String id, Properties variables) { Condition cond = (Condition) conditionsmap.get(id); if (cond == null) { Debug.log("Condition (" + id + ") not found."); return true; } else { Debug.log("Checking condition"); return con...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
Debug.log("Checking condition");
Debug.trace("Checking condition");
public boolean isConditionTrue(String id, Properties variables) { Condition cond = (Condition) conditionsmap.get(id); if (cond == null) { Debug.log("Condition (" + id + ") not found."); return true; } else { Debug.log("Checking condition"); return con...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
if (this.conditionsspec == null){ Debug.trace("No specification for conditions found."); return; }
protected void readConditions() { try { if (this.conditionsspec.hasChildren()) { // read in the condition specs Vector childs = this.conditionsspec.getChildrenNamed("condition"); for (int i = 0; i < childs.size(); i++) { XMLElement co...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/RulesEngine.java/buggy/src/lib/com/izforge/izpack/rules/RulesEngine.java
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _factory.destroyObject(obj); return; }
public void returnObject(Object obj) throws Exception { boolean success = true; if(!(_factory.validateObject(obj))) { success = false; } else { try { _factory.passivateObject(obj); } catch(Exception e) { success = false;
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/6d5eb8fcfd40a356f848c407c2429f711b97c0f4/StackObjectPool.java/clean/src/java/org/apache/commons/pool/impl/StackObjectPool.java
if(_pool.size() < _maxSleeping) {
} boolean shouldDestroy = !success; synchronized(this) { _numActive--; if(_pool.size() >= _maxSleeping) { shouldDestroy = true; } else if(success) {
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/6d5eb8fcfd40a356f848c407c2429f711b97c0f4/StackObjectPool.java/clean/src/java/org/apache/commons/pool/impl/StackObjectPool.java
} else { if(null != _factory) { _factory.destroyObject(obj); }
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/6d5eb8fcfd40a356f848c407c2429f711b97c0f4/StackObjectPool.java/clean/src/java/org/apache/commons/pool/impl/StackObjectPool.java
} else { if(null != _factory) {
notifyAll(); } if(shouldDestroy) { try {
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/6d5eb8fcfd40a356f848c407c2429f711b97c0f4/StackObjectPool.java/clean/src/java/org/apache/commons/pool/impl/StackObjectPool.java
} catch(Exception e) {
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(null == _factory || _factory.validateObject(obj)) { if(null != _factory) { try { _factory.passivateObject(obj); } catch(Exception e) { _f...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/6d5eb8fcfd40a356f848c407c2429f711b97c0f4/StackObjectPool.java/clean/src/java/org/apache/commons/pool/impl/StackObjectPool.java
if (todo.equals("TOP"))
if ("TOP".equals(todo))
public void completeGridBagLayout() { String todo = idata.getVariable("IzPanel.LayoutType"); if (todo == null) // No command, no work. return; if (todo.equals("TOP")) { // Make a footer to push the rest to the top. Filler dummy = new Filler(); GridBagC...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/IzPanel.java/clean/src/lib/com/izforge/izpack/installer/IzPanel.java
if (todo.equals("BOTTOM"))
if ("BOTTOM".equals(todo))
public void startGridBagLayout() { if (gridBagLayoutStarted) return; gridBagLayoutStarted = true; GridBagLayout layout = new GridBagLayout(); defaultGridBagConstraints.insets = new Insets(0, 0, 20, 0); defaultGridBagConstraints.anchor = GridBagConstraints.WEST; setLayout...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/IzPanel.java/clean/src/lib/com/izforge/izpack/installer/IzPanel.java
;
public void afterDelete(File file, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleUninstallerListener.java/buggy/src/lib/com/izforge/izpack/event/SimpleUninstallerListener.java
;
public void afterDeletion(List files, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleUninstallerListener.java/buggy/src/lib/com/izforge/izpack/event/SimpleUninstallerListener.java
;
public void beforeDelete(File file, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleUninstallerListener.java/buggy/src/lib/com/izforge/izpack/event/SimpleUninstallerListener.java
;
public void beforeDeletion(List files, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleUninstallerListener.java/buggy/src/lib/com/izforge/izpack/event/SimpleUninstallerListener.java
if (oldDim.height != colConstraints[i].component.getPreferredSize().height && oldOnceAgain == onceAgain) onceAgain++;
if (oldOnceAgain == onceAgain) onceAgain++;
public void layoutContainer(Container parent) { if (!needNewLayout(parent)) { fastLayoutContainer(parent); return; } prefLayoutDim = null; preferredLayoutSize(parent); Dimension realSizeDim = parent.getSize(); Insets insets = parent.getInsets...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/790ac4c46b740187250469f253751a20d840eb05/IzPanelLayout.java/buggy/src/lib/com/izforge/izpack/gui/IzPanelLayout.java
public void layoutContainer(Container parent) { if (!needNewLayout(parent)) { fastLayoutContainer(parent); return; } prefLayoutDim = null; preferredLayoutSize(parent); Dimension realSizeDim = parent.getSize(); Insets insets = parent.getInsets...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/790ac4c46b740187250469f253751a20d840eb05/IzPanelLayout.java/buggy/src/lib/com/izforge/izpack/gui/IzPanelLayout.java
if (gapId <= GAP_LOAD_MARKER || gapId >= DEFAULT_X_GAPS.length)
if ( gapId >= DEFAULT_X_GAPS.length)
public static int verifyGapId(int gapId) { if (gapId < 0) gapId = -gapId; if (gapId <= GAP_LOAD_MARKER || gapId >= DEFAULT_X_GAPS.length) throw new IndexOutOfBoundsException("gapId is not in the default gap container."); return (gapId); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/790ac4c46b740187250469f253751a20d840eb05/IzPanelLayout.java/buggy/src/lib/com/izforge/izpack/gui/IzPanelLayout.java
if (retval == null || retval.equals(fullkey))
if (retval == null || retval.startsWith(fullkey))
public String getI18nStringForClass(String subkey, String alternateClass) { String curClassName = this.getClass().getName(); int nameStart = curClassName.lastIndexOf('.') + 1; curClassName = curClassName.substring(nameStart, curClassName.length()); StringBuffer buf = new StringBuffer(...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/91bfeafc3265323a5f71aef073a52845e68294b0/IzPanel.java/buggy/src/lib/com/izforge/izpack/installer/IzPanel.java
public boolean findUserByEmail(UserEdit edit, String email) { // lets not get messed up with spaces or cases String test = email.toLowerCase().trim(); // if the email ends with "umich.edu" (even if it's from somebody@krusty.si.umich.edu) // use the local part as a user id. if (!test.endsWith(m_domain)) return fal...
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/dd446cd5cf5f931e5e5f748fcad0d0719db3038a/KerberosUserDirectoryProvider.java/buggy/kerberos/src/java/org/sakaiproject/component/kerberos/user/KerberosUserDirectoryProvider.java
edit.setId(parts[0]);
edit.setEid(parts[0]);
public boolean findUserByEmail(UserEdit edit, String email) { // lets not get messed up with spaces or cases String test = email.toLowerCase().trim(); // if the email ends with "umich.edu" (even if it's from somebody@krusty.si.umich.edu) // use the local part as a user id. if (!test.endsWith(m_domain)) return fal...
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/dd446cd5cf5f931e5e5f748fcad0d0719db3038a/KerberosUserDirectoryProvider.java/buggy/kerberos/src/java/org/sakaiproject/component/kerberos/user/KerberosUserDirectoryProvider.java
layout = new GridBagLayout(); gbConstraints = new GridBagConstraints();
GridBagLayout layout = new GridBagLayout(); GridBagConstraints gbConstraints = new GridBagConstraints();
public HTMLInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = LabelFactory.create(p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/HTMLInfoPanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java
infoLabel = LabelFactory.create(parent.langpack.getString("InfoPanel.info"), parent.icons
JLabel infoLabel = LabelFactory.create(parent.langpack.getString("InfoPanel.info"), parent.icons
public HTMLInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = LabelFactory.create(p...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/HTMLInfoPanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java
if(!p.targetdir.endsWith(File.separator)) { p.targetdir = p.targetdir+File.separatorChar; }
public void executeCompiler() throws Exception { // Usefull variables int i; String str; InputStream inStream; // We get the XML data tree XMLElement data = getXMLTree(); // We get the Packager Packager packager = getPackager(); // We add the variable declaration packager.setVariables(g...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c8cdcf2da72afb3e236ad262b093befb9677249b/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
String targetFile = p.getAttribute("targetfile");
String targetFile = p.getAttribute("targetfile");
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c8cdcf2da72afb3e236ad262b093befb9677249b/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
String targetFile = e.getAttribute("targetfile");
String targetFile = e.getAttribute("targetfile");
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c8cdcf2da72afb3e236ad262b093befb9677249b/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
String targetDir = f.getAttribute("targetdir");
String targetDir = f.getAttribute("targetdir");
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLElement el = r...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c8cdcf2da72afb3e236ad262b093befb9677249b/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
InputStream in = getClass().getResourceAsStream("/res/IzPack.uninstaller");
InputStream in = Unpacker.class.getResourceAsStream("/res/IzPack.uninstaller");
private void putUninstaller() throws Exception { // get the uninstaller base, returning if not found so that // idata.uninstallOutJar remains null InputStream in = getClass().getResourceAsStream("/res/IzPack.uninstaller"); if (in == null) return; // Me make the .uninstaller directory String de...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
wait(_maxWait);
final long elapsed = (System.currentTimeMillis() - starttime); final long waitTime = _maxWait - elapsed; if (waitTime > 0) { wait(waitTime); }
public synchronized Object borrowObject() throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { ObjectTimestampPair pair = null; // if there are any sleeping, just grab one of those try { ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/afe8ded20e5e0c03af85d3a451353ef19c9a9ac3/GenericObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
if(_minEvictableIdleTimeMillis > 0 && System.currentTimeMillis() - pair.tstamp > _minEvictableIdleTimeMillis) { removeObject = true;
long idleTimeMilis = System.currentTimeMillis() - pair.tstamp; if ((_minEvictableIdleTimeMillis > 0) && (idleTimeMilis > _minEvictableIdleTimeMillis)) { removeObject = true; } else if ((_softMinEvictableIdleTimeMillis > 0) && (idleTimeMilis > _softMinEvictableIdleTimeMillis) && (getNumIdle() > getMinIdle())) { removeOb...
public synchronized void evict() throws Exception { assertOpen(); if(!_pool.isEmpty()) { if(null == _evictionCursor) { _evictionCursor = (_pool.cursor(_pool.size())); } else if(!_evictionCursor.hasPrevious()) { _evictionCursor.close(); ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/4fadf07be4cd99a579ef09bcc137bc857f2e50ae/GenericObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
if (inheritAll == true)
if (inheritAll)
public void execute() throws org.apache.tools.ant.BuildException { // Either the input attribute or config element must be specified if (input == null && config == null) throw new BuildException(ResourceBundle.getBundle( "com/izforge/izpack/ant/langpacks/messages").get...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/IzPackTask.java/buggy/src/lib/com/izforge/izpack/ant/IzPackTask.java
public CompilerConfig(String filename, String basedir, String kind, String output, String compr_format, int compr_level, PackagerListener listener, String installText) throws CompilerException
public CompilerConfig(String filename, String basedir, String kind, String output) throws CompilerException
public CompilerConfig(String filename, String basedir, String kind, String output, String compr_format, int compr_level, PackagerListener listener, String installText) throws CompilerException { this.filename = filename; this.installText = installText; this.basedir = basedir; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/CompilerConfig.java/buggy/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
this.filename = filename; this.installText = installText; this.basedir = basedir; this.compiler = new Compiler(basedir, kind, output, compr_format, compr_level); compiler.setPackagerListener(listener);
this(filename, basedir, kind, output, (PackagerListener) null);
public CompilerConfig(String filename, String basedir, String kind, String output, String compr_format, int compr_level, PackagerListener listener, String installText) throws CompilerException { this.filename = filename; this.installText = installText; this.basedir = basedir; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/CompilerConfig.java/buggy/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
public void addConfiguredPropertyset(PropertySet ps)
public void addConfiguredPropertyset(Property ps)
public void addConfiguredPropertyset(PropertySet ps) { if (properties == null) properties = new Properties(); properties.putAll(ps.getProperties()); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6006516f2ca6a755f3d82508f16b86f8e753723c/IzPackTask.java/buggy/src/lib/com/izforge/izpack/ant/IzPackTask.java
headingLabels[i] = new JLabel();
private void createHeadingLabels(int headingLines, Color back) { // headingLabels are an array which contains the labels for header (0), // description lines and the icon (last). headingLabels = new JLabel[headingLines + 1]; headingLabels[0] = new JLabel(""); // First line ist ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/824d19753f9b673667d8b30cca9a3269b56fe7af/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
err.printStackTrace();
public void run() { try { // We get the list of the files to delete ArrayList files = getFilesList(); int size = files.size(); listener.destroyerStart(0, size); // We destroy the files for (int i = 0; i < size; i++) { File file = (File) files.get(i); if (file.ex...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Destroyer.java/buggy/src/lib/com/izforge/izpack/uninstaller/Destroyer.java
;
public void afterDir(File dir, PackFile pf) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleInstallerListener.java/clean/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java
;
public void afterFile(File file, PackFile pf) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleInstallerListener.java/clean/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java
;
public void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleInstallerListener.java/clean/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java
;
public void beforeDir(File dir, PackFile pf) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleInstallerListener.java/clean/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java
;
public void beforeFile(File file, PackFile pf) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleInstallerListener.java/clean/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java
;
public void beforePack(Pack pack, Integer i, AbstractUIProgressHandler handler) throws Exception { // Do nothing ; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SimpleInstallerListener.java/clean/src/lib/com/izforge/izpack/event/SimpleInstallerListener.java
temp = temp + indent;
temp += indent;
private int minimumBothColumnsWidth(Container parent) { Component component = null; TwoColumnConstraints constraints = null; int width = 0; int temp = 0; if (title != null) { component = title.component; width = (int) component.getMinimumSize().getW...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/TwoColumnLayout.java/clean/src/lib/com/izforge/izpack/gui/TwoColumnLayout.java
height = height + rowHeight(i);
height += rowHeight(i);
private int minimumClusterHeight() { int height = 0; for (int i = 0; i < rows(); i++) { height = height + rowHeight(i); } return (height); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/TwoColumnLayout.java/clean/src/lib/com/izforge/izpack/gui/TwoColumnLayout.java
temp = temp + indent;
temp += indent;
private int minimumColumnWidth(int column, Container parent) { Component component = null; TwoColumnConstraints constraints = null; int width = 0; int temp = 0; for (int i = 0; i < components[column].size(); i++) { constraints = (TwoColumnConstraints) componen...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/TwoColumnLayout.java/clean/src/lib/com/izforge/izpack/gui/TwoColumnLayout.java
width = width - indent; x = x + indent;
width -= indent; x += indent;
private void positionComponent(int y, int row, int column, Container parent) { TwoColumnConstraints constraints = null; try { constraints = (TwoColumnConstraints) (components[column].elementAt(row)); } catch (Throwable exception) { return; } ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/TwoColumnLayout.java/clean/src/lib/com/izforge/izpack/gui/TwoColumnLayout.java
y = y + leftHeight;
y += leftHeight;
private void positionComponents(Container parent) { int usedHeight = titleHeight + minimumClusterHeight(); int topBuffer = topBuffer(usedHeight, parent); int leftHeight = 0; int rightHeight = 0; if (topBuffer < 0) { topBuffer = 0; } int y = title...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/TwoColumnLayout.java/clean/src/lib/com/izforge/izpack/gui/TwoColumnLayout.java
y = y + rightHeight;
y += rightHeight;
private void positionComponents(Container parent) { int usedHeight = titleHeight + minimumClusterHeight(); int topBuffer = topBuffer(usedHeight, parent); int leftHeight = 0; int rightHeight = 0; if (topBuffer < 0) { topBuffer = 0; } int y = title...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/TwoColumnLayout.java/clean/src/lib/com/izforge/izpack/gui/TwoColumnLayout.java
y = y + leftHeight;
y += leftHeight;
private void positionComponents(Container parent) { int usedHeight = titleHeight + minimumClusterHeight(); int topBuffer = topBuffer(usedHeight, parent); int leftHeight = 0; int rightHeight = 0; if (topBuffer < 0) { topBuffer = 0; } int y = title...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/TwoColumnLayout.java/clean/src/lib/com/izforge/izpack/gui/TwoColumnLayout.java
public Object clone ()
public Object clone () throws CloneNotSupportedException
public Object clone () { TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; return (newObject); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/TwoColumnConstraints.java/buggy/src/lib/com/izforge/izpack/gui/TwoColumnConstraints.java
super.clone();
public Object clone () { TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; return (newObject); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/TwoColumnConstraints.java/buggy/src/lib/com/izforge/izpack/gui/TwoColumnConstraints.java
layout = new BoxLayout(centerPanel, BoxLayout.Y_AXIS);
BoxLayout layout = new BoxLayout(centerPanel, BoxLayout.Y_AXIS);
public SelectPrinterPanel(InstallerFrame parent, InstallData id) { super(parent, id); iData = id; // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gb...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SelectPrinterPanel.java/clean/src/lib/com/izforge/izpack/panels/SelectPrinterPanel.java
pServices = PrintServiceLookup.lookupPrintServices(null, null);
PrintService[] pServices = PrintServiceLookup.lookupPrintServices(null, null);
public SelectPrinterPanel(InstallerFrame parent, InstallData id) { super(parent, id); iData = id; // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gb...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SelectPrinterPanel.java/clean/src/lib/com/izforge/izpack/panels/SelectPrinterPanel.java
selectLabel = LabelFactory.create(str, JLabel.LEADING);
JLabel selectLabel = LabelFactory.create(str, JLabel.LEADING);
public SelectPrinterPanel(InstallerFrame parent, InstallData id) { super(parent, id); iData = id; // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gb...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SelectPrinterPanel.java/clean/src/lib/com/izforge/izpack/panels/SelectPrinterPanel.java
return;
public void actionPerformed(ActionEvent event) { String sPrinter = (String) cbPrinters.getSelectedItem(); iData.setVariable("SELECTED_PRINTER", sPrinter); return; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SelectPrinterPanel.java/clean/src/lib/com/izforge/izpack/panels/SelectPrinterPanel.java
public TestKeyedObjectPoolFactory(final String name) {
protected TestKeyedObjectPoolFactory(final String name) {
public TestKeyedObjectPoolFactory(final String name) { super(name); }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/0cbda9bdbe04f47a58b8b44c3115b516855caf78/TestKeyedObjectPoolFactory.java/buggy/src/test/org/apache/commons/pool/TestKeyedObjectPoolFactory.java
protected KeyedObjectPoolFactory makeFactory(KeyedPoolableObjectFactory objectFactory) throws UnsupportedOperationException{ throw new UnsupportedOperationException("Subclass needs to override makeFactory method.");
protected KeyedObjectPoolFactory makeFactory() throws UnsupportedOperationException { return makeFactory(createObjectFactory());
protected KeyedObjectPoolFactory makeFactory(KeyedPoolableObjectFactory objectFactory) throws UnsupportedOperationException{ throw new UnsupportedOperationException("Subclass needs to override makeFactory method."); }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/0cbda9bdbe04f47a58b8b44c3115b516855caf78/TestKeyedObjectPoolFactory.java/buggy/src/test/org/apache/commons/pool/TestKeyedObjectPoolFactory.java
public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory) { this(factory,StackKeyedObjectPool.DEFAULT_MAX_SLEEPING,StackKeyedObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
public StackKeyedObjectPoolFactory() { this((KeyedPoolableObjectFactory)null,StackKeyedObjectPool.DEFAULT_MAX_SLEEPING,StackKeyedObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory) { this(factory,StackKeyedObjectPool.DEFAULT_MAX_SLEEPING,StackKeyedObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY); }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/1313111fc820c43662b3b98672f70316d84ee80c/StackKeyedObjectPoolFactory.java/buggy/src/java/org/apache/commons/pool/impl/StackKeyedObjectPoolFactory.java
thumb.setMimeType("image");
thumb.setMimeType(DEFAULT_MIME_TYPE);
private Thumbnail createThumbnailMetadata(Pixels p, int sizeX, int sizeY) { Thumbnail thumb = new Thumbnail(); thumb.setPixels(p); thumb.setMimeType("image"); // FIXME: Hack thumb.setSizeX(sizeX); thumb.setSizeY(sizeY); return iUpdate.saveAndReturnObject(thumb); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/ThumbImpl.java/buggy/components/server/src/ome/logic/ThumbImpl.java
Thumbnail thumb = (Thumbnail) iQuery.findByQuery("select t from Thumbnail as t where t.pixels.id = :id", new Parameters().addId(p.getId()));
Parameters param = new Parameters(); param.addId(p.getId()); param.addInteger("x", sizeX); param.addInteger("y", sizeY); Thumbnail thumb = iQuery.findByQuery( "select t from Thumbnail as t where t.pixels.id = :id and " + "t.sizeX = :x and t.sizeY = :y", param);
private Thumbnail getThumbnailMetadata(Pixels p, int sizeX, int sizeY) { // FIXME: We need dimensions here. Thumbnail thumb = (Thumbnail) iQuery.findByQuery("select t from Thumbnail as t where t.pixels.id = :id", new Parameters().addId(p.getId())); return thumb; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/725d5581a5805696002bff1ec2ecb359495503f5/ThumbImpl.java/buggy/components/server/src/ome/logic/ThumbImpl.java
public Object clone () throws CloneNotSupportedException
public Object clone ()
public Object clone () throws CloneNotSupportedException { super.clone(); TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; re...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d11fc845a2a89fc77729603e3e46364815b8de54/TwoColumnConstraints.java/clean/src/lib/com/izforge/izpack/gui/TwoColumnConstraints.java
super.clone();
public Object clone () throws CloneNotSupportedException { super.clone(); TwoColumnConstraints newObject = new TwoColumnConstraints (); newObject.position = position; newObject.align = align; newObject.indent = indent; newObject.stretch = stretch; newObject.component = component; re...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d11fc845a2a89fc77729603e3e46364815b8de54/TwoColumnConstraints.java/clean/src/lib/com/izforge/izpack/gui/TwoColumnConstraints.java
Boolean selected = new Boolean (idata.selectedPacks.contains (pack));
Boolean selected = Boolean.valueOf(idata.selectedPacks.contains (pack));
public void makeXMLData(AutomatedInstallData idata, XMLElement panelRoot) { // We add each pack to the panelRoot element for (int i = 0; i < idata.availablePacks.size(); i++) { Pack pack = (Pack) idata.availablePacks.get(i); XMLElement el = new XMLElement("pack"); el.setAttribute ("index", ne...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/PacksPanelAutomationHelper.java/clean/src/lib/com/izforge/izpack/panels/PacksPanelAutomationHelper.java
Boolean selected = new Boolean (el.getAttribute ("selected"));
Boolean selected = Boolean.valueOf(el.getAttribute ("selected"));
public void runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { // We get the packs markups Vector pm = panelRoot.getChildrenNamed("pack"); // We figure out the selected ones int size = pm.size(); idata.selectedPacks.clear(); for (int i = 0; i < size; i++) { XMLElement el = (XM...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/PacksPanelAutomationHelper.java/clean/src/lib/com/izforge/izpack/panels/PacksPanelAutomationHelper.java
logger.setOutputPrintStream(System.out); logger.setErrorPrintStream(System.err);
if (logFile != null) { PrintStream printStream; try { printStream = new PrintStream(new FileOutputStream(logFile)); logger.setOutputPrintStream(printStream); logger.setErrorPrintStream(printStream); } catch (FileNotFoundException e) { logger.setOutputPrintStream(System.out); logger.setErrorPrintStream(System.err); } } ...
private BuildLogger createLogger() { int msgOutputLevel = 2; if (verbose) msgOutputLevel = 4; else if (quiet) msgOutputLevel = 1; BuildLogger logger = new DefaultLogger(); logger.setMessageOutputLevel(msgOutputLevel); logger.setOutputPrintStream(System.out); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/46e0594a602b14dea0a425f307980fc2d210779c/AntAction.java/clean/src/lib/com/izforge/izpack/event/AntAction.java
if (family.equals("windows"))
if ("windows".equals(family))
public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if (arch != null && arch.length() != 0) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && version != null ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/OsConstraint.java/clean/src/lib/com/izforge/izpack/util/OsConstraint.java
else if (family.equals("mac") || family.equals("osx"))
else if ("mac".equals(family) || "osx".equals(family))
public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if (arch != null && arch.length() != 0) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && version != null ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/OsConstraint.java/clean/src/lib/com/izforge/izpack/util/OsConstraint.java
else if (family.equals("unix"))
else if ("unix".equals(family))
public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if (arch != null && arch.length() != 0) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && version != null ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/OsConstraint.java/clean/src/lib/com/izforge/izpack/util/OsConstraint.java
retval.append(" family " + family); retval.append(" name " + name); retval.append(" version " + version); retval.append(" arch " + arch);
retval.append(" family ").append(family); retval.append(" name ").append(name); retval.append(" version ").append(version); retval.append(" arch ").append(arch);
public String toString() { StringBuffer retval = new StringBuffer(); retval.append("[Os "); retval.append(" family " + family); retval.append(" name " + name); retval.append(" version " + version); retval.append(" arch " + arch); retval.append(" ]"); return...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/OsConstraint.java/clean/src/lib/com/izforge/izpack/util/OsConstraint.java
hlp.append("Comment[" + userLanguage + "]=" + $Comment + N);
hlp.append("Comment[").append(userLanguage).append("]=" + $Comment + N);
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
hlp.append("GenericName[" + userLanguage + "]=" + $GenericName + N);
hlp.append("GenericName[").append(userLanguage).append("]=" + $GenericName + N);
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
hlp.append("Name[" + userLanguage + "]=" + $Name + N);
hlp.append("Name[").append(userLanguage).append("]=" + $Name + N);
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
hlp.append(C + "created by" + S + getClass().getName() + S + rev + N ); hlp.append(C + version );
hlp.append(C + "created by" + S).append(getClass().getName()).append(S).append(rev).append(N); hlp.append(C).append(version);
public Unix_Shortcut() { StringBuffer hlp = new StringBuffer(); String userLanguage = System.getProperty("user.language", "en"); hlp.append("[Desktop Entry]" + N); hlp.append("Comment=" + $Comment + N); hlp.append("Comment[" + userLanguage + "]=" + $Comment + N); hlp.app...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
result = new File(System.getProperty("user.home").toString() + File.separator + ".kde");
result = new File(System.getProperty("user.home") + File.separator + ".kde");
private File getKdeBase(int userType) { File result = null; if (userType == Shortcut.ALL_USERS) { FileExecutor fe = new FileExecutor(); String[] execOut = new String[2]; int execResult = fe.executeCommand(new String[] { "/usr/bin/env", "kde-config", ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
String result = new String();
String result = "";
public String getProgramsFolder(int current_user) { String result = new String(); // result = getKdeShareApplnkFolder(current_user).toString(); return result; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this.itsType = aType;
int itsType = aType;
public void initialize(int aType, String aName) throws Exception { this.itsType = aType; this.itsName = aName; props.put($Name, aName); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this.itsArguments = args;
String itsArguments = args;
public void setArguments(String args) { this.itsArguments = args; props.put($Arguments, args); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this.itsDescription = description;
String itsDescription = description;
public void setDescription(String description) { this.itsDescription = description; props.put($Comment, description); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this.itsIconPath = path; this.itsIconIndex = index;
String itsIconPath = path; int itsIconIndex = index;
public void setIconLocation(String path, int index) { this.itsIconPath = path; this.itsIconIndex = index; props.put($Icon, path); // }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this.itsType = aType;
int itsType = aType;
public void setLinkType(int aType) throws IllegalArgumentException { this.itsType = aType; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this.itsShow = show;
int itsShow = show;
public void setShowCommand(int show) { this.itsShow = show; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this.itsTargetPath = aPath;
String itsTargetPath = aPath;
public void setTargetPath(String aPath) { this.itsTargetPath = aPath; StringTokenizer whiteSpaceTester = new StringTokenizer( aPath ); if( whiteSpaceTester.countTokens() > 1 ) props.put( $E_QUOT,QM ); props.put($Exec, aPath); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this.itsWorkingDirectory = aDirectory;
String itsWorkingDirectory = aDirectory;
public void setWorkingDirectory(String aDirectory) { this.itsWorkingDirectory = aDirectory; StringTokenizer whiteSpaceTester = new StringTokenizer( aDirectory ); if( whiteSpaceTester.countTokens() > 1 ) props.put( $P_QUOT,QM ); props.put($Path, aDirectory); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
File targetPath = new File(target.toString().substring(0, target.toString().lastIndexOf(File.separatorChar)));
File targetPath = new File(target.substring(0, target.lastIndexOf(File.separatorChar)));
private File writeShortCut(String target, String shortCutDef) { File targetPath = new File(target.toString().substring(0, target.toString().lastIndexOf(File.separatorChar))); if (!targetPath.exists()) { targetPath.mkdirs(); this.createdDirectory = targetP...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
this(null,DEFAULT_MAX_ACTIVE,DEFAULT_WHEN_EXHAUSTED_ACTION,DEFAULT_MAX_WAIT,DEFAULT_MAX_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);
this(null,DEFAULT_MAX_ACTIVE,DEFAULT_WHEN_EXHAUSTED_ACTION,DEFAULT_MAX_WAIT,DEFAULT_MAX_IDLE,DEFAULT_MIN_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);
public GenericObjectPool() { this(null,DEFAULT_MAX_ACTIVE,DEFAULT_WHEN_EXHAUSTED_ACTION,DEFAULT_MAX_WAIT,DEFAULT_MAX_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/684114d9473e6098081a2f519788cf4e0a78c7c3/GenericObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
} int objectDeficit = getMinIdle() - getNumIdle(); if (_maxActive > 0) { int growLimit = Math.max(0, getMaxActive() - getNumActive() - getNumIdle()); objectDeficit = Math.min(objectDeficit, growLimit); } for ( int j = 0; j < objectDeficit; j++ ) { addObject();
public synchronized void evict() throws Exception { assertOpen(); if(!_pool.isEmpty()) { if(null == _evictionCursor) { _evictionCursor = (_pool.cursor(_pool.size())); } else if(!_evictionCursor.hasPrevious()) { _evictionCursor.close(); ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/684114d9473e6098081a2f519788cf4e0a78c7c3/GenericObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
setMinIdle(conf.minIdle);
public synchronized void setConfig(GenericObjectPool.Config conf) { setMaxIdle(conf.maxIdle); setMaxActive(conf.maxActive); setMaxWait(conf.maxWait); setWhenExhaustedAction(conf.whenExhaustedAction); setTestOnBorrow(conf.testOnBorrow); setTestOnReturn(conf.testOnReturn); ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/684114d9473e6098081a2f519788cf4e0a78c7c3/GenericObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
infoLabel = new JLabel(parent.langpack.getString("InfoPanel.info"), parent.icons.getImageIcon("edit"), JLabel.TRAILING);
infoLabel = new JLabel( parent.langpack.getString("InfoPanel.info"), parent.icons.getImageIcon("edit"), JLabel.TRAILING);
public XInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = new JLabel(parent.langpack.getString("InfoPanel.info"), ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/XInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/XInfoPanel.java
} catch (Exception err)
} catch (Exception err)
private void loadInfo() { try { // We read it info = ResourceManager.getInstance().getTextResource("XInfoPanel.info"); } catch (Exception err) { info = "Error : could not load the info text !"; } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/XInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/XInfoPanel.java
VariableSubstitutor vs = new VariableSubstitutor (idata.getVariableValueMap());
VariableSubstitutor vs = new VariableSubstitutor(idata.getVariableValueMap());
private void parseText() { try { // Initialize the variable substitutor VariableSubstitutor vs = new VariableSubstitutor (idata.getVariableValueMap()); // Parses the info text info = vs.substitute(info, null); } catch (Exception err) { err.printStackTrace(); } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/XInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/XInfoPanel.java
} catch (Exception err)
} catch (Exception err)
private void parseText() { try { // Initialize the variable substitutor VariableSubstitutor vs = new VariableSubstitutor (idata.getVariableValueMap()); // Parses the info text info = vs.substitute(info, null); } catch (Exception err) { err.printStackTrace(); } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/XInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/XInfoPanel.java