rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public Pack(String name, String description, boolean required)
public Pack(String name, String description, String targetOs, boolean required)
public Pack(String name, String description, boolean required) { this.name = name; this.description = description; this.required = required; nbytes = 0; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Pack.java/buggy/src/lib/com/izforge/izpack/Pack.java
this.os = targetOs;
public Pack(String name, String description, boolean required) { this.name = name; this.description = description; this.required = required; nbytes = 0; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Pack.java/buggy/src/lib/com/izforge/izpack/Pack.java
ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/installer.jar"));
InputStream is = getClass().getResourceAsStream("lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); }
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/installer.jar")); if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" +...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/1af4590abcb03e8f61989331bd1218a2826aa117/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
if (pack.required == true) propRequirement(pack.name);
if (pack.required) propRequirement(pack.name);
private void initvalues() { // name to pack position map namesPos = new HashMap(); for (int i = 0; i < packs.size(); i++) { Pack pack = (Pack) packs.get(i); namesPos.put(pack.name, new Integer(i)); } // Init to the first values for (int i = 0...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/PacksModel.java/clean/src/lib/com/izforge/izpack/panels/PacksModel.java
else if (columnIndex == 0) { return true; } else { return false; }
else return columnIndex == 0;
public boolean isCellEditable(int rowIndex, int columnIndex) { if (checkValues[rowIndex] < 0) { return false; } else if (columnIndex == 0) { return true; } else { return false; } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/PacksModel.java/clean/src/lib/com/izforge/izpack/panels/PacksModel.java
this.vs = new VariableSubstitutor(idata.getVariableValueMap());
this.vs = new VariableSubstitutor(idata.getVariables());
public CompileWorker(AutomatedInstallData idata, CompileHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariableValueMap()); this.compilationThread = null; if (!readSpec()) throw new IOException("Error reading compila...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/CompileWorker.java/buggy/src/lib/com/izforge/izpack/installer/CompileWorker.java
el.setAttribute("index", new Integer(i).toString());
el.setAttribute("index", Integer.toString(i));
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"); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/PacksPanelAutomationHelper.java/clean/src/lib/com/izforge/izpack/panels/PacksPanelAutomationHelper.java
Boolean selected = new Boolean(true);
Boolean selected = Boolean.TRUE;
public void runAutomated(AutomatedInstallData idata, XMLElement panelRoot) { // We first get the <selected> child (new from version 3.7.0). XMLElement selectedPacks = panelRoot.getFirstChildNamed("selected"); // We get the packs markups Vector pm = selectedPacks.getChildrenNamed("pack...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/PacksPanelAutomationHelper.java/clean/src/lib/com/izforge/izpack/panels/PacksPanelAutomationHelper.java
if((_maxIdle > 0) && (_pool.size() >= _maxIdle)) {
if((_maxIdle >= 0) && (_pool.size() >= _maxIdle)) {
public void returnObject(Object obj) throws Exception { assertOpen(); boolean success = true; if(_testOnReturn && !(_factory.validateObject(obj))) { success = false; } else { try { _factory.passivateObject(obj); } catch(Exception e) { ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/f8a1f534966dffbdcc51ee41a0670298d939dfc8/GenericObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
layout = new BoxLayout(centerPanel, BoxLayout.Y_AXIS);
BoxLayout layout = new BoxLayout(centerPanel, BoxLayout.Y_AXIS);
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 Inse...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/HelloPanel.java/buggy/src/lib/com/izforge/izpack/panels/HelloPanel.java
welcomeLabel = LabelFactory.create(str, parent.icons.getImageIcon("host"), JLabel.TRAILING);
JLabel welcomeLabel = LabelFactory.create(str, parent.icons.getImageIcon("host"), JLabel.TRAILING);
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 Inse...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/HelloPanel.java/buggy/src/lib/com/izforge/izpack/panels/HelloPanel.java
appAuthorsLabel = LabelFactory.create(str, parent.icons.getImageIcon("information"),
JLabel appAuthorsLabel = LabelFactory.create(str, parent.icons.getImageIcon("information"),
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 Inse...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/HelloPanel.java/buggy/src/lib/com/izforge/izpack/panels/HelloPanel.java
appURLLabel = LabelFactory.create(str, parent.icons.getImageIcon("bookmark"),
JLabel appURLLabel = LabelFactory.create(str, parent.icons.getImageIcon("bookmark"),
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 Inse...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/HelloPanel.java/buggy/src/lib/com/izforge/izpack/panels/HelloPanel.java
public boolean validateObject(Object key, Object obj) { return true; }
public boolean validateObject(Object key, Object obj) { return valid; }
public boolean validateObject(Object key, Object obj) { return true; }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/feea8a0d3c7e4912fe7929bd4f393db752cfaacf/TestGenericKeyedObjectPool.java/clean/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
for (int t = from+1; t <= to; t++) {
for (int t = from; t <= to; t++) {
public void copyStackAcrossT(int from, int to, int sizeZ) { PlaneArea pa; ROI3D roi3D = logicalROI.getStack(from); for (int z = 0; z < sizeZ; z++) { pa = roi3D.getPlaneArea(z); for (int t = from+1; t <= to; t++) { if (pa != null) logicalROI...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b1e66026456497d4d450b994b0c5812397f58575/ScreenROI.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/defs/ScreenROI.java
return new String[] { Compiler.STANDARD, Compiler.WEB};
return new String[] { CompilerConfig.STANDARD, CompilerConfig.WEB};
public String[] getValues() { return new String[] { Compiler.STANDARD, Compiler.WEB}; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/1f9cec5c1add4cf52e05c113fdd2729a66e479fb/IzPackTask.java/buggy/src/lib/com/izforge/izpack/ant/IzPackTask.java
config = null;
public IzPackTask() { basedir = null; input = null; output = null; installerType = null; izPackDir = null; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/1f9cec5c1add4cf52e05c113fdd2729a66e479fb/IzPackTask.java/buggy/src/lib/com/izforge/izpack/ant/IzPackTask.java
if (input == null)
if (input == null && config == null)
public void execute() throws org.apache.tools.ant.BuildException { if (input == null) throw new BuildException(ResourceBundle.getBundle( "com/izforge/izpack/ant/langpacks/messages").getString( "input_must_be_specified")); if (output == null) ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/1f9cec5c1add4cf52e05c113fdd2729a66e479fb/IzPackTask.java/buggy/src/lib/com/izforge/izpack/ant/IzPackTask.java
Compiler c = new Compiler(input, basedir, kind, output); Compiler.IZPACK_HOME = izPackDir;
public void execute() throws org.apache.tools.ant.BuildException { if (input == null) throw new BuildException(ResourceBundle.getBundle( "com/izforge/izpack/ant/langpacks/messages").getString( "input_must_be_specified")); if (output == null) ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/1f9cec5c1add4cf52e05c113fdd2729a66e479fb/IzPackTask.java/buggy/src/lib/com/izforge/izpack/ant/IzPackTask.java
c.setPackagerListener(this);
CompilerConfig c = null; if( config != null ) { String configText = config.getText(); c = new CompilerConfig(basedir, kind, output, this, configText); } else { c = new CompilerConfig(input, basedir, kind, output, this); } CompilerConfig.setIzpackHome(izPackDir);
public void execute() throws org.apache.tools.ant.BuildException { if (input == null) throw new BuildException(ResourceBundle.getBundle( "com/izforge/izpack/ant/langpacks/messages").getString( "input_must_be_specified")); if (output == null) ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/1f9cec5c1add4cf52e05c113fdd2729a66e479fb/IzPackTask.java/buggy/src/lib/com/izforge/izpack/ant/IzPackTask.java
if (res.src != null) inStream.close ();
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/1af4590abcb03e8f61989331bd1218a2826aa117/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
m_annotationType= TestNG.JDK5_ANNOTATION_TYPE;
m_annotationType= TestNG.JDK_ANNOTATION_TYPE;
public CustomSuite(final String projectName, final String suiteName, final Map parameters, final String annotationType) { super(true); m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equ...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
m_annotationTypeE= AnnotationTypeEnum.valueOf(annotationType);
public CustomSuite(final String projectName, final String suiteName, final Map parameters, final String annotationType) { super(true); m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equ...
53349 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53349/1bed3276c436b35c725a944299219be0d85ab7c1/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" );
private static PrintWriter createLogFile() { String tempDir = System.getProperty("java.io.tmpdir");
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" ); File tempDirFile = new File( tempDir ); try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.o...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
File tempDirFile = new File( tempDir );
File tempDirFile = new File(tempDir);
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" ); File tempDirFile = new File( tempDir ); try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.o...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.out.println( "creating Logfile: '" + logfilename + "' in: '" + tempDir + "'" ); File out = new File( tempDir, logfilename ); PrintWriter logfile; if( tempDirFile.canWrite( ) ) {
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" ); File tempDirFile = new File( tempDir ); try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.o...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
BufferedWriter fw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(out), "UTF-8")); logfile = setLogFile( new PrintWriter( fw ) );
tempDirFile.mkdirs();
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" ); File tempDirFile = new File( tempDir ); try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.o...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
catch( Exception e )
catch (RuntimeException e1)
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" ); File tempDirFile = new File( tempDir ); try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.o...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
logfile = null; e.printStackTrace( );
e1.printStackTrace();
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" ); File tempDirFile = new File( tempDir ); try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.o...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
} else { logfile = null; System.err.println( "Fatal: cannot write File: '" + logfilename + "' into: " + tempDirFile ); }
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" ); File tempDirFile = new File( tempDir ); try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.o...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
return logfile; }
String logfilename = LOGFILENAME; System.out.println("creating Logfile: '" + logfilename + "' in: '" + tempDir + "'"); File out = new File(tempDir, logfilename); PrintWriter logfile; if (tempDirFile.canWrite()) { try { BufferedWriter fw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream( out), "UTF-8"))...
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" ); File tempDirFile = new File( tempDir ); try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.o...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static void error( Object s ) { trace( s ); System.err.println( s ); System.err.flush( ); log( s ); }
public static void error(Object s) { trace(s); System.err.println(s); System.err.flush(); log(s); }
public static void error( Object s ) { trace( s ); System.err.println( s ); System.err.flush( ); log( s ); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static PrintWriter getLogFile( ) { PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE);
public static PrintWriter getLogFile() { PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE);
public static PrintWriter getLogFile( ) { PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE); return logfile; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
return logfile; }
return logfile; }
public static PrintWriter getLogFile( ) { PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE); return logfile; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static boolean isLOG( ) { return LOG; }
public static boolean isLOG() { return LOG; }
public static boolean isLOG( ) { return LOG; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static boolean isSTACKTRACE( ) { return STACKTRACE; }
public static boolean isSTACKTRACE() { return STACKTRACE; }
public static boolean isSTACKTRACE( ) { return STACKTRACE; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static boolean isTRACE( ) { return TRACE; }
public static boolean isTRACE() { return TRACE; }
public static boolean isTRACE( ) { return TRACE; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static void log( Object o ) { if(LOG )
public static void log(Object o)
public static void log( Object o ) { //if LOG was given if(LOG ) { PrintWriter logfile; if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } log...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
PrintWriter logfile; if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } logfile.println( o ); if( o instanceof Throwable ) { ( (Throwable) o ).printStackTrace( logfile ); } logfile.flush( ); } else { System.err.println( "Cannot wri...
log(o, LOG_WITH_TIME_AND_DATE);
public static void log( Object o ) { //if LOG was given if(LOG ) { PrintWriter logfile; if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } log...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
}
public static void log( Object o ) { //if LOG was given if(LOG ) { PrintWriter logfile; if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } log...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static void setLOG( boolean aFlag ) { System.out.println( DLOG + " = " + aFlag ); LOG = aFlag; }
public static void setLOG(boolean aFlag) { System.out.println(DLOG + " = " + aFlag); LOG = aFlag; }
public static void setLOG( boolean aFlag ) { System.out.println( DLOG + " = " + aFlag ); LOG = aFlag; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static synchronized PrintWriter setLogFile( PrintWriter aLogFile ) { System.getProperties( ).put( IZPACK_LOGFILE, aLogFile );
public static synchronized PrintWriter setLogFile(PrintWriter aLogFile) { System.getProperties().put(IZPACK_LOGFILE, aLogFile);
public static synchronized PrintWriter setLogFile( PrintWriter aLogFile ) { System.getProperties( ).put( IZPACK_LOGFILE, aLogFile ); PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE); if( logfile == null ) { System.err.println( "Set::logfile == null" ); } return l...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE);
PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE);
public static synchronized PrintWriter setLogFile( PrintWriter aLogFile ) { System.getProperties( ).put( IZPACK_LOGFILE, aLogFile ); PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE); if( logfile == null ) { System.err.println( "Set::logfile == null" ); } return l...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
if( logfile == null ) { System.err.println( "Set::logfile == null" );
if (logfile == null) { System.err.println("Set::logfile == null"); } return logfile;
public static synchronized PrintWriter setLogFile( PrintWriter aLogFile ) { System.getProperties( ).put( IZPACK_LOGFILE, aLogFile ); PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE); if( logfile == null ) { System.err.println( "Set::logfile == null" ); } return l...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
return logfile; }
public static synchronized PrintWriter setLogFile( PrintWriter aLogFile ) { System.getProperties( ).put( IZPACK_LOGFILE, aLogFile ); PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE); if( logfile == null ) { System.err.println( "Set::logfile == null" ); } return l...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static void setSTACKTRACE( boolean aFlag ) { System.out.println( DSTACKTRACE + " = " + aFlag ); STACKTRACE = aFlag; }
public static void setSTACKTRACE(boolean aFlag) { System.out.println(DSTACKTRACE + " = " + aFlag); STACKTRACE = aFlag; }
public static void setSTACKTRACE( boolean aFlag ) { System.out.println( DSTACKTRACE + " = " + aFlag ); STACKTRACE = aFlag; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static void setTRACE( boolean aFlag ) { System.out.println( DTRACE + " = " + aFlag ); TRACE = aFlag; }
public static void setTRACE(boolean aFlag) { System.out.println(DTRACE + " = " + aFlag); TRACE = aFlag; }
public static void setTRACE( boolean aFlag ) { System.out.println( DTRACE + " = " + aFlag ); TRACE = aFlag; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static boolean stackTracing( ) { return STACKTRACE; }
public static boolean stackTracing() { return STACKTRACE; }
public static boolean stackTracing( ) { return STACKTRACE; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static void trace( Object s ) { if( TRACE )
public static void trace(Object s)
public static void trace( Object s ) { if( TRACE ) { // console.println(s.toString()); System.out.println( s ); if( STACKTRACE && ( s instanceof Throwable ) ) { // StringWriter sw = new StringWriter(); // PrintWriter pw = new PrintWriter(sw); // ((Throwable)s).printStac...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
System.out.println( s );
if (TRACE) { System.out.println(s);
public static void trace( Object s ) { if( TRACE ) { // console.println(s.toString()); System.out.println( s ); if( STACKTRACE && ( s instanceof Throwable ) ) { // StringWriter sw = new StringWriter(); // PrintWriter pw = new PrintWriter(sw); // ((Throwable)s).printStac...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
if( STACKTRACE && ( s instanceof Throwable ) ) { ( (Throwable) s ).printStackTrace( ); }
if (STACKTRACE && (s instanceof Throwable)) { ((Throwable) s).printStackTrace(); }
public static void trace( Object s ) { if( TRACE ) { // console.println(s.toString()); System.out.println( s ); if( STACKTRACE && ( s instanceof Throwable ) ) { // StringWriter sw = new StringWriter(); // PrintWriter pw = new PrintWriter(sw); // ((Throwable)s).printStac...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
System.out.flush( );
System.out.flush(); }
public static void trace( Object s ) { if( TRACE ) { // console.println(s.toString()); System.out.println( s ); if( STACKTRACE && ( s instanceof Throwable ) ) { // StringWriter sw = new StringWriter(); // PrintWriter pw = new PrintWriter(sw); // ((Throwable)s).printStac...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
}
public static void trace( Object s ) { if( TRACE ) { // console.println(s.toString()); System.out.println( s ); if( STACKTRACE && ( s instanceof Throwable ) ) { // StringWriter sw = new StringWriter(); // PrintWriter pw = new PrintWriter(sw); // ((Throwable)s).printStac...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
public static boolean tracing( ) { return TRACE; }
public static boolean tracing() { return TRACE; }
public static boolean tracing( ) { return TRACE; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
IdentityKey(final int ident) { this.ident = ident;
IdentityKey(final Object obj) { this(System.identityHashCode(obj));
IdentityKey(final int ident) { this.ident = ident; }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/1313111fc820c43662b3b98672f70316d84ee80c/ReferenceTracker.java/buggy/src/java/org/apache/commons/pool/composite/ReferenceTracker.java
for (int i = 0; i < m_courses.length; i++)
StringBuffer tab = new StringBuffer(); String[] fields; fields = courseId.split(","); if (fields.length == 6)
public String getCourseName(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); } } return null; }
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/8e212b1d787a4d48a506a1585d001e3dea67f84e/SampleCourseManagementProvider.java/clean/sample/src/java/org/sakaiproject/component/legacy/coursemanagement/SampleCourseManagementProvider.java
if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); }
tab.append(fields[3]); tab.append(" "); tab.append(fields[4]); tab.append(" "); tab.append(fields[5]);
public String getCourseName(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); } } return null; }
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/8e212b1d787a4d48a506a1585d001e3dea67f84e/SampleCourseManagementProvider.java/clean/sample/src/java/org/sakaiproject/component/legacy/coursemanagement/SampleCourseManagementProvider.java
return null;
return tab.toString();
public String getCourseName(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); } } return null; }
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/8e212b1d787a4d48a506a1585d001e3dea67f84e/SampleCourseManagementProvider.java/clean/sample/src/java/org/sakaiproject/component/legacy/coursemanagement/SampleCourseManagementProvider.java
public void onPostDelete(PostDeleteEvent event) {}
/** unused */ public void onPostDelete(PostDeleteEvent event) {}
public void onPostDelete(PostDeleteEvent event) {}
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1fa4aa1df076354d9e858cfea9c54d59ae47d22a/ACLEventListener.java/buggy/components/server/src/ome/security/ACLEventListener.java
public void onPostInsert(PostInsertEvent event) {}
/** unused */ public void onPostInsert(PostInsertEvent event) {}
public void onPostInsert(PostInsertEvent event) {}
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1fa4aa1df076354d9e858cfea9c54d59ae47d22a/ACLEventListener.java/buggy/components/server/src/ome/security/ACLEventListener.java
public void onPostUpdate(PostUpdateEvent event) {}
/** unused */ public void onPostUpdate(PostUpdateEvent event) {}
public void onPostUpdate(PostUpdateEvent event) {}
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1fa4aa1df076354d9e858cfea9c54d59ae47d22a/ACLEventListener.java/buggy/components/server/src/ome/security/ACLEventListener.java
public void onPreLoad(PreLoadEvent event) {}
/** unused */ public void onPreLoad(PreLoadEvent event) {}
public void onPreLoad(PreLoadEvent event) {}
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1fa4aa1df076354d9e858cfea9c54d59ae47d22a/ACLEventListener.java/buggy/components/server/src/ome/security/ACLEventListener.java
&& (stage.equalsIgnoreCase("both") || stage.equalsIgnoreCase("uninstall")))
&& ("both".equalsIgnoreCase(stage) || "uninstall".equalsIgnoreCase(stage)))
protected void addJars(XMLElement data) throws Exception { notifyCompilerListener("addJars", CompilerListener.BEGIN, data); Iterator iter = data.getChildrenNamed("jar").iterator(); while (iter.hasNext()) { XMLElement el = (XMLElement) iter.next(); String src = re...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
&& (stage.equalsIgnoreCase("both") || stage.equalsIgnoreCase("uninstall")))
&& ("both".equalsIgnoreCase(stage) || "uninstall".equalsIgnoreCase(stage)))
protected void addNativeLibraries(XMLElement data) throws Exception { boolean needAddOns = false; notifyCompilerListener("addNativeLibraries", CompilerListener.BEGIN, data); Iterator iter = data.getChildrenNamed("native").iterator(); while (iter.hasNext()) { XMLEleme...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
;
protected void addPanels(XMLElement data) throws CompilerException { notifyCompilerListener("addPanels", CompilerListener.BEGIN, data); XMLElement root = requireChildNamed(data, "panels"); // at least one panel is required Vector panels = root.getChildrenNamed("panel"); if (pan...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
if (override_val.equalsIgnoreCase("true"))
if ("true".equalsIgnoreCase(override_val))
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = P...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
else if (override_val.equalsIgnoreCase("false"))
else if ("false".equalsIgnoreCase(override_val))
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = P...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
else if (override_val.equalsIgnoreCase("asktrue"))
else if ("asktrue".equalsIgnoreCase(override_val))
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = P...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
else if (override_val.equalsIgnoreCase("askfalse"))
else if ("askfalse".equalsIgnoreCase(override_val))
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = P...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
else if (override_val.equalsIgnoreCase("update"))
else if ("update".equalsIgnoreCase(override_val))
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = P...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
if (args[0].equalsIgnoreCase("-?"))
if ("-?".equalsIgnoreCase(args[0]))
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + Compiler.IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false;
if ("yes".equalsIgnoreCase(value)) return true; if ("no".equalsIgnoreCase(value)) return false;
protected boolean requireYesNoAttribute(XMLElement element, String attribute) throws CompilerException { String value = requireAttribute(element, attribute); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false; parseError(element, ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false;
if ("yes".equalsIgnoreCase(value)) return true; if ("no".equalsIgnoreCase(value)) return false;
protected boolean validateYesNoAttribute(XMLElement element, String attribute, boolean defaultValue) { if (element == null) return defaultValue; String value = element.getAttribute(attribute, (defaultValue ? "yes" : "no")); if (value.equalsIgnoreCase("yes")) return true; if...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/CompilerConfig.java/clean/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
protected PackInfo(String name, String id, String description, boolean required)
protected PackInfo(String name, String id, String description, boolean required, boolean loose)
protected PackInfo(String name, String id, String description, boolean required) { pack = new Pack( name, id, description, null, required, true); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/670d2dce35e3033459b7343ab34ed921bd2331ed/PackInfo.java/buggy/src/lib/com/izforge/izpack/compiler/PackInfo.java
pack = new Pack( name, id, description, null, required, true);
pack = new Pack( name, id, description, null, required, true, loose);
protected PackInfo(String name, String id, String description, boolean required) { pack = new Pack( name, id, description, null, required, true); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/670d2dce35e3033459b7343ab34ed921bd2331ed/PackInfo.java/buggy/src/lib/com/izforge/izpack/compiler/PackInfo.java
public UpdateCheck(ArrayList includes, ArrayList excludes, String casesensitive)
public UpdateCheck()
public UpdateCheck(ArrayList includes, ArrayList excludes, String casesensitive) { this.includesList = includes; this.excludesList = excludes; this.caseSensitive = ((casesensitive != null) && casesensitive.equalsIgnoreCase("yes")); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/UpdateCheck.java/buggy/src/lib/com/izforge/izpack/UpdateCheck.java
this.includesList = includes; this.excludesList = excludes; this.caseSensitive = ((casesensitive != null) && casesensitive.equalsIgnoreCase("yes"));
public UpdateCheck(ArrayList includes, ArrayList excludes, String casesensitive) { this.includesList = includes; this.excludesList = excludes; this.caseSensitive = ((casesensitive != null) && casesensitive.equalsIgnoreCase("yes")); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/UpdateCheck.java/buggy/src/lib/com/izforge/izpack/UpdateCheck.java
URL appURL = requireURLContent(requireChildNamed(root, "url")); info.setAppURL(appURL.toString());
final XMLElement URLElem = root.getFirstChildNamed("url"); if(URLElem != null) { URL appURL = requireURLContent(URLElem); info.setAppURL(appURL.toString()); }else info.setAppURL(null);
protected void addInfo(XMLElement data) throws Exception { notifyCompilerListener("addInfo", CompilerListener.BEGIN, data); // Initialisation XMLElement root = requireChildNamed(data, "info"); Info info = new Info(); String temp = null; info.setAppName(requireContent(requireChildNamed(root, "appnam...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/4ea47fd61dd2a4377b68288fe5295bbfe5e76722/Compiler.java/clean/src/lib/com/izforge/izpack/compiler/Compiler.java
return sb.toString();
String id = sb.toString(); if(log.isDebugEnabled()) log.debug("courseId constructed as: " + id); return id;
public String getCourseId(Term term, List requiredFields) { StringBuffer sb = new StringBuffer(); if (term != null) { sb.append(term.getYear()); sb.append(","); sb.append(term.getTerm()); } else { sb.append(",,"); } for (int i = 0; i < requiredFields.size(); i++) { sb.append(","); sb.append((String...
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/b60e03ddf44c76e63098940e219b00b046a2b7c9/CourseManagementProviderCMImpl.java/buggy/cm/cm-cm-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementProviderCMImpl.java
if(log.isDebugEnabled()) { StringBuffer sb = new StringBuffer("Found the following course members for "); sb.append(courseId); sb.append(": "); for(Iterator iter = members.iterator(); iter.hasNext();) { CourseMember member = (CourseMember)iter.next(); sb.append(member.getUniqname()); if(iter.hasNext()) { sb.append(", "...
public List getCourseMembers(String courseId) { Section section = cmService.getSection(courseId); Map userRoles = cmGroupProvider.getUserRolesForGroup(courseId); List members = new ArrayList(); for(Iterator iter = userRoles.keySet().iterator(); iter.hasNext();) { String userEid = (String)iter.next(); String ro...
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/b60e03ddf44c76e63098940e219b00b046a2b7c9/CourseManagementProviderCMImpl.java/buggy/cm/cm-cm-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementProviderCMImpl.java
Set sections = cmService.findInstructingSections(instructorId);
Map groupRoleMap = cmGroupProvider.getGroupRolesForUser(instructorId); if(log.isDebugEnabled()) log.debug("Found the following section EIDs for instructor " + instructorId + ": " + groupRoleMap.keySet());
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyC...
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/b60e03ddf44c76e63098940e219b00b046a2b7c9/CourseManagementProviderCMImpl.java/buggy/cm/cm-cm-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementProviderCMImpl.java
for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next();
for(Iterator iter = groupRoleMap.keySet().iterator(); iter.hasNext();) { String sectionEid = (String)iter.next(); String role = (String)groupRoleMap.get(sectionEid); if( ! sectionMappingRoles.contains(role)) { continue; } Section section = cmService.getSection(sectionEid);
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyC...
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/b60e03ddf44c76e63098940e219b00b046a2b7c9/CourseManagementProviderCMImpl.java/buggy/cm/cm-cm-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementProviderCMImpl.java
if(as.getTitle().indexOf(termYear) != -1 && as.getTitle().indexOf(termTerm) != -1) {
if(as.getTitle().toLowerCase().indexOf(termYear.toLowerCase()) != -1 && as.getTitle().toLowerCase().indexOf(termTerm.toLowerCase()) != -1) { if(log.isDebugEnabled()) log.debug("Section " + section.getEid() + " matches the term " + termTerm + " " + termYear);
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyC...
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/b60e03ddf44c76e63098940e219b00b046a2b7c9/CourseManagementProviderCMImpl.java/buggy/cm/cm-cm-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementProviderCMImpl.java
} else { if(log.isDebugEnabled()) log.debug("Section " + section.getEid() + " does not match the term " + termTerm + " " + termYear);
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyC...
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/b60e03ddf44c76e63098940e219b00b046a2b7c9/CourseManagementProviderCMImpl.java/buggy/cm/cm-cm-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementProviderCMImpl.java
if(log.isDebugEnabled()) log.debug("Provider id = " + sb.toString());
public String getProviderId(List providerIdList) { StringBuffer sb = new StringBuffer(); for(Iterator iter = providerIdList.iterator(); iter.hasNext();) { String id = (String)iter.next(); sb.append(id); if(iter.hasNext()) { sb.append("+"); } } return sb.toString(); }
50587 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50587/b60e03ddf44c76e63098940e219b00b046a2b7c9/CourseManagementProviderCMImpl.java/buggy/cm/cm-cm-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementProviderCMImpl.java
private void doInstall(AutomatedInstallData installdata) throws Exception
private void doInstall(AutomatedInstallData installdata) throws Exception
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
while(panelsIterator.hasNext())
while (panelsIterator.hasNext())
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue;
Panel p = (Panel) panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue;
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper";
String automationHelperClassName = "com.izforge.izpack.panels." + panelClassName + "AutomationHelper";
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
try
try
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
} catch(ClassNotFoundException e)
} catch (ClassNotFoundException e)
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
if(automationHelperClass != null)
if (automationHelperClass != null)
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
try
try
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e)
automationHelperInstance = (PanelAutomation) automationHelperClass.newInstance(); } catch (Exception e)
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping...");
System.err.println( "ERROR: no default constructor for " + automationHelperClassName + ", skipping...");
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName);
Vector panelRoots = installdata.xmlData.getChildrenNamed(panelClassName);
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
if (this.panelInstanceCount.containsKey (panelClassName))
if (this.panelInstanceCount.containsKey(panelClassName))
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue ();
panelRootNo = ((Integer) this.panelInstanceCount.get(panelClassName)).intValue();
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1));
XMLElement panelRoot = (XMLElement) panelRoots.elementAt(panelRootNo); this.panelInstanceCount.put(panelClassName, new Integer(panelRootNo + 1));
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
if(automationHelperInstance != null)
if (automationHelperInstance != null)
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/clean/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java